Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Radiant on Wed 16/08/2017 06:21:24

Title: C0000005 exception
Post by: Radiant on Wed 16/08/2017 06:21:24
What would the following exception be for? It looks like a nullpointer but I don't recognize the EIP.

An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x100011BC ; program pointer is -23, ACI version 3.3.0.1162, gtags (0,0)
Title: Re: C0000005 exception
Post by: Crimson Wizard on Wed 16/08/2017 12:46:04
EIP -23 was at StartPlugins call, which calls "engineStartup" in every loaded plugin.
(I say "was" because it is no longer there in the latest build.)
Title: Re: C0000005 exception
Post by: Radiant on Wed 16/08/2017 13:59:51
Interesting, thank you CW. So what's going on here is that the (latest version of the) Steam plugin is throwing a nullpointer exception. That's going to be tricky to debug, isn't it :(
Title: Re: C0000005 exception
Post by: Radiant on Wed 16/08/2017 21:30:40
Quote from: Crimson Wizard on Wed 16/08/2017 20:41:35
Investigating program code... there were numerous 0xC000005 errors I fixed in the engine before, that were actually errors in AGS itself.

Hmm... would it make sense to fall back to stub code if a plugin fails to initialize? I know this plugin has stubs for Linux, does that also apply to the Windows build?
Title: Re: C0000005 exception
Post by: Crimson Wizard on Wed 16/08/2017 21:43:51
Quote from: Radiant on Wed 16/08/2017 21:30:40
Hmm... would it make sense to fall back to stub code if a plugin fails to initialize? I know this plugin has stubs for Linux, does that also apply to the Windows build?

AGSSteam stubs are not built into the engine, AFAIK monkey0506 created a separate DLL which just does nothing, and used as a stub.
Also, if the place was pinpointed correctly, this occurs already after the plugin was initialized, if it was not, engine would not call engineStartup in it.