Comments (4)
Hi guys,
in my opinion, the error messages are not telling really what has happened and which causes the Segmentation Fault. I would say that their crash is just the result of something, which happens before (which is not caught by the Traceback).
I can reproduce the error 'relatively reliable' by pressing the confocal to scan and changing with the mouse wheel at first the upper centiles and directly afterwards moving with the mouse wheel the lower centiles back and forth.
Moreover, I do not think that we would be able to trace that error back to its origin, I believe that is a very tricky bug either in in Qt or even in the c-code of the python interpreter. I would guess it has to do with the dereferencing of a value passed by a signal of Qt.
But you can obviously see the problem here: The burst of signals resulting from changing the spinbox will eventually change the colorbar itself and the picture, which have cross dependencies during the signal sent process. So my suggestion is actually quite simple: Use a SignalProxy? to reduce the burst of emitted signals during the scan (I have added the file QuDi?-dev\Playground\proxy-for-signals.py some time ago exactly for that purpose). I believe that would solve the problem. I.e. deconnect the change of the spinbox upon start of the scan and connect before scan actually starts the value change via the SignalProxy? to reduce the signals (you will actually not feel the difference if signals are reduced to max every 50ms or higher). If the scan stops or is finished, deconnect the Proxy and connect the normal changed method.
Or make it simple and connect the proxy the whole time with the value changed signal.
;)
If you have time to do it you are free to go, I would only have time for that after the pulsed environment works properly.
from qudi.
Up to date backtrace:
Fatal Python error: Segmentation fault
Thread 0x000016c4 (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\site-packages\PyDAQmx\DAQmxFunctions.py", line 25 in mafunction
File "<string>", line 2 in function
File "C:\software\QuDi?\hardware\ni_card.py", line 1160 in _write_scanner_ao
File "C:\software\QuDi?\hardware\ni_card.py", line 1345 in scan_line
File "C:\software\QuDi?\logic\confocal_logic.py", line 664 in _scan_line
Thread 0x00001c14 (most recent call first):
File "C:\software\QuDi?\core\parentpoller.py", line 105 in run
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 920 in _bootstrap_inner
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 888 in _bootstrap
Thread 0x000014b0 (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\site-packages\zmq\utils\garbage.py", line 47 in run
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 920 in _bootstrap_inner
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 888 in _bootstrap
Thread 0x00001ddc (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 290 in wait
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 553 in wait
File "C:\Anaconda3\envs\qudi\lib\site-packages\IPython\core\history.py", line 798 in run
File "C:\Anaconda3\envs\qudi\lib\site-packages\IPython\core\history.py", line 68 in needs_sqlite
File "<decorator-gen-23>", line 2 in run
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 920 in _bootstrap_inner
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 888 in _bootstrap
Thread 0x00001bd0 (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\socket.py", line 187 in accept
File "C:\Anaconda3\envs\qudi\lib\site-packages\rpyc\utils\server.py", line 128 in accept
File "C:\Anaconda3\envs\qudi\lib\site-packages\rpyc\utils\server.py", line 241 in start
File "C:\software\QuDi?\core\remote.py", line 184 in run
Current thread 0x00000d78 (most recent call first):
File "C:\software\QuDi?\gui\confocal\confocalgui.py", line 735 in get_xy_cb_range
File "C:\software\QuDi?\gui\confocal\confocalgui.py", line 778 in refresh_xy_colorbar
File "C:\software\QuDi?\gui\confocal\confocalgui.py", line 1472 in refresh_xy_image
File "C:\software\QuDi?\gui\confocal\confocalgui.py", line 1410 in update_xy_cb_range
File "C:\software\QuDi?\gui\confocal\confocalgui.py", line 1393 in shortcut_to_xy_cb_centiles
File "C:\software\QuDi?\core\main.py", line 233 in <module>
File "C:\Anaconda3\envs\qudi\lib\runpy.py", line 85 in _run_code
File "C:\Anaconda3\envs\qudi\lib\runpy.py", line 170 in _run_module_as_main
The offending line is:
# Exclude any zeros (which are typically due to unfinished scan)
xy_image_nonzero = self.xy_image.image[ np.nonzero(self.xy_image.image) ]
from qudi.
Confirmed.
Also happens randomly at my setup.
from qudi.
Up to date error that occured while scanning and changing the upper percentile spinbox with the mouse wheel:
Windows fatal exception: access violation
Thread 0x000001d0 (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\site-packages\PyDAQmx\DAQmxFunctions.py", line 25 in mafunction
File "<string>", line 2 in function
File "C:\Software\qudi\hardware\ni_card.py", line 1264 in _write_scanner_ao
File "C:\Software\qudi\hardware\ni_card.py", line 1432 in scan_line
File "C:\Software\qudi\logic\interfuse\scanner_tilt_interfuse.py", line 188 in scan_line
File "C:\Software\qudi\logic\confocal_logic.py", line 744 in _scan_line
Thread 0x00001cec (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\site-packages\PyDAQmx\DAQmxFunctions.py", line 25 in mafunction
File "<string>", line 2 in function
File "C:\Software\qudi\hardware\ni_card.py", line 773 in get_counter
File "C:\Software\qudi\logic\counter_logic.py", line 477 in count_loop_body
Thread 0x00001c6c (most recent call first):
File "C:\Software\qudi\core\parentpoller.py", line 132 in run
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 916 in _bootstrap_inner
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 884 in _bootstrap
Thread 0x00001dcc (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\site-packages\zmq\utils\garbage.py", line 47 in run
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 916 in _bootstrap_inner
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 884 in _bootstrap
Thread 0x00001954 (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\site-packages\zmq\sugar\poll.py", line 99 in poll
File "C:\Anaconda3\envs\qudi\lib\site-packages\zmq\eventloop\ioloop.py", line 122 in poll
File "C:\Anaconda3\envs\qudi\lib\site-packages\tornado\ioloop.py", line 862 in start
File "C:\Anaconda3\envs\qudi\lib\site-packages\zmq\eventloop\ioloop.py", line 177 in start
File "C:\Anaconda3\envs\qudi\lib\site-packages\ipykernel\iostream.py", line 72 in _thread_main
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 864 in run
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 916 in _bootstrap_inner
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 884 in _bootstrap
Thread 0x00001de4 (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 295 in wait
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 551 in wait
File "C:\Anaconda3\envs\qudi\lib\site-packages\IPython\core\history.py", line 834 in run
File "C:\Anaconda3\envs\qudi\lib\site-packages\IPython\core\history.py", line 60 in needs_sqlite
File "<decorator-gen-23>", line 2 in run
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 916 in _bootstrap_inner
File "C:\Anaconda3\envs\qudi\lib\threading.py", line 884 in _bootstrap
Thread 0x00001044 (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\socket.py", line 205 in accept
File "C:\Anaconda3\envs\qudi\lib\site-packages\rpyc\utils\server.py", line 128 in accept
File "C:\Anaconda3\envs\qudi\lib\site-packages\rpyc\utils\server.py", line 241 in start
File "C:\Software\qudi\core\remote.py", line 214 in run
Current thread 0x000005f0 (most recent call first):
File "C:\Anaconda3\envs\qudi\lib\site-packages\numpy\core\fromnumeric.py", line 57 in _wrapfunc
File "C:\Anaconda3\envs\qudi\lib\site-packages\numpy\core\fromnumeric.py", line 1546 in nonzero
File "C:\Software\qudi\gui\confocal\confocalgui.py", line 830 in get_xy_cb_range
File "C:\Software\qudi\gui\confocal\confocalgui.py", line 1541 in refresh_xy_image
File "C:\Software\qudi\gui\confocal\confocalgui.py", line 1524 in update_xy_cb_range
File "C:\Software\qudi\gui\confocal\confocalgui.py", line 1507 in shortcut_to_xy_cb_centiles
File "C:\Software\qudi\qtwidgets\pyqtgraphmod\SpinBox.py", line 364 in emitChanged
File "C:\Software\qudi\qtwidgets\pyqtgraphmod\SpinBox.py", line 370 in delayedChange
File "C:\Anaconda3\envs\qudi\lib\site-packages\pyqtgraph\SignalProxy.py", line 71 in flush
File "C:\Anaconda3\envs\qudi\lib\site-packages\pyqtgraph\ThreadsafeTimer.py", line 41 in timerFinished
File "C:\Software\qudi\core\__main__.py", line 310 in <module>
File "C:\Anaconda3\envs\qudi\lib\runpy.py", line 85 in _run_code
File "C:\Anaconda3\envs\qudi\lib\runpy.py", line 193 in _run_module_as_main
Unexpected return value 3221225477. Exiting.
from qudi.
Related Issues (20)
- Confocal scan: moving the corss hair in the XY-scan does not update the X position in the depth scan (XZ) HOT 1
- Tilt correction in confocal scanner behaves strangely HOT 1
- Provided GitHub link in qudi manager runs in page not found error HOT 2
- Add qudi to Open Neuroscience
- Two typos in README
- ODMR GUI default view - counter of elapsed sweeps hidden
- Instreamer crush when trying to stop slow counter with APD off. HOT 1
- Fit parameter settings in Pulsed Measurement and ODMR module are not saved
- Hardware module for the Windfreak SynthHDPro microwave source error while performing cw-ODMR HOT 1
- implement pulse or sequence file size alert. HOT 1
- Qudi Confocal Scanner with NI USB-6212 DAQ Card HOT 2
- OK fpgapulser lost thirdparty --- seeking new solution?
- Question: How to add non-dummy modules for a loadable hardware modules
- Visa resource manager communication errors HOT 5
- Switch_combiner_interfuse seems hard-coded
- Type error in core/garbage_collector.py
- Confocal_GUI_blank_colorbar HOT 2
- Issue with saving scan data as csv file in the confocal GUI HOT 1
- Issue with starting the new qudi core HOT 1
- qudiinstallation, qudi-core vs qudi HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qudi.