question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Crash with corrupted double-linked list

See original GitHub issue

Hi, Recently, I get crashes with stack trace printed on the console when working on my recent repo: https://github.com/geaxgx/depthai_handface . It is not systematic and seems to me that the crashes occur randomly. I am currently using depthai 2.16.0 but also got the crashes with 2.15.4.

(g2) gx(0) [/home/gx/g2/depthai_handface]                                                                                 
-> ./demo.py -n 1  -p -a                                                                                                  
Palm detection blob     : /home/gx/g2/depthai_handface/models/palm_detection_pp_top2_th50_sh4.blob                        
Landmark blob           : /home/gx/g2/depthai_handface/models/hand_landmark_lite_sh4.blob                                 
Face detection blob     : /home/gx/g2/depthai_handface/models/face_detection_short_range_pp_top1_th50_sh1.blob            
Face landmark blob      : /home/gx/g2/depthai_handface/models/face_landmark_with_attention_pp_sh4.blob                    
Sensor resolution: (1920, 1080)                                                                                           
Internal camera FPS set to: 11                                                                                            
Internal camera image size: 1152 x 648 - pad_h: 252                                                                       
Creating pipeline...                                                                                                 
Creating Color Camera                                                                                                     
Creating Palm Detection pre processing image manip                                                                        
Creating Palm Detection Neural Network...                                                                                 
Creating Hand Landmark pre processing image manip                                                                         
Creating Hand Landmark Neural Network                                                                                     
Creating Face Detection pre processing image manip                                                                        
Creating Face Detection Neural Network                                                                                    
Creating Face Landmark pre processing image manip                                                                         
Creating Face Landmark Neural Network                                                                                     
Pipeline created.                                                                                                         
[14442C102162AACE00] [1.3] [47901.876] [NeuralNetwork(13)] [warning] Network compiled for 4 shaves, maximum available 13, 
compiling for 6 shaves likely will yield in better performance                                                            
[14442C102162AACE00] [1.3] [47901.879] [NeuralNetwork(5)] [warning] Network compiled for 4 shaves, maximum available 13, c
ompiling for 6 shaves likely will yield in better performance                                                             
[14442C102162AACE00] [1.3] [47901.880] [NeuralNetwork(8)] [warning] Network compiled for 4 shaves, maximum available 13, compiling for 6 shaves likely will yield in better performance
[14442C102162AACE00] [1.3] [47901.881] [NeuralNetwork(10)] [warning] Network compiled for 1 shaves, maximum available 13,
compiling for 6 shaves likely will yield in better performance
[14442C102162AACE00] [1.3] [47901.910] [NeuralNetwork(5)] [warning] The issued warnings are orientative, based on optimal
settings for a single network, if multiple networks are running in parallel the optimal settings may vary
Pipeline started - USB speed: SUPER
[14442C102162AACE00] [1.3] [47901.910] [NeuralNetwork(8)] [warning] The issued warnings are orientative, based on optimal
settings for a single network, if multiple networks are running in parallel the optimal settings may vary
[14442C102162AACE00] [1.3] [47901.910] [NeuralNetwork(10)] [warning] The issued warnings are orientative, based on optimal settings for a single network, if multiple networks are running in parallel the optimal settings may vary
[14442C102162AACE00] [1.3] [47901.910] [NeuralNetwork(13)] [warning] The issued warnings are orientative, based on optimal settings for a single network, if multiple networks are running in parallel the optimal settings may vary
Traceback (most recent call last):
  File "./demo.py", line 50, in <module>
    frame, faces, hands = tracker.next_frame()
  File "/home/gx/g2/depthai_handface/HandFaceTracker.py", line 817, in next_frame
    face = self.extract_face_data(res_lm_script, res_lm_nn)
  File "/home/gx/g2/depthai_handface/HandFaceTracker.py", line 645, in extract_face_data
    lm_score = res_lm_nn.getLayerFp16("lm_conv_faceflag")[0]
