ImHex
ImHex copied to clipboard
[Bug] ImHex not starting on Windows
Operating System
Windows
What's the issue you encountered?
When I start ImHex it shows the splash screen, loads and then disappears without any message
I tried running from powershell:
The NoGPU:
PS C:\Users\sharno> C:\Users\sharno\Downloads\imhex-1.35.4-Windows-Portable-NoGPU-x86_64\imhex.exe
[02:58:54] [INFO] [main | Main] Welcome to ImHex 1.35.4!
[02:58:54] [INFO] [main | Main] Compiled using commit v1.35.X@811214d
[02:58:54] [INFO] [main | Main] Running on Windows 10.0.19045 (x86_64)
[02:58:54] [INFO] [main | Main] Native scaling set to: 1.0
[02:58:54] [INFO] [main | Main] Using 'VMware, Inc.' GPU
[02:58:54] [INFO] [main | Init Tasks] Task 'Setting up environment' finished successfully in 0 ms
[02:58:55] [INFO] [main | Init Tasks] Task 'Creating directories' finished successfully in 15 ms
[02:58:55] [INFO] [main | Init Tasks] Task 'Loading settings' finished successfully in 0 ms
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'fonts.hexpluglib'
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'ui.hexpluglib'
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'builtin.hexplug'
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'decompress.hexplug'
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'diffing.hexplug'
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'disassembler.hexplug'
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'hashes.hexplug'
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'script_loader.hexplug'
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'visualizers.hexplug'
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'windows.hexplug'
[02:58:55] [INFO] [libimhex | Init Tasks] Loading plugin 'yara_rules.hexplug'
[02:58:55] [INFO] [libimhex | Init Tasks] Library 'fonts.hexpluglib' initialized successfully
[02:58:55] [INFO] [libimhex | Init Tasks] Library 'ui.hexpluglib' initialized successfully
[02:58:55] [INFO] [builtin | Init Tasks] Extracting auto_extract/workspaces/default.hexws to C:\Users\sharno\Downloads\imhex-1.35.4-Windows-Portable-NoGPU-x86_64\workspaces\default.hexws
[02:58:55] [INFO] [builtin | Init Tasks] Extracting auto_extract/workspaces/minimal.hexws to C:\Users\sharno\Downloads\imhex-1.35.4-Windows-Portable-NoGPU-x86_64\workspaces\minimal.hexws
[02:58:55] [INFO] [builtin | Init Tasks] Extracting always_auto_extract/magic/magic.mgc to C:\Users\sharno\Downloads\imhex-1.35.4-Windows-Portable-NoGPU-x86_64\magic\magic.mgc
[02:58:55] [INFO] [libimhex | Init Tasks] Layout unlocked
[02:58:55] [INFO] [libimhex | Init Tasks] Plugin 'builtin.hexplug' initialized successfully
[02:58:55] [INFO] [libimhex | Init Tasks] Plugin 'decompress.hexplug' initialized successfully
[02:58:55] [INFO] [libimhex | Init Tasks] Plugin 'diffing.hexplug' initialized successfully
[02:58:55] [INFO] [libimhex | Init Tasks] Plugin 'disassembler.hexplug' initialized successfully
[02:58:55] [INFO] [libimhex | Init Tasks] Plugin 'hashes.hexplug' initialized successfully
The GPU:
PS C:\Users\sharno> C:\Users\sharno\Downloads\imhex-1.35.4-Windows-Portable-x86_64\imhex.exe
[03:07:41] [INFO] [main | Main] Welcome to ImHex 1.35.4!
[03:07:41] [INFO] [main | Main] Compiled using commit v1.35.X@811214d
[03:07:41] [INFO] [main | Main] Running on Windows 10.0.19045 (x86_64)
[03:07:41] [INFO] [main | Main] Native scaling set to: 1.0
[03:07:41] [INFO] [main | Main] Using 'NVIDIA Corporation' GPU
[03:07:41] [INFO] [main | Init Tasks] Task 'Setting up environment' finished successfully in 0 ms
[03:07:41] [INFO] [main | Init Tasks] Task 'Creating directories' finished successfully in 14 ms
[03:07:41] [INFO] [main | Init Tasks] Task 'Loading settings' finished successfully in 0 ms
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'fonts.hexpluglib'
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'ui.hexpluglib'
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'builtin.hexplug'
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'decompress.hexplug'
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'diffing.hexplug'
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'disassembler.hexplug'
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'hashes.hexplug'
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'script_loader.hexplug'
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'visualizers.hexplug'
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'windows.hexplug'
[03:07:41] [INFO] [libimhex | Init Tasks] Loading plugin 'yara_rules.hexplug'
[03:07:41] [INFO] [libimhex | Init Tasks] Library 'fonts.hexpluglib' initialized successfully
[03:07:41] [INFO] [libimhex | Init Tasks] Library 'ui.hexpluglib' initialized successfully
[03:07:41] [INFO] [builtin | Init Tasks] Extracting auto_extract/workspaces/default.hexws to C:\Users\sharno\Downloads\imhex-1.35.4-Windows-Portable-x86_64\workspaces\default.hexws
[03:07:41] [INFO] [builtin | Init Tasks] Extracting auto_extract/workspaces/minimal.hexws to C:\Users\sharno\Downloads\imhex-1.35.4-Windows-Portable-x86_64\workspaces\minimal.hexws
[03:07:41] [INFO] [builtin | Init Tasks] Extracting always_auto_extract/magic/magic.mgc to C:\Users\sharno\Downloads\imhex-1.35.4-Windows-Portable-x86_64\magic\magic.mgc
[03:07:41] [INFO] [libimhex | Init Tasks] Layout unlocked
[03:07:41] [INFO] [libimhex | Init Tasks] Plugin 'builtin.hexplug' initialized successfully
[03:07:41] [INFO] [libimhex | Init Tasks] Plugin 'decompress.hexplug' initialized successfully
[03:07:41] [INFO] [libimhex | Init Tasks] Plugin 'diffing.hexplug' initialized successfully
[03:07:41] [INFO] [libimhex | Init Tasks] Plugin 'disassembler.hexplug' initialized successfully
[03:07:41] [INFO] [libimhex | Init Tasks] Plugin 'hashes.hexplug' initialized successfully
and nothing happens after the splash screen
How can the issue be reproduced?
I tried the portable, portable no-gpu, and installed versions and all had the same issue
- open imhex
- the splash screen shows and loading
- the loading is finished and nothing happens
ImHex Version
1.35.4
ImHex Build Type
- [ ] Nightly or built from sources
Installation type
Portable/MSI
Additional context?
I noticed that the NoGPU uses vmware gpu, which might be related to the issue but the GPU one uses the proper nvidia (GTX 970) from the logs, but still the same issue
I ran WinDbg on the crash dump found in C:\Windows\Logs\CBS\CBS.log
and here's the output:
0:022> !analyze -v
*******************************************************************************
* *
* Exception Analysis *
* *
*******************************************************************************
*** WARNING: Unable to verify checksum for script_loader.hexplug
*** WARNING: Unable to verify checksum for libimhex.dll
KEY_VALUES_STRING: 1
Key : AV.Fault
Value: Execute
Key : Analysis.CPU.mSec
Value: 4890
Key : Analysis.Elapsed.mSec
Value: 8812
Key : Analysis.IO.Other.Mb
Value: 1
Key : Analysis.IO.Read.Mb
Value: 65
Key : Analysis.IO.Write.Mb
Value: 3
Key : Analysis.Init.CPU.mSec
Value: 859
Key : Analysis.Init.Elapsed.mSec
Value: 6401
Key : Analysis.Memory.CommitPeak.Mb
Value: 396
Key : Failure.Bucket
Value: SOFTWARE_NX_FAULT_c0000005_script_loader.hexplug!initialize
Key : Failure.Hash
Value: {eae65eeb-d7d7-f7c8-908c-bdf2fb888249}
Key : Timeline.Process.Start.DeltaSec
Value: 2
Key : WER.OS.Branch
Value: vb_release
Key : WER.OS.Version
Value: 10.0.19041.1
Key : WER.Process.Version
Value: 1.35.4.0
FILE_IN_CAB: imhex-gui.exe.18292.dmp
NTGLOBALFLAG: 0
APPLICATION_VERIFIER_FLAGS: 0
CONTEXT: (.ecxr)
rax=0000000000000000 rbx=000000a947fff180 rcx=00007ff8a25189f0
rdx=0000000000000000 rsi=00007ff8a2547140 rdi=00007ff8db190000
rip=0000000000000000 rsp=000000a947ffefb8 rbp=00007ff9510ab200
r8=000000000000005a r9=000000000000005e r10=00000000000000a2
r11=000000a947ffecc0 r12=00007ff9510b0220 r13=000000a947fff680
r14=000000a947fff4d0 r15=00007ff8a25354b0
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00010202
00000000`00000000 ?? ???
Resetting default scope
EXCEPTION_RECORD: (.exr -1)
ExceptionAddress: 0000000000000000
ExceptionCode: c0000005 (Access violation)
ExceptionFlags: 00000000
NumberParameters: 2
Parameter[0]: 0000000000000008
Parameter[1]: 0000000000000000
Attempt to execute non-executable address 0000000000000000
PROCESS_NAME: imhex-gui.exe
EXECUTE_ADDRESS: 0
FAILED_INSTRUCTION_ADDRESS:
+0
ERROR_CODE: (NTSTATUS) 0xc0000005 - The instruction at 0x%p referenced memory at 0x%p. The memory could not be %s.
EXCEPTION_CODE_STR: c0000005
EXCEPTION_PARAMETER1: 0000000000000008
EXCEPTION_PARAMETER2: 0000000000000000
STACK_TEXT:
000000a9`47ffefb8 00007ff8`a25202f7 : 000000a9`47fff180 00000000`00000000 00007ff9`510ab200 00007ff8`a2547140 : 0x0
000000a9`47ffefc0 00007ff8`a250bf30 : 000000a9`47fff470 00000000`00000008 000001f8`aa372c45 00000000`00000000 : script_loader!initialize+0x107
000000a9`47fff430 00007ff8`9bdccf44 : 00000000`00000000 000001f8`a1090000 ffffffff`7fffffff 00000000`00000006 : script_loader!initializePlugin+0x4e0
000000a9`47fff620 00007ff7`ac0ae7bc : 000000a9`47fff840 000000a9`47fff7e0 00000000`7ffe0358 00007ff9`516b00f3 : libimhex!initializePlugin+0x1b4
000000a9`47fff750 00007ff7`ac097bfc : 000001f8`a0f30000 00000000`00000000 000000a9`47fffb00 000000a9`47fffb88 : imhex_gui!loadPlugins+0x30c
000000a9`47fff8c0 00007ff7`ac0982d5 : 000000a9`47fffa70 00007ff8`9be1ebf7 000000a9`47fffb00 000000a9`47fffb88 : imhex_gui!operator()+0x1ac
000000a9`47fff970 00007ff7`ac098582 : 00000000`00000000 000001f8`a28b12ac 00005103`537b75e4 00000000`00000000 : imhex_gui!createTask+0x2b5
000000a9`47fffab0 00007ff7`ac09897b : 000001f8`a2938dc0 00007ff9`2842e1b0 000001f8`a2938dc8 00007ff7`ac098800 : imhex_gui!_M_invoke+0x82
000000a9`47fffb60 00007ff9`284254a6 : 00000000`00000000 00000000`00000010 00007ff8`a8bef3a0 00000000`00000000 : imhex_gui!_M_do_set+0x1b
000000a9`47fffbb0 00007ff7`ac098d56 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : libwinpthread_1!pthread_once+0xf6
000000a9`47fffc30 00007ff7`ac091d9e : 00000000`00000000 000001f8`a28e0000 00000000`00000000 00007ff9`28422f16 : imhex_gui!_M_set_result+0xb6
000000a9`47fffcd0 00007ff8`a8be5eff : 00005103`537b7264 00007ff9`516947b1 000001f8`a28ef240 000001f8`a293d4b8 : imhex_gui!_M_run+0x4e
000000a9`47fffd40 00007ff9`28424deb : 000001f8`a293d4b8 00000000`00000000 000001f8`a28ef240 00000000`00000000 : libstdc___6!atomic_flag_test_and_set_explicit+0x19f
000000a9`47fffd80 00007ff9`4fe6af5a : 000001f8`a293d480 00000000`00000000 000001f8`a28ef240 00000000`00000000 : libwinpthread_1!pthread_create_wrapper+0x9b
000000a9`47fffdc0 00007ff9`4fe6b02c : 00007ff9`4fec06d0 000001f8`a28ef240 00000000`00000000 00000000`00000000 : msvcrt!_callthreadstartex+0x1e
000000a9`47fffdf0 00007ff9`510a7374 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : msvcrt!_threadstartex+0x7c
000000a9`47fffe20 00007ff9`516bcc91 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : kernel32!BaseThreadInitThunk+0x14
000000a9`47fffe50 00000000`00000000 : 00000000`00000000 00000000`00000000 00000000`00000000 00000000`00000000 : ntdll!RtlUserThreadStart+0x21
FAULTING_SOURCE_LINE: D:/a/ImHex/ImHex/plugins/script_loader/source/loaders/dotnet/dotnet_loader.cpp
FAULTING_SOURCE_FILE: D:/a/ImHex/ImHex/plugins/script_loader/source/loaders/dotnet/dotnet_loader.cpp
FAULTING_SOURCE_LINE_NUMBER: 120
FAULTING_SOURCE_CODE:
No source found for 'D:/a/ImHex/ImHex/plugins/script_loader/source/loaders/dotnet/dotnet_loader.cpp'
SYMBOL_NAME: script_loader!initialize+107
MODULE_NAME: script_loader
IMAGE_NAME: script_loader.hexplug
STACK_COMMAND: dt ntdll!LdrpLastDllInitializer BaseDllName ; dt ntdll!LdrpFailureData ; ~22s; .ecxr ; kb
FAILURE_BUCKET_ID: SOFTWARE_NX_FAULT_c0000005_script_loader.hexplug!initialize
OS_VERSION: 10.0.19041.1
BUILDLAB_STR: vb_release
OSPLATFORM_TYPE: x64
OSNAME: Windows 10
FAILURE_ID_HASH: {eae65eeb-d7d7-f7c8-908c-bdf2fb888249}
Followup: MachineOwner
---------