Using the latest of the SlicerCustomAppTemplate and using a default configuration that uses Qt 5.15.2, I’m experiencing that it always crashes when running with the --testing command line argument. The output is like the following:
I tried using the base Slicer custom app configuration because I was originally running into this issue with my actual customized Slicer custom app that I use. I don’t run into that libpng warning with my real app, but I was experiencing the error of the application crashing when using --testing.
Additional Observations:
What I observe when running my custom application with the --testing command line argument is that the launcher splash screen appears to show and close normally, but it never gets to the splash screen that includes the “Loading modules…” type additional text. Instead it crashes and displays the exit abnormally on the command line.
Debugging Attempts:
This crash with the --testing argument does not seem to happen with a local regular Slicer build and also doesn’t happen with a version of Slicer download from the Slicer website. It seems specific to a Slicer custom application. I tried with Slicer Salt 3.0.0(a Slicer custom app) and did not run into the issue though notably that version is quite old and hasn’t been updated since July 2020.
Questions:
Any thoughts of why it is crashing early in the launcher process? Is this a known issue?
cc: @jcfr and @Sam_Horvath for their expertise with the Slicer Custom App.
I also tried using the SlicerCustomAppTemplate to create a custom app that actually still had the same name “Slicer” to see if it was an issue related to the custom name, but it still runs into the same failure with the --testing arg.
c:\D\S4R\Slicer-build>Slicer.exe --python-code "print(slicer.app.userSettings().fileName())" --testing
Switch to module: "Welcome"
C:/Users/andra/AppData/Roaming/NA-MIC/Slicer-tmp.ini
I would recommend to build the custom application in debug mode to find out what happens. You can add a 10s sleep or display a popup at application startup to pause the execution until you attach a debugger.
I also used slicerCustomAppTemplate and used same Qt version in windows. when I use ctest it will failed by the same reason. error: [D:/DSI/slicer-build/bin/Release/CustomTestingApp-real.exe] exit abnormally - Report the problem.
Is there a solution to this? We look forward to hearing from you.