dlib icon indicating copy to clipboard operation
dlib copied to clipboard

[Bug]: Aborted (core dumped) / Segmentation fault (core dumped)

Open justmobilize opened this issue 7 months ago • 0 comments

What Operating System(s) are you seeing this problem on?

Linux (x86-64)

dlib version

19.24.9 / 20.0.0

Python version

3.10 / 3.12

Compiler

GCC 11 / 14

Expected Behavior

No response

Current Behavior

I have tried multiple version of:

  • CUDA (between 11.8-12.9)
  • CuDNN (8.9-9.9)
  • python 3.10 and 3.12
  • Ubuntu 22 and 24
  • the current and previous versions of dlib

And always get a core dumped error.

I didn't used to get this error (on 19.24.9), but all my installation steps are the same and can't find what's causing it.

I've seen multiple other issues with this, but they always go inactive. Any ideas on what this could be from?

Steps to Reproduce

Either:

import dlib
face_detection = dlib.cnn_face_detection_model_v1("mmod_human_face_detector.dat")

image = dlib.load_rgb_image("sample.jpg")
face_locations = face_detection(image, 1)

or:

import dlib

detector = dlib.get_frontal_face_detector()
sp = dlib.shape_predictor("shape_predictor_5_face_landmarks.dat")
facerec = dlib.face_recognition_model_v1("dlib_face_recognition_resnet_model_v1.dat")

img = dlib.load_rgb_image("sample.jpg")
dets = detector(img, 1)
d = dets[0]
shape = sp(img, d)
face_descriptor = facerec.compute_face_descriptor(img, shape)

Anything else?

No response

justmobilize avatar Jun 02 '25 15:06 justmobilize