Author Topic: C0000005 exception  (Read 854 times)

Radiant

  • Return once more to the Two Kingdoms!
    • I can help with publishing
    • I can help with story design
    • Radiant worked on a game that won an AGS Award!
    •  
    • Radiant worked on a game that was nominated for an AGS Award!
C0000005 exception
« on: 16 Aug 2017, 06:21 »
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)
« Last Edit: 16 Aug 2017, 10:20 by Radiant »

Re: C0000005 exception
« Reply #1 on: 16 Aug 2017, 12:46 »
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.)
« Last Edit: 16 Aug 2017, 21:44 by Crimson Wizard »

Radiant

  • Return once more to the Two Kingdoms!
    • I can help with publishing
    • I can help with story design
    • Radiant worked on a game that won an AGS Award!
    •  
    • Radiant worked on a game that was nominated for an AGS Award!
Re: C0000005 exception
« Reply #2 on: 16 Aug 2017, 13:59 »
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 :(

Radiant

  • Return once more to the Two Kingdoms!
    • I can help with publishing
    • I can help with story design
    • Radiant worked on a game that won an AGS Award!
    •  
    • Radiant worked on a game that was nominated for an AGS Award!
Re: C0000005 exception
« Reply #3 on: 16 Aug 2017, 21:30 »
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?

Re: C0000005 exception
« Reply #4 on: 16 Aug 2017, 21:43 »
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.
« Last Edit: 16 Aug 2017, 21:45 by Crimson Wizard »