pigo icon indicating copy to clipboard operation
pigo copied to clipboard

Got exit code 1073741819 (0xC0000005) from python demo

Open xinxin8816 opened this issue 1 year ago • 6 comments

Hi there, I try to exec demo with Python 3.9 on Windows, sometimes got unexpected exit, with code -1073741819 (0xC0000005) , that err from C shared lib I think, and that because of index out of range usually. I'm not good at Golang and not founded the true reason from code, give me some advice to fix it please, thx.

xinxin8816 avatar Jul 23 '22 14:07 xinxin8816

Can you show me exactly what kind of errors are you getting? Just FYI these demos have been tested on Python2 and OpenCV2 so it might be related to the Python version also on which you are trying to run it.

esimov avatar Jul 25 '22 08:07 esimov

Nothing exactly others, just response err code and exit. That err code correlate with out of range in my experience. Python2 may working well, but Python2 has out of date now.

xinxin8816 avatar Jul 25 '22 09:07 xinxin8816

I'm aware about that, only that because I have ported the library to WASM I didn't updated the Python examples to run on Python3. But I have tried it with Python3 and OpenCV4 and sometimes just exited without printing any errors. That's why I asked if you could have shown the errors you got.

esimov avatar Jul 25 '22 11:07 esimov

image Only got this unuseful message, means: Process has been exited, exit code is -1073741819 (0xC0000005)

xinxin8816 avatar Jul 25 '22 11:07 xinxin8816

I have tried on a MacOS with Python 3.9.1 installed and the demos are running, but strangely on Windows in most of the cases the application exits without showing any errors. I was trying to debug it and most probably is related to the data type transfer from Go to Python using ctypes.

esimov avatar Jul 27 '22 13:07 esimov

I ran in pycharm with debug mode, and than got exit code. If running in cmd or powershell, that output nothing.

xinxin8816 avatar Jul 27 '22 14:07 xinxin8816

I'm closing this ticket, the issue is fixed now.

esimov avatar Nov 09 '22 14:11 esimov