Opened 5 years ago
Closed 5 years ago
#4404 closed defect (fixed)
Startup command line file arg hangs on Mac
Reported by: | pett | Owned by: | Tom Goddard |
---|---|---|---|
Priority: | moderate | Milestone: | |
Component: | Input/Output | Version: | |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Notify when closed: | Platform: | all | |
Project: | ChimeraX |
Description
Starting ChimeraX like so on a Mac hangs:
/Applications/ChimeraX_Daily.app/Contents/MacOS/ChimeraX 1yew
because this code in chimerax.ui.gui.rapid_access_shown() (added by T.G.) to handle drag-and-drop startups somehow magically opens the 1yew command-line argument (instead of the code for that in ChimeraX_main.init()) and things go south from there:
ses.update_loop.block_redraw()
ses.ui.processEvents(QEventLoop.ExcludeUserInputEvents)
ses.update_loop.unblock_redraw()
Change History (2)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Fixed.
It is scary to see event processing outside the normal event loop -- leads to all kinds of bad behavior. The git commit says it was added to make drag and drop onto the application or dock icon work. I took that event processing out and those still work. So it seems no longer to be needed. I've removed it.
That event processing code has not changed in 4 years and opening 1yew on the startup command-line works in ChimeraX 1.1 so it seems some other change is the immediate cause of the problem.