AttributeError: 'depthai.ADatatype' object has no attribute 'getLayerFp16'
corrupted double-linked list
Stack trace (most recent call last):
#21   Object "python3", at 0x563ac7722fef, in
#20   Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f87abb98c86, in __libc_start_main
#19   Object "python3", at 0x563ac777e77b, in _Py_UnixMain
#18   Object "python3", at 0x563ac777e452, in
#17   Object "python3", at 0x563ac776b7e6, in Py_FinalizeEx
#16   Object "python3", at 0x563ac76efd24, in PyImport_Cleanup
#15   Object "python3", at 0x563ac76a9df1, in PyDict_SetItem
#14   Object "python3", at 0x563ac76d18d0, in
#13   Object "python3", at 0x563ac7653f7b, in
#12   Object "python3", at 0x563ac76e94ef, in
#11   Object "python3", at 0x563ac7653ee7, in
#10   Object "python3", at 0x563ac76e94ef, in
#9    Object "python3", at 0x563ac7653fd7, in
#8    Object "/home/gx/anaconda3/envs/g2/lib/python3.7/site-packages/depthai.cpython-37m-x86_64-linux-gnu.so", at 0x7f878d
263613, in
#7    Object "/home/gx/anaconda3/envs/g2/lib/python3.7/site-packages/depthai.cpython-37m-x86_64-linux-gnu.so", at 0x7f878d
284a66, in
#6    Object "/home/gx/anaconda3/envs/g2/lib/python3.7/site-packages/depthai.cpython-37m-x86_64-linux-gnu.so", at 0x7f878d
476548, in dai::Device::~Device()
#5    Object "/home/gx/anaconda3/envs/g2/lib/python3.7/site-packages/depthai.cpython-37m-x86_64-linux-gnu.so", at 0x7f878d
4762d0, in dai::Device::~Device()
#4    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f87abc0f13e, in cfree
#3    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f87abc078b9, in
#2    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f87abc00836, in
#1    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f87abbb77f0, in abort
#0    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f87abbb5e87, in gsignal
Abandon (signal envoyé par tkill() 19563 1000)
Abandon (core dumped)
(g2) gx(0) [/home/gx/g2/depthai_handface]

log_system_information.txt

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
geaxgxcommented, Jun 24, 2022

I couldn’t reproduce the crash with another usb cable. So the problem was certainly this faulty cable.

And yes @szabi-luxonis, when removing the cable while the device is running, I get crash with stack trace very similar to second stack trace. Thanks.

0reactions
szabi-luxoniscommented, Jun 23, 2022

I could reproduce the crash only once on the OAKD lite (2nd stack trace type), but otherwise the program could run for hours without problem. Could a faulty usb cable generate such errors ? Thoughts ?

From now, trying with another usb cable.

Bad usb cable (e.g. bad shielding, bad signal integrity etc.) can cause the connection to drop, which results in deinitialization of the device. Deinitialization might not be handled properly when connection suddenly drops (ungraceful shutfown). You may try to replicate by removing the USB cable while the device is running.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does 'corrupted double-linked list' mean - Stack Overflow
This is a runtime error and comes randomly in some runs but not all because ... you know accident between two threads is...
Read more >
"corrupted double-linked list" error - ROOT Forum
When I run the code, it runs which I understand from the cout statements, but right before I write the histogram into the...
Read more >
907649 – python gets "corrupted double-linked list" and aborts
This could be due to various causes: (a) a double-free of an allocated block *somewhere* in the process (and thus hard to track...
Read more >
INTERMITTENT CORRUPTED DOUBLE-LINKED LIST ... - IBM
Error Message: Crash with below message======= Memory map: ... IV65245: INTERMITTENT CORRUPTED DOUBLE-LINKED LIST CRASH IN LINUX PPC WHI LE RUNNING IBM ORB ......
Read more >
corrupted double-linked list error after closing main window
I do not see you using a "double-linked list". As ever with a crash, same every time, run in debugger. When it crashes...
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