Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] - when running example code on Mac 12.1 - fatal error: unexpected signal during runtime execution #24

Open
brianhumphreys opened this issue Feb 13, 2022 · 1 comment
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@brianhumphreys
Copy link

brianhumphreys commented Feb 13, 2022

Describe the bug
Darknet built successfully.
The issue occurs when testing the repo with the sample:

go build main.go && ./main --configFile=../yolov4.cfg --weightsFile=../yolov4.weights --imageFile=../sample.jpg

The net builds but fails on the detection step in the network.c file with the following error:

atal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0x537750000 pc=0x442fccd]

Specifically, the code fails on network_predict_ptr(n, sized.data);.

To Reproduce
Run the example code on mac.

Expected behavior
An image with bounding boxes is generated

Describe the solution you'd like and provide pseudocode examples if you can
It would be nice to know if this is mac related or an OS-agnostic issue. If mac-related, I will perform additional diagnostics. If not then direction towards a solution would be greatly appreciated.

@brianhumphreys brianhumphreys added bug Something isn't working help wanted Extra attention is needed labels Feb 13, 2022
@brianhumphreys
Copy link
Author

When printing the sized.data parameter into network_predict_ptr with printf(sized.data) I got the following:

�l?C�k?�k?�k?�k?�k?Ki?�i?�i?�i?�h?�h?�xj?�j?�j?�j?�k?�k?�k?�k?�k?�k?�k?�k?~j?�j?�i?�i?�i?�h?�h?�h?�h?�h?P�h?�i?�yi?�j?�j?�kj?�k?�k?E�j?�l?��l?�m?�m?��m?�n?��m?�j?!Zi?0�k?}�p?Egs?
                               L?F\�>M�>5��>��>ԩ�>(�>�>�w�>�T�>

It seems odd that this is the output and not an address. Is this the correct output?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants