View Issue Details

IDProjectCategoryView StatusLast Update
0001645OpenMPTGeneralpublic2023-01-26 22:33
Reportergremghost Assigned ToSaga Musix  
PrioritynormalSeveritycrashReproducibilityalways
Status feedbackResolutionopen 
Platformx64OSWindowsOS Version10
Product VersionOpenMPT 1.30.08.00 / libopenmpt 0.6.6 (upgrade first) 
Summary0001645: OpenMPT crashes when starting up the program
Description

Every time I try to open the program, it hangs for a second before getting labeled as "not responding" and then eventually crashing. I have tried looking for crash logs in %TEMP%, but it doesn't produce any. I've also tried downgrading and that still crashes.

TagsNo tags attached.
Has the bug occurred in previous versions?Yes and no
Tested code revision (in case you know it)

Activities

Saga Musix

Saga Musix

2022-12-18 11:05

administrator   ~0005428

Can you try to create a crash dump with ProcDump? Instructions are here: https://wiki.openmpt.org/Manual:_Frequently_Asked_Questions#OpenMPT_crashed_but_did_not_create_a_memory_dump

gremghost

gremghost

2022-12-19 06:20

reporter   ~0005429

Absolutely. Here's the file from ProcDump.

Saga Musix

Saga Musix

2022-12-19 13:38

administrator   ~0005430

The file appears to be missing. Note that full memory dumps are too big to attach here; can you provide a link to an external file host (Dropbox etc. is okay)?

gremghost

gremghost

2022-12-20 03:05

reporter   ~0005431

Sorry about that! Here's the link to the file: https://www.dropbox.com/s/o1k0rlcmmws22pq/OpenMPT.exe_221219_011636.dmp?dl=0

Saga Musix

Saga Musix

2022-12-20 09:40

administrator   ~0005432

It seems like a crash in Windows' zip-file component when trying to read the file "piescese.zip" as part of filling the instrument library. Obviously Windows' zip-file component should not be crashing but that's beyond our control. In fact, the crash itself is not in the zip file code but rather when attempting to open the file, from my understanding:

>   ntdll.dll!NtCreateFile()   Unknown
    KERNELBASE.dll!CreateFileInternal()    Unknown
    KERNELBASE.dll!CreateFileW()   Unknown
    AcLayers.dll!NS_WRPMitigation::APIHook_CreateFileW()    Unknown
    zipfldr.dll!CheckCurrentZIP()  Unknown
    zipfldr.dll!initialize()   Unknown
    zipfldr.dll!CountAllZipMembers()   Unknown
    zipfldr.dll!dunzip()   Unknown
    zipfldr.dll!DZ_GetCountOfZipMembers(struct HWND__ *,unsigned short const *,int *)   Unknown
    zipfldr.dll!CEnumArchive::_InitFromPath(unsigned short const *,struct HWND__ *) Unknown
    zipfldr.dll!CEnumArchive::InitInstance(unsigned short const *,struct HWND__ *)  Unknown
    zipfldr.dll!CZipFolder::BuildMainEnumerator(struct HWND__ *)    Unknown
    zipfldr.dll!CZipFolder::EnumObjects(struct HWND__ *,unsigned long,struct IEnumIDList * *)   Unknown
    windows.storage.dll!CFSFolder::GetAttributesOf()    Unknown
    shell32.dll!_GetFileInfoSections()  Unknown
    shell32.dll!SHGetFileInfoW()    Unknown
    OpenMPT.exe!LinkResolver::Resolve(const wchar_t * inPath=0x0000026222234e60) Line 46    C++
    OpenMPT.exe!CModTree::FillInstrumentLibrary(const wchar_t * selectedItem=0x00007ff7f3f805c0) Line 2127  C++

I'm not sure why the zip file is trying to be read (we are only interested in the file attributes, so I'm not sure why it tries to read the contents), or why the read goes through AcLayers.dll (which from my understanding is a library used for application compatbility with older applications that require certain Windows quirks to be emulated). Are you enforcing any sort of compatibility setting (e.g. emulating old Windows version) on OpenMPT?

I found a zip file with that name online (a font file) but it didn't crash OpenMPT here, even though I'm also on Windows 10 (latest update).

Saga Musix

Saga Musix

2022-12-20 19:56

administrator   ~0005435

In fact there is no exception code associated with this memory dump, which makes it even more mysterious why the dump was created at all.

Saga Musix

Saga Musix

2023-01-01 22:59

administrator   ~0005445

There's now an experimental workaround as of r18370 which avoids sending zip files to the link resolver. You can obtain an updated test build within a few hours from https://builds.openmpt.org/builds/

Saga Musix

Saga Musix

2023-01-08 14:35

administrator   ~0005453

Can you please confirm that this problem no longer occurs in OpenMPT 1.30.09.00?

Saga Musix

Saga Musix

2023-01-26 22:33

administrator   ~0005510

Ping?

Issue History

Date Modified Username Field Change
2022-12-18 08:09 gremghost New Issue
2022-12-18 11:05 Saga Musix Note Added: 0005428
2022-12-19 06:20 gremghost Note Added: 0005429
2022-12-19 13:38 Saga Musix Note Added: 0005430
2022-12-20 03:05 gremghost Note Added: 0005431
2022-12-20 09:40 Saga Musix Note Added: 0005432
2022-12-20 19:56 Saga Musix Note Added: 0005435
2023-01-01 22:59 Saga Musix Note Added: 0005445
2023-01-01 22:59 Saga Musix Assigned To => Saga Musix
2023-01-01 22:59 Saga Musix Status new => assigned
2023-01-01 22:59 Saga Musix Status assigned => feedback
2023-01-08 14:35 Saga Musix Note Added: 0005453
2023-01-08 14:35 Saga Musix Priority urgent => normal
2023-01-26 22:33 Saga Musix Note Added: 0005510