You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
When I run the End2End Captcha Recognition (OCR) example, get a segmentation fault.
This is the original blog url I changed the devs, from gpu to cpu, for lack of hardware[gpu]
Below is the main code:
Operating System:
virtual machine
Linux Mint 18[base on Ubuntu 16.04], 64bit
Compiler:
gcc 5.4.0
Package used (Python/R/Scala/Julia):
Python 2.7.12
MXNet version:
get from git master[2017-2-23]
If you are using python package, please provide
opencv 3.2
Error Message:
run in PyCharm
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
gdb py-bt
Traceback (most recent call first):
File "test-g.py", line 56, in iter
img = cv2.imdecode(img, cv2.IMREAD_COLOR)
File "/home/mao/mxnet/python/mxnet/model.py", line 236, in _train_multi_device
for data_batch in train_data:
File "/home/mao/mxnet/python/mxnet/model.py", line 816, in fit
sym_gen=self.sym_gen)
File "test-g.py", line 135, in
model.fit(X = data_train, eval_data = data_test, eval_metric = Accuracy, batch_end_callback=mx.callback.Speedometer(32, 50),)
gdb bt
#0 0x0000000000000000 in ?? () #1 0x00007ffff18149ee in cv::imdecode(cv::_InputArray const&, int) ()
from /usr/lib/x86_64-linux-gnu/libopencv_highgui.so.2.4 #2 0x00007fffd9728f92 in pyopencv_cv_imdecode(_object*, _object*, _object*) ()
from /usr/lib/python2.7/dist-packages/cv2.so #3 0x00000000004c468a in call_function (oparg=,
pp_stack=0x7fffffffd440) at ../Python/ceval.c:4350 #4 PyEval_EvalFrameEx () at ../Python/ceval.c:2987 #5 0x00000000004dddca in gen_send_ex.isra.0.lto_priv ()
at ../Objects/genobject.c:85 #6 0x00000000004c4c6f in PyEval_EvalFrameEx () at ../Python/ceval.c:2806 #7 0x00000000004c2765 in PyEval_EvalCodeEx () at ../Python/ceval.c:3582 #8 0x00000000004ca099 in fast_function (nk=17, na=,
n=, pp_stack=0x7fffffffd7e0,
func=<function at remote 0x7fffd4b0c488>) at ../Python/ceval.c:4445 #9 call_function (oparg=, pp_stack=0x7fffffffd7e0)
at ../Python/ceval.c:4370 #10 PyEval_EvalFrameEx () at ../Python/ceval.c:2987 #11 0x00000000004c2765 in PyEval_EvalCodeEx () at ../Python/ceval.c:3582 #12 0x00000000004ca099 in fast_function (nk=4, na=,
n=, pp_stack=0x7fffffffd9f0,
func=<function at remote 0x7fffd4b0d0c8>) at ../Python/ceval.c:4445 #13 call_function (oparg=, pp_stack=0x7fffffffd9f0)
---Type to continue, or q to quit---
at ../Python/ceval.c:4370 #14 PyEval_EvalFrameEx () at ../Python/ceval.c:2987 #15 0x00000000004c2765 in PyEval_EvalCodeEx () at ../Python/ceval.c:3582 #16 0x00000000004c2509 in PyEval_EvalCode (co=,
globals=, locals=) at ../Python/ceval.c:669 #17 0x00000000004f1def in run_mod.lto_priv () at ../Python/pythonrun.c:1376 #18 0x00000000004ec652 in PyRun_FileExFlags () at ../Python/pythonrun.c:1362 #19 0x00000000004eae31 in PyRun_SimpleFileExFlags ()
at ../Python/pythonrun.c:948 #20 0x000000000049e14a in Py_Main () at ../Modules/main.c:640 #21 0x00007ffff7811830 in __libc_start_main (main=0x49dab0
, argc=2,
argv=0x7fffffffde38, init=, fini=,
rtld_fini=, stack_end=0x7fffffffde28)
at ../csu/libc-start.c:291 #22 0x000000000049d9d9 in _start ()
What have you tried to solve it?
I find the point of interrupte is img = cv2.imdecode(img, cv2.IMREAD_COLOR).
So I split this part to another file, only generate img from captcha module, and decode it by opencv.
It can run well.
But when I run the example, with mxnet, decode by opencv will be segmentation fault.
What's wrong?
The text was updated successfully, but these errors were encountered:
When I run the End2End Captcha Recognition (OCR) example, get a segmentation fault.
This is the original blog url
I changed the devs, from gpu to cpu, for lack of hardware[gpu]
Below is the main code:
Environment info
Operating System:
virtual machine
Linux Mint 18[base on Ubuntu 16.04], 64bit
Compiler:
gcc 5.4.0
Package used (Python/R/Scala/Julia):
Python 2.7.12
MXNet version:
get from git master[2017-2-23]
If you are using python package, please provide
opencv 3.2
Error Message:
run in PyCharm
gdb py-bt
gdb bt
What have you tried to solve it?
I find the point of interrupte is
img = cv2.imdecode(img, cv2.IMREAD_COLOR)
.So I split this part to another file, only generate img from captcha module, and decode it by opencv.
It can run well.
But when I run the example, with mxnet, decode by opencv will be segmentation fault.
What's wrong?
The text was updated successfully, but these errors were encountered: