Page 1 of 1

[Resolved] [Crash Report] My First Level Ever Made in PGE

Posted: 12 May 2019, 2:27
by TheTakeAwayGuy
So, I thought I would give PGE a try after all these years of not, but after creating a little bit of my level and wanted to test it I get the following crash message:

Spoiler
https://pastebin.com/QcjyQhbe

Code: Select all

== Crash Summary ==
LunaLua Version: LUNALUA 70d92f34
Exception Code: 0xe06d7363

== Stack Trace ==
0: 759118A2 (KERNELBASE): RaiseException
1: f:\dd\vctools\crt\vcruntime\src\eh\throw.cpp (131): _CxxThrowException
2: f:\dd\vctools\crt\vcstartup\src\heap\throw_bad_alloc.cpp (33): __scrt_throw_std_bad_alloc
3: f:\dd\vctools\crt\vcstartup\src\heap\new_scalar.cpp (19): operator new
4: c:\program files (x86)\microsoft visual studio 14.0\vc\include\xmemory0 (645): std::allocator<LevelSection>::allocate
5: c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector (1624): std::vector<LevelSection,std::allocator<LevelSection> >::_Reallocate
6: c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector (1650): std::vector<LevelSection,std::allocator<LevelSection> >::_Reserve
7: c:\program files (x86)\microsoft visual studio 14.0\vc\include\vector (1290): std::vector<LevelSection,std::allocator<LevelSection> >::push_back
8: c:\github_new\lunalua\lunadll\libs\pge_file_formats\file_rw_lvlx.cpp (332): FileFormats::ReadExtendedLvlFile
9: c:\github_new\lunalua\lunadll\libs\pge_file_formats\file_rwopen.cpp (78): FileFormats::OpenLevelFileT
10: c:\github_new\lunalua\lunadll\libs\pge_file_formats\file_rwopen.cpp (52): FileFormats::OpenLevelRaw
11: c:\github_new\lunalua\lunadll\filemanager\smbxfilemanager.cpp (111): SMBXLevelFileBase::ReadFileMem
12: c:\github_new\lunalua\lunadll\misc\testmode.cpp (282): testModeLoadLevelHook
13: c:\github_new\lunalua\lunadll\misc\runtimehookcomponents\runtimehookhooks.cpp (1308): runtimeHookLoadLevel
14: 008C14E5 (smbx): Sub_Main
15: 6600A048 (MSVBVM60): EbLoadRunTime
16: 66007B3E (MSVBVM60): BASIC_CLASS_QueryInterface
17: 66003981 (MSVBVM60): ThunRTMain
18: 660036FA (MSVBVM60): ThunRTMain
19: 66003600 (MSVBVM60): ThunRTMain
20: 0040BDE2 (smbx): start
21: 771D41C8 (ntdll): RtlAreBitsSet
22: 771D4198 (ntdll): RtlAreBitsSet

== Reporting ==
If you like to help us finding the error then please post this log at:
* http://wohlsoft.ru/forum/ or
* http://www.supermariobrosx.org/forums/viewforum.php?f=35 or
* http://talkhaus.raocow.com/viewforum.php?f=36



https://pastebin.com/QcjyQhbe

Posted: 14 May 2019, 9:32
by Wohlstand
Looks weird... Can you attach a level file (no need custom resources, only .lvlx file that caused a crash on LunaLua side)? I need to research this...
The stack showing that crash is on a side of PGE-FL that is used on LunaLua side (by the way, the same PGE-FL is on PGE Editor side as a main part).

Posted: 15 May 2019, 1:52
by TheTakeAwayGuy
Wohlstand wrote:Looks weird... Can you attach a level file (no need custom resources, only .lvlx file that caused a crash on LunaLua side)? I need to research this...
The stack showing that crash is on a side of PGE-FL that is used on LunaLua side (by the way, the same PGE-FL is on PGE Editor side as a main part).

Here you go, here's the file you requested. :)
It is a hotlink (direct) download from my personal cloud hosting site, so you should be able to just to click on the link and it'll instantly download.

Posted: 16 May 2019, 12:15
by Wohlstand
As we talked via Discord, the reason of LunaLua side crash is that level has more than 21 section.
To avoid that, please switch 21'th section (with 0 base, 22'th with 1 base), and via menu bar "Level -> Section modifications -> Delete Section", :bomb: the useless section. Anyway, I'll check the LunaLua-side code to avoid this crash in future...