View Issue Details

IDProjectCategoryView StatusLast Update
0002487Spring engineGeneralpublic2012-03-28 16:21
ReporterMalina Assigned Toabma  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionunable to reproduce 
Product Version0.82.7.1 
Summary0002487: Spring MT - Lua exception handling appears to be busted
DescriptionSingle-Threaded works great, BUT
Multi-Threaded crashed in a middle of a game.
Additional InformationI started playing the game in MT mode.
In a middle of a game there was a crash.
I tried to enter the game again (also MT) - crash again.
I tried to enter the game again (ST) - no crash.
When the game ended I tried to replay in MT - crash again.
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
20110621_015217_FrozenFortress_v2_0.82.7.sdf (Attachment missing)
infolog.morehang.txt (Attachment missing)
infolog2.txt (Attachment missing)
log2_1.sdf (Attachment missing)
log2_2.sdf (Attachment missing)
Checked infolog.txt for Errors

Activities

zerver

2011-06-24 02:56

reporter   ~0006804

Last edited: 2011-06-24 02:58

Well, it appears the lua exception handling (at least for MT) isn't working as expected. I'm getting completely random hangs.

The hangs seem to be caused by failure to release mutexes after an exception has been thrown. In other words pretty much like setjump/longjmp behavior.

Also there is a "C stack overflow" spam that strongly points towards some kind of internal lua error and failure to clean up after the exception has been caught.

So, I'm not sure how to proceed with this one right now.

Malina

2011-06-28 00:04

reporter   ~0006820

infolog2.txt, log2_1.sdf, log2_2.sdf
another crash. when the main structure was annihilated by enemy bombers.

zerver

2011-06-28 17:14

reporter   ~0006825

Thanks, I will do a stress test of the lua exception handling.

As you see, these exceptions are what makes hell break loose.

[f=0091392] LuaRules::RunCallIn: error = 2, RecvFromSynced, [string "LuaRules/Gadgets/unit_is_on_fire.lua"]:156: Invalid call

Malina

2011-06-28 19:04

reporter   ~0006826

Interesting, but I think, I don't understand what you are talking about :)

abma

2012-03-28 16:21

administrator   ~0008536

this is hopefully fixed in 88.0.

please report back if not.

Issue History

Date Modified Username Field Change
2011-06-21 01:44 Malina New Issue
2011-06-21 01:44 Malina File Added: infolog.txt
2011-06-21 01:44 Malina Graphics Card => unknown
2011-06-21 01:44 Malina File Added: 20110621_015217_FrozenFortress_v2_0.82.7.sdf
2011-06-23 21:08 zerver Status new => assigned
2011-06-23 21:08 zerver Assigned To => zerver
2011-06-24 02:46 zerver File Added: infolog.morehang.txt
2011-06-24 02:56 zerver Note Added: 0006804
2011-06-24 02:57 zerver Assigned To zerver =>
2011-06-24 02:57 zerver Summary Spring MT - Crash in 0.82.7.1 => Spring MT - Lua exception handling appears to be busted
2011-06-24 02:57 zerver Status assigned => new
2011-06-24 02:58 zerver Note Edited: 0006804
2011-06-28 00:00 Malina File Added: infolog2.txt
2011-06-28 00:02 Malina File Added: log2_1.sdf
2011-06-28 00:02 Malina File Added: log2_2.sdf
2011-06-28 00:04 Malina Note Added: 0006820
2011-06-28 17:14 zerver Note Added: 0006825
2011-06-28 19:04 Malina Note Added: 0006826
2012-03-28 16:21 abma Note Added: 0008536
2012-03-28 16:21 abma Status new => resolved
2012-03-28 16:21 abma Resolution open => unable to reproduce
2012-03-28 16:21 abma Assigned To => abma