maweigert / spimagine

GPU accelerated volume rendering / processing in Python
BSD 3-Clause "New" or "Revised" License
117 stars 17 forks source link

specify Qt5 matplotlib backend, and auto-close plots #17

Closed tlambert03 closed 7 years ago

tlambert03 commented 7 years ago

was getting some crashes in tests

2017-09-27 15:36:12.162 python[3428:173511] -[QNSApplication _setup:]: unrecognized selector sent to instance 0x7f9f18224d00
2017-09-27 15:36:12.165 python[3428:173511] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[QNSApplication _setup:]: unrecognized selector sent to instance 0x7f9f18224d00'
...
libc++abi.dylib: terminating with uncaught exception of type NSException

solved by explicitly specifying Qt5 for matplotlib backend.

Also, auto-close a few matplotlib plots so that the tests can run unobserved (necessary for conda builds)

removed one unused matplotlib import