-
Notifications
You must be signed in to change notification settings - Fork 89
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
QualCoder 3.5 crashing on macOS 14 #879
Comments
Hi. The libvlccore missing library should not affect text coding, and the program did start to run. This might be because vlc is not installed? - but unsure, about this cause. The other issue of a segmentation fault. I am not sure how to fix this, it is a sign the python interpreter is failing from what I am googling. Some suggestions are: (1) re-install python and its modules and recreate the qualcoder venv. (2) use a different Python version, e.g. 3.10 or 3.12. |
Hi, thank you. I did as suggested, meaning I completely uninstalled and removed any non-macOS traces of Python and also remove VLC. Then I reinstalled VLC as well as pyenv, Python 3.10.13 and finally QualCoder. But this did not change anything, the QualCoder still won't find VLC and it still crashes as soon as I select "Create new project".
Btw trying to open an existing project works and QC won't crash, though I have no project to try and open. |
Hmm. OK. Sorry I do not have a mac, so I am guessing a bit for solutions. Would using the previous version work. If not then maybe try installing the noto sans font? it is only a guess: https://fonts.google.com/noto/specimen/Noto+Sans The next possibility is in lines 1622 to 1624:
I would suggest if nothing else works to change the code to this: As not using the native dialog could be a cause of problems on macOS. If this last option does fix the problem then it would have to be replicated in other code spots also. Im sorry I cannot give an easy fix as I am not sure how to fix this. |
Okay, I tried to track this error down. And obviously, it is an issue with QtWidgets or PyQt. I searched for
Edit: The file requirements.txt says that version 6.5.2 of PyQt6 is needed. But obviously version 6.6.1 is installed in the pyenv. Hmm. |
I'm sorry, but I continously running into problems. When I try to add files, an additional error shows up. Maybe the current version of PyQt6 does not work properly with macOS 14? |
Hi, well I am glad that changing that line helped. I put that option in because it would not run on some Linux ubuntu Os's without that option. When adding files and it is crashing, I believe the exact same issue is arising. I can update the latest source code soon to work around this - so instead of using 3.5 download and use the latest. I will update you when this is done. Regard the requirements text file - I have updated this to show the modules required and not to be specific with the versions. It implies the latest modules. |
Fix for issue #879 Removed: options=QtWidgets.QFileDialog.Option.DontUseNativeDialog) As this causes a python segmentation fault on macOS: OS: macOS 14.2.1 Version: Python 3.11.7
OK I have implemented that code fix in the latest code (download with the green Code button). |
I am facing the same issue in macOS 13.6.3. Indeed the initial problem is solved in the current master branch. Nevertheless the problem where the program crashes when trying to add files remains. The problem is also there in version 3.4 so downgrading doesn't help. Terminal output:
Environment :
|
I finally managed to get QualCoder 3.5 working on another Apple machine. I assume that my initial approach using pyenv to create a virtual environment is not working properly with pyQT, so I switched to using venv instead. |
It didn't work for me, no idea what I'm doing wrong... I'm using venv, tried python 3.9 and 3.10 |
hmm. when it crashes I need more info to try and fix it. |
Describe the bug :
I just installed QualCoder following the instructions in the wiki. I then run QualCoder (while in the QualCoder-3.5 directory) using the command
python3 ./qualcoder/__main__.py.
Though the app starts up, when I select "Create new project" from the menu, the app chrashes down with the following error code shown in the terminal:zsh: segmentation fault python3 ./qualcoder/__main__.py
.In addition to this, when I start QualCoder I also get messages that files are missing (
libvlccore.dylib
).To Reproduce :
I should mention that I use a virtual Python environment via
pyenv
, as otherwise I was not able to install the dependencies modules.pyenv install 3.11
and set this environment globallyDesktop (please complete the following information):
The text was updated successfully, but these errors were encountered: