darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.45k stars 445 forks source link

[Help] Assertion Failed #305

Closed wakatoyee closed 7 years ago

wakatoyee commented 7 years ago

I followed the building instructions, I installed it on debian (4.9.0-3-amd64) and I got this error upon using installer command and also sw_vers..

Assertion failed: (newSuper->isRealized()), function setSuperclass, file /home/user/darling/src/external/objc4/runtime/objc-runtime-new.mm, line 6546. Illegal instruction: 4

darling shell seems to be working fine, I can navigate and use other tools like hdiutil, telnet, nano, etc.. but I can't tell if all files were in place, I haven't used osx before.. I darling shutdown and reboot, still got those errors.

LubosD commented 7 years ago

Sorry, this seems to be a regression of some sort. We've been fiddling with CoreFoundation lately.

wakatoyee commented 7 years ago

What do you suggest that I should do? I am sorry I'm such a noob :smile:

ahyattdev commented 7 years ago

We can assume that this commit introduced the issue.

ahyattdev commented 7 years ago

I think the problem is NSNumber's implementation is in Foundation but it is used in CoreFoundation here.

LubosD commented 7 years ago

I did some dirty testing in CFInitialize() and found out two things:

I'll try to find out how it should be done, but I assume checking if Foundation has been loaded is one possible choice.