【ppstructure】 FatalError: `Segmentation fault` is detected by the operating system.

See original GitHub issue

在运行 ppstructure 的 表格识别 table/predict_table.py 时报错如下

`— Fused 0 subgraphs into layer_norm op. — Fused 0 subgraphs into layer_norm op. — Fused 0 subgraphs into layer_norm op. [2021/11/26 14:49:23] root INFO: [0/1] /home/aistudio/data/data118022/taihe2021-004.jpg [2021/11/26 14:49:45] root DEBUG: dt_boxes num : 130, elapse : 7.971612453460693 [2021/11/26 14:50:13] root DEBUG: rec_res num : 130, elapse : 27.330198287963867


C++ Traceback (most recent call last):

0 paddle::framework::SignalHandle(char const*, int) 1 paddle::platform::GetCurrentTraceBackStringabi:cxx11


Error Message Summary:

FatalError: Segmentation fault is detected by the operating system. [TimeInfo: *** Aborted at 1637909414 (unix time) try “date -d @1637909414” if you are using GNU date ***] [SignalInfo: *** SIGSEGV (@0x7faee2f95622) received by PID 387 (TID 0x7faeec353700) from PID 18446744073222575650 ***]`

平台:aistudio.baidu.com 环境: CPU: 2核 总内存: 8 GB Python: 3.7.4 框架版本: PaddlePaddle 2.1.2 命令: !python3 table/predict_table.py --use_gpu=False --det_model_dir=inference/en_ppocr_mobile_v2.0_table_det_infer --rec_model_dir=inference/en_ppocr_mobile_v2.0_table_rec_infer --table_model_dir=inference/en_ppocr_mobile_v2.0_table_structure_infer --image_dir=/home/aistudio/data/data118022/taihe2021-004.jpg --rec_char_dict_path=../ppocr/utils/dict/table_dict.txt --table_char_dict_path=../ppocr/utils/dict/table_structure_dict.txt --rec_char_type=EN --det_limit_side_len=736 --det_limit_type=min --output ../output/table

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10

github_iconTop GitHub Comments

3reactions
Amanda-Barbaracommented, Dec 3, 2021

@WenmuZhou 上面的这个问题我已经解决了,是cuda版本的问题,我系统安装的是cuda11.3版本,python虚拟环境安装的paddlepaddle-gpu版本如下: python -m pip install paddlepaddle-gpu==2.2.0.post112 -f https://www.paddlepaddle.org.cn/whl/linux/mkl/avx/stable.html 模型在gpu模式下就可以正常执行了,

ir=None, total_process_num=1, type='ocr', use_angle_cls=True, use_dilation=False, use_gpu=True, use_mp=False, use_onnx=False, use_pdserving=False, use_space_char=True, use_tensorrt=False, vis_font_path='./doc/fonts/simfang.ttf', warmup=True)
[2021/12/03 14:31:54] root INFO: **********./imgs_en/img_12.jpg**********
[2021/12/03 14:31:56] root DEBUG: dt_boxes num : 11, elapse : 1.941330909729004
[2021/12/03 14:31:56] root DEBUG: cls num  : 11, elapse : 0.04993081092834473
[2021/12/03 14:31:57] root DEBUG: rec_res num  : 11, elapse : 0.32021641731262207
[2021/12/03 14:31:57] root INFO: [[[443.0, 176.0], [1164.0, 176.0], [1164.0, 222.0], [443.0, 222.0]], ('ACKNOWLEDGEMENTS', 0.9988512)]
[2021/12/03 14:31:57] root INFO: [[[397.0, 345.0], [1204.0, 346.0], [1204.0, 386.0], [397.0, 384.0]], ('We would like to thank all the designers and', 0.99851286)]
[2021/12/03 14:31:57] root INFO: [[[402.0, 398.0], [1204.0, 398.0], [1204.0, 433.0], [402.0, 433.0]], ('contributors who have been involved in the', 0.97925395)]
[2021/12/03 14:31:57] root INFO: [[[399.0, 446.0], [1207.0, 445.0], [1208.0, 486.0], [399.0, 488.0]], ('production of this book; their contributions', 0.9992903)]
[2021/12/03 14:31:57] root INFO: [[[402.0, 500.0], [1206.0, 500.0], [1206.0, 534.0], [402.0, 534.0]], ('havebeen indispensable to its creation.We', 0.97777313)]
[2021/12/03 14:31:57] root INFO: [[[401.0, 552.0], [1206.0, 548.0], [1206.0, 583.0], [401.0, 586.0]], ('would also like to express our gratitude to all', 0.9800184)]
[2021/12/03 14:31:57] root INFO: [[[401.0, 600.0], [1207.0, 596.0], [1208.0, 633.0], [401.0, 636.0]], ('the producers for their invaluable opinions', 0.9858033)]
[2021/12/03 14:31:57] root INFO: [[[402.0, 650.0], [1206.0, 650.0], [1206.0, 684.0], [402.0, 684.0]], ('and assistance throughout this project.And to', 0.9927481)]
[2021/12/03 14:31:57] root INFO: [[[401.0, 703.0], [1207.0, 700.0], [1208.0, 734.0], [401.0, 738.0]], ('themany others whose names are notcredited', 0.9775389)]

1reaction
WenmuZhoucommented, Dec 5, 2021

@WenmuZhou 我CPU、GPU都有这个问题,是在AI Studio上运行的

这个应该是aistudio的环境问题,这边正在看哈

Read more comments on GitHub >

github_iconTop Results From Across the Web

`Segmentation fault` is detected by the operating system
paddlepaddle FatalError: Segmentation faultis detected by the operating system. 继续运行昨天的代码,还是不能运行下去,尝试找错。 把gpu运行改成 ...
Read more >
新版本Segmentation fault - AI Studio - 百度
新版本Segmentation fault. FatalError: `Segmentation fault` is detected by the operating system.
Read more >
Why exactly is "Segmentation Fault " still a thing in C
It's not a thing in C specifically, it's a thing in a Unix-like OS. Any language that's not memory-safe (makes it possible to...
Read more >
Gimp 2.10.32 - Fatal error: Segmentation Fault when entering ...
Ubuntu 22.10 (alpha) GIMP version: 2.10.32 Package: deb Operating System: Linux Trying to entering...
Read more >
Bug in the self.predictor.run() function. How to tracing for ...
FatalError : Segmentation fault is detected by the operating system. [TimeInfo: *** Aborted at 1656470584 (unix time) try "date -d ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found