BrownBiomechanics / SlicerAutoscoperM

This 3D Slicer extension enables users to perform image registration.
https://autoscoperm.slicer.org
MIT License
0 stars 3 forks source link

Fix QProcess failing to launch autoscoper.exe on Windows #19

Closed NicerNewerCar closed 1 year ago

NicerNewerCar commented 1 year ago
amymmorton commented 1 year ago

I don't think I can test until I build (after the slicer build from source is complete)- unless you want to commit and we test the extension directly?

jcfr commented 1 year ago

@amymmorton you could modify the file locally based on the content proposed in the pull-request and restart Slicer.

amymmorton commented 1 year ago

I attempted to make local changes (C:\Users\amorton1\AppData\Local\slicer.org\Slicer 5.3.0-2023-03-27\slicer.org\Extensions-31693\SlicerAutoscoperM\lib\Slicer-5.3\qt-scripted-modules\AutoscoperM.py) lines 347-353:

with changeCurrentDir(executableDirectory): logging.info("Starting Autoscoper %s" % executablePath) self.AutoscoperProcess.setProgram(executablePath) self.AutoscoperProcess.start() self.AutoscoperProcess.waitForStarted()

    slicer.app.processEvents()

After slicer restart- the app launches successfully:

[FD] Initializing OpenGL... [FD] Initializing OpenCL-OpenGL interoperability... [FD] Initializing OpenGL... [FD] Initializing OpenCL-OpenGL interoperability... [FD] New Client is Connected...

Trials open successfully

amymmorton commented 1 year ago

machine restart did not change the error