[gzdoom-x86-g3.8pre-650-g04bf97579] Mod Crashes on startup

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: [gzdoom-x86-g3.8pre-650-g04bf97579] Mod Crashes on startup

Re: [gzdoom-x86-g3.8pre-650-g04bf97579] Mod Crashes on start

by _mental_ » Fri Mar 15, 2019 5:13 am

Fixed in c0d843b.

Re: [gzdoom-x86-g3.8pre-650-g04bf97579] Mod Crashes on start

by Graf Zahl » Wed Mar 13, 2019 10:59 am

At this point the game isn't fully initialized yet, so I guess the GetGender call needs to handle this case because it is needed for localization.

Re: [gzdoom-x86-g3.8pre-650-g04bf97579] Mod Crashes on start

by _mental_ » Wed Mar 13, 2019 9:28 am

It's a different one.

userinfo is empty while GetGender() doesn't expect that. Not sure if it's related to a static event handler from where it was called.

Code: Select all

userinfo_t::GetGender() Line 253
FStringTable::GetString(const char * name, unsigned int * langtable, int gender) Line 473
FStringTable::operator[](const char * name) Line 97
FStringTable::operator()(const char * name) Line 528
LocalizeString(const FString & label, bool prefixed, FString * result) Line 68
AF_FStringTable_Localize(VMValue * param, int numparam, VMReturn * ret, int numret, const unsigned char * reginfo) Line 80
VMExec_Checked::ExecScriptFunc(VMFrameStack * stack, VMReturn * ret, int numret) Line 700
VMExec_Checked::Exec(VMFunction * func, VMValue * params, int numparams, VMReturn * ret, int numret) Line 2005
VMScriptFunction::FirstScriptCall(VMFunction * func, VMValue * params, int numparams, VMReturn * ret, int numret) Line 297
VMCall(VMFunction * func, VMValue * params, int numparams, VMReturn * results, int numresults) Line 569
DStaticEventHandler::OnRegister() Line 698
EventManager::RegisterHandler(DStaticEventHandler * handler) Line 58
EventManager::InitHandler(PClass * type) Line 219
EventManager::InitStaticHandlers(FLevelLocals * l, bool map) Line 240
PClassActor::StaticInit() Line 399
D_DoomMain() Line 2494

Re: [gzdoom-x86-g3.8pre-650-g04bf97579] Mod Crashes on start

by Graf Zahl » Wed Mar 13, 2019 9:08 am

This may be the same font related problem that already got reported and fixed.

[gzdoom-x86-g3.8pre-650-g04bf97579] Mod Crashes on startup

by Batandy » Wed Mar 13, 2019 8:02 am

First of all, let me say that you're doing a fantastic job. If you remember well, I wrote that thread about performance being worse on AMD, and i'm seeing huge fps gains with this new version, and even when it runs at lower framerates, it's super responsive compared to before. Keep it up!

Now, onto the bug:

Try downloading this demo of The Crimson Deed: http://www.mediafire.com/file/q8nce9h51 ... ta_V2.ipk3
If you run it with this build, it instantly crashes with an "Access Violation - Tried to read address 00000000000000

I've uploaded my crash report just in case.
Attachments
CrashReport.zip
(18.66 KiB) Downloaded 27 times

Top