Slicer builded version crash at startup, ntdll problem

Operating system: Windows 10 Pro
Slicer version: 4.11.0 commit 3d72c1f

I successfully build slicer using Visual Studio 19. But crashes when I try to run it. I got the following in the log file:

[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - Session start time .......: 2020-07-22 20:31:49
[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - Slicer version ...........: 4.11.0-2020-07-06 (revision 29205 / 3d72c1f) win-amd64 - not installed release
[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - Operating system .........: Windows / 7 / (Build 7600, Code Page 65001) - 64-bit
[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - Memory ...................: 7999 MB physical, 20799 MB virtual
[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - CPU ......................: GenuineIntel , 8 cores, 8 logical processors
[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - VTK configuration ........: OpenGL2 rendering, TBB threading
[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - Qt configuration .........: version 5.15.0, with SSL, requested OpenGL 3.2 (compatibility profile)
[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - Developer mode enabled ...: no
[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - Prefer executable CLI ....: yes
[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - Application path .........: C:/3DS/3DSR/Slicer-build/bin/Release
[DEBUG][Qt] 22.07.2020 20:31:49 [] (unknown:0) - Additional module paths ..: (none)
[DEBUG][Python] 22.07.2020 20:31:53 [Python] (C:\3DS\3DSR\Slicer-build\lib\Slicer-4.11\qt-scripted-odules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: Annotations
[DEBUG][Python] 22.07.2020 20:31:55 [Python] (C:\3DS\3DSR\Slicer-build\lib\Slicer-4.11\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentEditor
[DEBUG][Python] 22.07.2020 20:31:55 [Python] (C:\3DS\3DSR\Slicer-build\lib\Slicer-4.11\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentStatistics
[DEBUG][Qt] 22.07.2020 20:31:55 [] (unknown:0) - Switch to module:  "Welcome"

After following the instructions mentioned at " Debugging Slicer application startup issues" I found the following error in the Start Event Viewer:

Nombre de la aplicación con errores: SlicerApp-real.exe, versión: 0.0.0.0, marca de tiempo: 0x5f17e3fa
Nombre del módulo con errores: ntdll.dll, versión: 10.0.18362.815, marca de tiempo: 0xb29ecf52
Código de excepción: 0xc00000fd
Desplazamiento de errores: 0x000000000003c43a
Identificador del proceso con errores: 0x5c
Hora de inicio de la aplicación con errores: 0x01d66086ddb40c79
Ruta de acceso de la aplicación con errores: C:\3DS\3DSR\Slicer-build\bin\Release\SlicerApp-real.exe
Ruta de acceso del módulo con errores: C:\Windows\SYSTEM32\ntdll.dll
Identificador del informe: b439a091-725a-425c-9c26-f1644ffd5c8e
Nombre completo del paquete con errores: 
Identificador de aplicación relativa del paquete con errores: 

Sorry about the Spanish language in the error, but seems that the error is caused by C:\Windows\SYSTEM32\ntdll.dll.
I tried some proposed solutions for other applications, but none of them works for me.
I tried basically the solutions mentioned here, but without a success.
https://answers.microsoft.com/en-us/windows/forum/all/app-crash-with-ntdlldll/9aa59f80-99a1-4f3c-b2f0-7eb72df05b2a

I appreciate if somebody have any suggestion.

Cheers

Zian Fanti

Could you please build in debug mode and run it in a debugger? Then you can see exactly where the application crashes and why.

If the crash is not reproducible in debug mode then build it in RelWithDebInfo and run it in a debugger. Some symbols may be optimized out, but you should still find enough information about what went wrong.

Your startup log is indicating that the system you are running it on is Windows 7? Though you built Slicer on Windows 10?

In the error it is indicating about Windows 10 18362 which is the Windows 10 May 2019 update version.

Hello James, sorry here.
I posted an erroneous log. The posted log was from a test that I made changing the compatibility properties from the generated Slicer.exe.

This is the correct log file.

[DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - Session start time .......: 2020-07-23 12:08:43
[DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - Slicer version ...........: 4.11.0-2020-07-06 (revision 29205 / 3d72c1f) win-amd64 - not installed release
[DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - Operating system .........: Windows /  Professional / (Build 18362, Code Page 65001) - 64-bit    [DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - Memory ...................: 7999 MB physical, 20799 MB virtual
[DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - CPU ......................: GenuineIntel , 8 cores, 8 logical processors
[DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - VTK configuration ........: OpenGL2 rendering, TBB threading
[DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - Qt configuration .........: version 5.15.0, with SSL, requested OpenGL 3.2 (compatibility profile)
[DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - Developer mode enabled ...: no
[DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - Prefer executable CLI ....: yes
[DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - Application path .........: C:/3DS/3DSR/Slicer-build/bin/Release
[DEBUG][Qt] 23.07.2020 12:08:43 [] (unknown:0) - Additional module paths ..: (none)
[DEBUG][Python] 23.07.2020 12:08:50 [Python] (C:\3DS\3DSR\Slicer-build\lib\Slicer-4.11\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: Annotations
[DEBUG][Python] 23.07.2020 12:08:51 [Python] (C:\3DS\3DSR\Slicer-build\lib\Slicer-4.11\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentEditor
[DEBUG][Python] 23.07.2020 12:08:51 [Python] (C:\3DS\3DSR\Slicer-build\lib\Slicer-4.11\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentStatistics
[DEBUG][Qt] 23.07.2020 12:08:51 [] (unknown:0) - Switch to module:  "Welcome"
1 Like

Could you build Slicer in Debug or Release with debug info mode and see what error message do you get?

Hello Andras.

After several hours in the building process, I finally accomplish the building in debug mode.
I needed to modify a little bit the files “archive_read_support_format_warc.c” and “archive_write_set_format_zip.c” at the LibArchive project, in order to have a successful build. The modification in both files was the same, specified all the options of the declared enums in the switch case statements when needed. Not specified all the options cause a C4061 Error.

So, after a successful build, the program runs without a problem in debug mode. At the moment I don’t know what is happening with the release build.

Cheers

Thank you for the update, this is good progress. Since there is no crash in debug mode, you need to build and test in Release with debug info (RelWithDebInfo) mode as well.

Sorry you ran into to that - it’s been fixed upstream and needs to be added to Slicer’s fork.

Good to know that is already fixed