Wintermute Engine > Bugs

Loading Bug

(1/2) > >>

Fighter19:
Loading a saved game, causes WMELite to crash
Tested on:
Ubuntu 11.04
Windows 7
With: Five magical amuletts

Mnemonic:
Can you provide repro steps? You said something like it crashes if you load right after saving? I can't reproduce the crash on Win7 (and incidentally I'm working with Five magical amulets quite a lot at the moment).
Also if you have the Ubuntu build running, perhaps you could attach a debugger to see where exactly it crashes in code?

Fighter19:
Ignore this line: Hmm.... With debug build activated it doesn't crash, only with the "offical" binary. Could this be because of paths?
k, got the debugger working with my ubuntu build:


--- Code: ---#0 0x80e4ab9 CScValue::IsNative(this=0x70029) (/home/*******/wmelasttry/wmelite-read-only/src/WME/ScValue.cpp:294)
#1 0x80e4acf CScValue::IsNative(this=0x8e6b1c0) (/home/*******/wmelasttry/wmelite-read-only/src/WME/ScValue.cpp:294)
#2 0x80a3c63 CBGame::InvalidateValues(Value=0x8e6b1c0, Data=0x87983b8) (/home/*******/wmelasttry/wmelite-read-only/src/WME/BGame.cpp:2852)
#3 ( 0x080e9b61 in CSysClass::InstanceCallback(this=0x82134c0, lpCallback=0x80a3c4c <CBGame::InvalidateValues(void*, void*) (/home/*******/wmelasttry/wmelite-read-only/src/WME/SysClass.cpp:220)
#4 ( 0x080ec9f3 in CSysClassRegistry::EnumInstances(this=0x82135a0, lpCallback=0x80a3c4c <CBGame::InvalidateValues(void*, void*) (/home/*******/wmelasttry/wmelite-read-only/src/WME/SysClassRegistry.cpp:301)
#5 0x80f93e6 CUIObject::~CUIObject(this=0x87983b8, __in_chrg=<value optimized out>) (/home/*******/wmelasttry/wmelite-read-only/src/WME/UIObject.cpp:66)
#6 0x80f0c2d CUIButton::~CUIButton(this=0x87983b8, __in_chrg=<value optimized out>) (/home/*******/wmelasttry/wmelite-read-only/src/WME/UIButton.cpp:58)
#7 0x80f0c75 CUIButton::~CUIButton(this=0x87983b8, __in_chrg=<value optimized out>) (/home/*******/wmelasttry/wmelite-read-only/src/WME/UIButton.cpp:78)
#8 0x80feac6 CUIWindow::Cleanup(this=0x876e240) (/home/*******/wmelasttry/wmelite-read-only/src/WME/UIWindow.cpp:86)
#9 0x80fe87a CUIWindow::~CUIWindow(this=0x876e240, __in_chrg=<value optimized out>) (/home/*******/wmelasttry/wmelite-read-only/src/WME/UIWindow.cpp:72)
#10 0x80fe8f1 CUIWindow::~CUIWindow(this=0x876e240, __in_chrg=<value optimized out>) (/home/*******/wmelasttry/wmelite-read-only/src/WME/UIWindow.cpp:73)
#11 0x8070844 CAdResponseBox::~CAdResponseBox(this=0x8728558, __in_chrg=<value optimized out>) (/home/*******/wmelasttry/wmelite-read-only/src/WME/AdResponseBox.cpp:58)
#12 0x8070a1f CAdResponseBox::~CAdResponseBox(this=0x8728558, __in_chrg=<value optimized out>) (/home/*******/wmelasttry/wmelite-read-only/src/WME/AdResponseBox.cpp:70)
#13 0x809bc9b CBGame::Cleanup(this=0x823eb68) (/home/*******/wmelasttry/wmelite-read-only/src/WME/BGame.cpp:296)
#14 0x8058f6f CAdGame::Cleanup(this=0x823eb68) (/home/*******/wmelasttry/wmelite-read-only/src/WME/AdGame.cpp:143)
#15 0x805c686 CAdGame::Persist(this=0x823eb68, PersistMgr=0x8dfd280) (/home/*******/wmelasttry/wmelite-read-only/src/WME/AdGame.cpp:1283)
#16 0x80584cd CAdGame::PersistLoad(Instance=0x823eb68, PersistMgr=0x8dfd280) (/home/*******/wmelasttry/wmelite-read-only/src/WME/AdGame.cpp:31)
#17 0x80e9a7f CSysClass::LoadInstance(this=0x820a0a0, instance=0x823eb68, PersistMgr=0x8dfd280) (/home/*******/wmelasttry/wmelite-read-only/src/WME/SysClass.cpp:200)
#18 0x80ec8d7 CSysClassRegistry::LoadInstances(this=0x82135a0, Game=0x823eb68, PersistMgr=0x8dfd280) (/home/*******/wmelasttry/wmelite-read-only/src/WME/SysClassRegistry.cpp:284)
#19 0x80a5582 CBGame::LoadGame(this=0x823eb68, Filename=0xbffff4ab "./WME Demo/save000.WmeDemoSav") (/home/*******/wmelasttry/wmelite-read-only/src/WME/BGame.cpp:3346)
#20 0x805c9f4 CAdGame::LoadGame(this=0x823eb68, Filename=0xbffff4ab "./WME Demo/save000.WmeDemoSav") (/home/*******/wmelasttry/wmelite-read-only/src/WME/AdGame.cpp:1335)
#21 0x80a532f CBGame::LoadGame(this=0x823eb68, Slot=0) (/home/*******/wmelasttry/wmelite-read-only/src/WME/BGame.cpp:3313)
#22 0x80ce95e CBPlatform::MessageLoop() (/home/*******/wmelasttry/wmelite-read-only/src/WME/PlatformSDL.cpp:200)
#23 0x8103624 main(argc=1, argv=0xbffff804) (/home/*******/wmelasttry/wmelite-read-only/src/WME/main.cpp:64)

--- End code ---

Mnemonic:
Thank you.

Mnemonic:
A committed a fix (at least I hope it fixes the crash). Would you mind testing it when you have a moment?

Navigation

[0] Message Index

[#] Next page

Go to full version