I've been seeing another string of sporadic crashing. While I still haven't been able to produce one on demand, I have found some additional information:
1. It always happens on the 14th of a month.
2. I paid attention to the system generated crash report that I usually dismiss, and found what might actually be some useful information. The report contains a stack trace from the CK2 app:
Assuming the Paradox developers actually picked good method names, here's what I think might to be happening:
An event which was previously scheduled to run later (via the "character_event = { id = 666 days = 42 }" method) is running. In that event's immediate block it tries to set a variable, and that's where the crash happens. The system error report also reports "Exception Codes: EXC_I386_DIV (divide by zero)". So... divide by zero bug?
I then went looking for events in the mod which are run on a delay and which contain divide_variable, and came up with:
1. It always happens on the 14th of a month.
2. I paid attention to the system generated crash report that I usually dismiss, and found what might actually be some useful information. The report contains a stack trace from the CK2 app:
Code:
Thread 0 Crashed:: MainThrd Dispatch queue: com.apple.main-thread
0 libcompiler_rt.dylib 0xa74d9cda __divdi3 + 230
1 0x00556254 CExportToVariableEffect::Execute(CEventScope&) + 158
2 0x004e8662 CEffect::Execute(CEventScope&) + 78
3 0x00629578 CEventOption::Execute(CEventScope&, int) + 36
4 0x0061ec3f CEvent::PerformImmediate(CEventScope&) + 33
5 0x00626397 CEventManager::TriggerEvent(CEvent*, CEventScope&, bool, CHuman*, bool, bool) + 357
6 0x0016b2ba CCharacter::FireDelayedEvents() + 296
Assuming the Paradox developers actually picked good method names, here's what I think might to be happening:
An event which was previously scheduled to run later (via the "character_event = { id = 666 days = 42 }" method) is running. In that event's immediate block it tries to set a variable, and that's where the crash happens. The system error report also reports "Exception Codes: EXC_I386_DIV (divide by zero)". So... divide by zero bug?
I then went looking for events in the mod which are run on a delay and which contain divide_variable, and came up with:
- VAMPIRE.108
- VAMPIRE.109
- VAMPIRE.110
- CHALLENGE.59
Last edited: