Open xoriole opened 3 months ago
Looks similar to this: Nuitka: PyQt5 5.15.4 OSX segmentation fault
using nuitka compiled binaries in OSX works fine with PyQt5 5.15.2, but using PyQt5 5.15.4 will always lead to a segmentation fault:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff207d02be _CFGetNonObjCTypeID + 10
1 com.apple.CoreFoundation 0x00007fff206ab974 CFBundleCopyBundleURL + 14
2 QtCore 0x000000010f090470 QLibraryInfo::location(QLibraryInfo::LibraryLocation) + 1328
3 QtCore 0x000000010f0906cd QLibraryInfo::location(QLibraryInfo::LibraryLocation) + 1933
I guess this has something to do with PyQt5 5.15.4 using Qt libs 5.15.2, because there are no Qt libs 5.15.4. Installing PyQt5 5.15.4 will always install PyQt5-Qt5 5.15.2. So it might be because version numbers are not equal although it is compatible.
So, finding the right version for all Qt-related libraries might help.
I upgraded our dependencies and also upgraded PyInstaller to the latest version, and the resulting build works without segfaulting on MacOS for me: https://jenkins.tribler.org/job/Tribler/job/Build/job/Build-All/78/
After the installation on MacOS, it is necessary to open the terminal and perform the following command:
xattr -c /Applications/Tribler.app
Or, alternatively:
xattr -d com.apple.quarantine /Applications/Tribler.app
Without it, MacOS falsely reports that the application is corrupted, but it just means that it is not signed.
The message at the initial Tribler start is less nice than before, but now it does not segfault.
It appears there was a misunderstanding in the build based on the tag. Even though the listed version in the stacktrace is 7.13.3, the build happened on the main branch instead of the release branch. So, the build with segfault is actually on the main branch and not on the release branch. Thus, I have updated the issue title.
The build on the release branch is segfaulting.
Here is a Jenkins build to test: https://jenkins.tribler.org/job/Tribler/job/Build/job/Build-macOS/44/