Skip to content

Conversation

@FlufflesTheMicrosaur
Copy link
Contributor

I was sadly unable to figure out what is causing the the CMissile OnMove crash bug (yet) after 4 hours of trying different things to reproduce it., but I made the Win32 error that it throws more useful

Here is an example of what the new error codes look like:
CException: Win32 Error: EXCEPTION_ACCESS_VIOLATION - Operation: READ (0) - ADDR: 0

In context it looks like this (Note: this was NOT a reproduction of the issue, I deliberately caused this by nulling out a pointer using the debugger):

2025-11-25 21:53:45    Crash in CShip::OnDamage
2025-11-25 21:53:45    pObj = 
2025-11-25 21:53:45    obj class: CShip
obj name: crate freighter
obj pointer: 18e2e438
m_pDocked: none
m_pExitGate: none
IOrderModule
Order: 3
m_Objs[0]: 180b6b28 Wolfen/B-class gunship (CShip)
m_Objs[1]: none
CAttackOrder
m_State: 0
m_iCountdown: -1
m_pNavPath: none

2025-11-25 21:53:45    Crash in CSpaceObject::Damage
2025-11-25 21:53:45    Crash in CMissile::OnMove
2025-11-25 21:53:45    Crash in CSpaceObject::Move
2025-11-25 21:53:45    Crash in CSystem::UpdatePhysics
2025-11-25 21:53:45    Crash in CUniverse::UpdatePhysics
2025-11-25 21:53:45    CException: Win32 Error: EXCEPTION_ACCESS_VIOLATION - Operation: READ (0) - ADDR: 0
2025-11-25 21:53:45    Unable to continue due to program error.

program state: OnAnimate
program state: updating object motion
system: none
system type: 00000000
system name: George's Star
total objs: 28
destroyed: 0
deleted: 0
bad: 0
stars: 0
obj class: CMissile
obj name: laser damage
obj pointer: 183edb00
m_pDesc: 16402/0
m_Source: 18e30cb8 Wolfen/B-class gunship (CShip)
m_pHit: 18e2e438 crate freighter (CShip)
m_iHitDir: 281
m_pTarget: 18e2e438 crate freighter (CShip)
m_iDestiny: 293
m_iTick: 17
m_iLifeLeft: 13
m_pExhaust: none
m_pEnhancements: none
m_pPainter: EffectType
m_pHit CSpaceObject
obj class: CShip
obj name: crate freighter
obj pointer: 18e2e438
m_pDocked: none
m_pExitGate: none
IOrderModule
Order: 3
m_Objs[0]: 180b6b28 Wolfen/B-class gunship (CShip)
m_Objs[1]: none
CAttackOrder
m_State: 0
m_iCountdown: -1
m_pNavPath: none
game state: intro

… able to narrow down what is going on with this bug
@gmoromisato gmoromisato merged commit 16efacb into kronosaur:master Dec 1, 2025
FlufflesTheMicrosaur added a commit to FlufflesTheMicrosaur/TranscendenceDev that referenced this pull request Dec 22, 2025
… able to narrow down what is going on with this bug (kronosaur#266)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants