Opened 14 years ago

Closed 13 years ago

Last modified 13 years ago

#484 closed defect (fixed)

unhandled exception 0xC06D007E in wdll_delay_load.cpp:358 (__delayLoadHelper2)

Reported by: Philip Taylor Owned by:
Priority: Should Have Milestone: Alpha 5
Component: Core engine Keywords:
Cc: Jan Wassenberg Patch:

Description

Somebody just got the error:

Details: unhandled exception (Unknown (0xC06D007E))
Location: wdll_delay_load.cpp:358 (__delayLoadHelper2)

when running on 64-bit Windows 7. This looks like it's probably the same error as somebody else (whose name I forget) reported a while ago, where I think we discovered that the delay-loader was failing to load version.dll. But I don't think we ever found or solved the cause of that problem, and it appears it's affecting more people now.

Change History (13)

comment:1 by Jan Wassenberg, 14 years ago

Unfortunately we've not yet gotten closer to finding the cause, though I am in contact with Ismail/iso and trying to help debug.

Just a quick note for others who encounter this: you can work around the problem by launching with the -quickstart command line parameter (thus skipping the system detect code, which uses version.dll), though that will also disable sound.

comment:2 by Philip Taylor, 14 years ago

Do we need to run this code at all? I vaguely remember that it was only used to detect OpenAL driver versions, and now we always use our bundled OpenAL Soft DLL so we're not interested in what version the user has. (Maybe I'm missing some other places this code is used, though?)

comment:3 by Jan Wassenberg, 14 years ago

Good point, we no longer have to worry about the OpenAL version, but it's still very useful to see the graphics and also sound driver versions.

comment:4 by Jan Wassenberg, 14 years ago

(In [7453]) disable delay-loading of version.dll. Of the delay-loaded DLLs, version.dll is the only one that is used in proximity to WoW64 FS redirection, which apparently has a dangerous interaction with delay-loading. This should prevent #484 (after update-workspaces + a rebuild), but we can't be sure due to lack of an x64 Vista or Win7 machine for testing. Can someone please confirm that it works without requiring the -quickstart workaround? refs #484

comment:5 by EoD, 14 years ago

I just wanted to mention that the game ([7419]) started just fine on my 64-bit Windows 7 Professional machine without the -quickstart workaround. There should every 64-bit Windows machine be affected, shouldn't it?

comment:6 by Jan Wassenberg, 14 years ago

Thanks for mentioning this! I'm glad to hear it works, but that's actually bad news in this case. The problem has been reported both on Vista and Win7, but my XP x64 machine doesn't run into difficulties, either.

I wonder if it might be related to Unicode special characters in the "system32" path (we had previously run into such difficulties with a localized "My Documents", where the characters weren't properly converted between UTF8 and UCS-2). That's not the case on your machine then, I take it?

in reply to:  6 comment:7 by EoD, 14 years ago

I'm using an English version of Win7 x64 (6.1.7600), which has the default path C:\Windows\System32.

I also tried to change (all of) the regional settings to Japanese (+reboot). Just as well I copied the whole system32 folder to C:\𤭢system32 and changed the PATH variable accordingly (+reboot). And I renamed the folder of 0AD to 𤭢0ad-r07419-pre-alpha...

But nothing helped, the game always starts just fine! :)

comment:8 by Jan Wassenberg, 14 years ago

Good idea, thanks for running those tests! So that's UTF8 trouble ruled out. I'm beginning to think we won't find the cause of this :S(especially due to the delay-load removal in r7453) But then again, maybe it'll happen as in #480 - after quite some time, we'll stumble upon the cause by pure happenstance.

comment:9 by (none), 14 years ago

Milestone: Unclassified

Milestone Unclassified deleted

comment:10 by Andrew, 14 years ago

Milestone: Backlog

comment:11 by historic_bruno, 13 years ago

This still relevant?

comment:12 by Jan Wassenberg, 13 years ago

Resolution: fixed
Status: newclosed

It's been 1 year, and I haven't seen any subsequent reports of problems in the forum either, so r7453 probably did fix it. I'll close this now, but please feel free to re-open if it comes up again.

comment:13 by Kieran P, 13 years ago

Milestone: BacklogAlpha 5
Note: See TracTickets for help on using tickets.