-
-
Notifications
You must be signed in to change notification settings - Fork 111
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
Does not work on Chromebook Linux VM #1676
Comments
I also needed to install the font package from https://fonts.google.com/specimen/Ubuntu?query=ubuntu to ~/.fonts to get past an "unknown font ''" exception. |
The traceback is just recording your Ctrl+C keyboard interrupt , so it is not telling me anything at all. I have nothing to go on here. I'm not familiar with Chromebooks and the Linux running on it, so I have no idea how to proceed here. It is not an officially supported platform, but I'm happy to fix issues if we can figure out what the problem is. If the AppImage fails, I'm suspecting it has some issue with some resource. Could you try to run novelWriter from the command line in debug mode? ./novelWriter-2.2.AppImage --debug One thing I know novelWriter cannot work with is a mounted Google Drive. |
That's curious. If no font is set in the config, novelWriter loads the font your system is claiming is the default font via the Qt library as reported by QApplication.font(). It is surprising if it isn't available. The font it tries to load should be printed to the debug log output as |
Yes, i found out about the google drive issue when i found your app. Which
is fantastic by the way.
I understand i was not giving you anything sound to go on, just starting
the conversation.
I will get back to you shortly with the debug information.
…On Sun, Jan 28, 2024, 9:45 AM Veronica Berglyd Olsen < ***@***.***> wrote:
The traceback is just recording your Ctrl+C keyboard interrupt , so it is
not telling me anything at all. I have nothing to go on here. I'm not
familiar with Chromebooks and the Linux running on it, so I have no idea
how to proceed here. It is not an officially supported platform, but I'm
happy to fix issues if we can figure out what the problem is.
If the AppImage fails, I'm suspecting it has some issue with some
resource. Could you try to run novelWriter from the command line in debug
mode?
./novelWriter-2.2.AppImage --debug
One thing I know novelWriter cannot work with is a mounted Google Drive.
—
Reply to this email directly, view it on GitHub
<#1676 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA27YVXVG5B422KE2HEP4IDYQZP73AVCNFSM6AAAAABCOHDTE2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGYZDAOJTGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Correction about the font: It relies on QFontDatabase.systemFont(QFontDatabase.GeneralFont). It is handled here: novelWriter/novelwriter/gui/theme.py Lines 368 to 387 in 11c4428
|
I reopened the terminal, and had previously tried the pip installation as well, but it did not reload the path. I had not uninstalled it as i did the others. The pip installation works without an issue, i ran it in debug mode, and it started right up. If you want to pursue this issue further, i am happy to test, I'm more familiar with running linux applications on a chromebook than most and am also dev. |
The curious part is, when i pressed CTRL+C the application booted to the main window (not the initial window on new installations for release notes) and had to be forcibly closed. Even when it said it couldn't find the font. You just couldn't use it. |
So, there's only an issue with the AppImage then? Which may be resource access, or system defaults or something like that. I am not very familiar with AppImages myself. It was a contributed feature to novelWriter. I'm glad the pip install works. Perhaps it integrates better with the system? |
No, the .deb didn't work either. I was very pleasantly surprised to see it boot up from the pip installation. As far as the google drive goes, i went a separate route and am tracking my projects with git and private github repositories. I like the idea of using a proper version manager, and having it off site is a plus. |
Yeah, the Qt library is C++ and novelWriter is Python, so depending on which side of the divide an issue arises, only a part of it may crash. Since novelWriter usually traps exceptions, it is rare for it to fully crash. I have a custom exception hook that will try to save your data and shut down in a controlled manner when an unhandled exception occurs, which includes a Ctril+C. However, if the Qt GUI thread is unresponsive, it may get stuck. |
Did you install in a venv or Conda env? The .deb install is essentially the same as a root pip install.
Yeah, the virtual file system implementation has some weird mapping between filename and some underlying ID that causes issues in novelWriter. I tried to debug it at some point, but I can't remember what the actual problem was. |
Feel free to close the ticket, thanks for your help and quick response. If you'd like a little bit of help with some of the development contact me, I have a working knowledge of Python, C++ and PyQt5 |
Nope, just used the command that was on the site pip install --user novelwriter |
Ok, will do.
Thanks. This here is the exact kind of issues I need assistance with. I use Debian myself, and have Ubuntu and Windows VMs for testing. Anything else, I rely on help from users. |
I have tried the appimage, the .deb and remotely using novelWriter over ssh on a machine where novelWriter has proven to work.
After the application fails to boot, i pressed CTRL+C to end it and get this message.
Environment:
novelWriter Version: 2.2
Host OS: linux (5.15.0-91-generic)
Python: 3.10.12 (0x30a0cf0)
Qt: 5.15.3, PyQt: 5.15.6
enchant: 3.2.0
KeyboardInterrupt:
Traceback:
File "/usr/lib/python3/dist-packages/novelwriter/guimain.py", line 1269, in _timeTick
@pyqtSlot()
The text was updated successfully, but these errors were encountered: