Closed IvanDobysh closed 2 years ago
It seems like Qt is throwing a message to our logging handler of an unknown type. I assume we should catch such instances and treat it as unknown or some other kind of logging level instead. So we would at least see what's causing this.
Do you know a bit of Python? If so you could try catching the issue by putting an if branch before assigning the log_level
in function qtMessageHandler
(line 221 of "/usr/share/manuskript/manuskript/logging.py").
It should work like this for example:
def qtMessageHandler(msg_type, msg_log_context, msg_string):
"""Forwards Qt messages to Python logging system."""
# Convert Qt msg type to logging level
if (int(msg_type) >= 0) and (int(msg_type) < 4):
log_level = [logging.DEBUG, logging.WARNING, logging.ERROR, logging.FATAL] [ int(msg_type) ]
else:
log_level = logging.ERROR
I will probably apply a similar patch upstream as well because we do an unsafe conversion there with the msg_type
, I assume. But if you can apply it to the code on your system, you could already get the more interesting part in what's causing the issue. ^^
Otherwise you have to wait until the patch makes it to you (I don't know which package you use currently).
I've commited (https://github.com/olivierkes/manuskript/commit/e45314ba2d3c58287255c44cf9fd1db7bf697c49) a proper way, I think. The log level for INFO was also missing. So you could try to check what you are getting with running manuskript from head of the repository.
Yay, now it's starting, thank you!
The only error in console now is:
CRITICAL> The recently-used.xbel is not an XBEL file, overwriting.
Okay but I guess that would be a system dependent issue. Good, I will close this then.
OS: Arch Linux x86_64 Host: MS-7C90 1.0 Kernel: 5.17.5-zen1-1-zen Shell: bash 5.1.16 Resolution: 3440x1440 DE: Plasma 5.24.4 WM: kwin WM Theme: Breeze Theme: Nordic [Plasma], Breeze [GTK2/3] Icons: [Plasma], Papirus-Dark [GTK2/3] Terminal: konsole CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz GPU: AMD ATI Radeon RX 470/480/570/570X/580/ Memory: 6750MiB / 32087MiB
Hello! I'm trying to use Manuskript on my Arch machine on KDE + Wayland. I've tried to install the community package and the git package as well, but the crash is still here.
I'm starting the Manuskript, it offers me to create and save a new document and when I'm trying to save it at any place at my PC - Manuskript is crashing.
Here's the console output:
Thank you in advance, have a nice day!