My PyQt dependecies bring this up:
$ pacman -Qi python-pyqt5
Name : python-pyqt5
Version : 5.15.1-2
Description : A set of Python bindings for the Qt5 toolkit
Architecture : x86_64
URL : https://riverbankcomputing.com/software/pyqt/intro
Licenses : GPL
Groups : pyqt5
Provides : qt5-python-bindings
Depends On : python-pyqt5-sip qt5-base
Optional Deps : python-opengl: enable OpenGL 3D graphics in PyQt applications [installed]
python-dbus: for python-dbus mainloop support [installed]
qt5-multimedia: QtMultimedia, QtMultimediaWidgets [installed]
qt5-tools: QtHelp, QtDesigner [installed]
qt5-svg: QtSvg [installed]
qt5-webkit: QtWebKit, QtWebKitWidgets [installed]
qt5-xmlpatterns: QtXmlPatterns [installed]
qt5-declarative: QtQml, qmlplugin [installed]
qt5-serialport: QtSerialPort
qt5-websockets: QtWebSockets
qt5-connectivity: QtNfc, QtBluetooth
qt5-x11extras: QtX11Extras [installed]
qt5-networkauth: QtNetworkAuth [installed]
qt5-remoteobjects: QtRemoteObjects
qt5-speech: QtTextToSpeech [installed]
qt5-quick3d: QtQuick3D
Required By : anki kajongg manuskript picard python-pyqtwebengine python-qtconsole spyder torbrowser-launcher
Optional For : kauth kcodecs kcompletion kconfig kconfigwidgets kcoreaddons kdbusaddons kguiaddons ki18n kitemmodels kitemviews
kjobwidgets kwidgetsaddons python-pillow python-qtpy
Conflicts With : pyqt5-common
Replaces : None
Installed Size : 26.75 MiB
Packager : Antonio Rojas <arojas@archlinux.org>
Build Date : Fri 25 Sep 2020 04:13:22 -03
Install Date : Sat 26 Sep 2020 22:21:56 -03
Install Reason : Installed as a dependency for another package
Install Script : No
Validated By : Signature
Out of curiosity, any reason why PyQt seems so popular for GUI applications? I always found strange that Qt is written in C++, but there's a ton of well-known applications developed through PyQt.
]]>For now it looks like locale / language are not causing the issue.
post
$ pacman -Qi python-pyqt5
are you using python Virtual Environment, pip , anaconda or other non-standard python stuff ?
What WM/DE are you using ?
P.S.
And I didn't know you could simply set the locale for an application on the terminal! That's actually quite interesting.
I noticed you enabled ja_JP.UTF-8 and that reminded me of the time I had to run a program made by japanese programmers that constantly failed to run on my system but not on that of co-workers.
After lots of checking it became clear that although the program supported many languages upon initialisation it needed some stuff unique to the japanese language.
Running the program with LC_ALL=ja_JP was the workaround to get it running.
If the language is the cause of the crash, that's definitely a bug .
Try
LC_ALL=en_US bin/manuskript
Not what we expected, though:
$ LC_ALL=en_US bin/manuskript
/home/myuser/development/manuskript/bin/../manuskript/main.py:104: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if platform.system() is not 'Windows':
Debug: Web rendering engine used: QWebView
Running manuskript version 0.11.0.
Preferred translation: ['en-US'] (based on available ui languages)
Using the builtin translation.
/home/myuser/development/manuskript/bin/../manuskript/importer/opmlImporter.py:124: SyntaxWarning: "is" with a literal. Did you mean "=="?
return len(s) is 0
/home/myuser/development/manuskript/bin/../manuskript/exporter/pandoc/abstractPlainText.py:78: SyntaxWarning: "is" with a literal. Did you mean "=="?
if self.formats is "":
Icon theme "NumixMsk" not found.
Loading: /home/myuser/Documents/texts/test3.msk
Detected file format version: 1. Zip: True.
Project /home/myuser/Documents/texts/test3.msk loaded.
Fatal Python error: Segmentation fault
Current thread 0x00007fa7fd230740 (most recent call first):
File "/home/myuser/development/manuskript/bin/../manuskript/main.py", line 221 in launch
File "/home/myuser/development/manuskript/bin/../manuskript/main.py", line 234 in run
File "bin/manuskript", line 13 in <module>
Segmentation fault (core dumped)
There are some interesting outputs when creating a new project, though, as it references completely unrelated applications:
$ LC_ALL=en_US bin/manuskript
Debug: Web rendering engine used: QWebView
Running manuskript version 0.11.0.
Preferred translation: ['en-US'] (based on available ui languages)
Using the builtin translation.
Icon theme "NumixMsk" not found.
Last accessed directory "/home/myuser/Documents/texts" loaded.
kf.service.services: The desktop entry file "/usr/share/applications/qemu.desktop" has Type= "Application" but no Exec line
kf.service.sycoca: Invalid Service : "/usr/share/applications/qemu.desktop"
kf.service.services: The desktop file "/home/myuser/.local/share/applications/appimagekit-Scrivener.desktop" references the action "Uninstall" but doesn't define it
QPainter::begin: Paint device returned engine == 0, type: 2
Fatal Python error: Segmentation fault
Current thread 0x00007f9530199740 (most recent call first):
File "/home/myuser/development/manuskript/bin/../manuskript/main.py", line 221 in launch
File "/home/myuser/development/manuskript/bin/../manuskript/main.py", line 234 in run
File "bin/manuskript", line 13 in <module>
Segmentation fault (core dumped)
And I didn't know you could simply set the locale for an application on the terminal! That's actually quite interesting.
]]>Try
LC_ALL=en_US bin/manuskript
$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
LC_TIME="en_GB.UTF-8"
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY="en_GB.UTF-8"
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER="en_GB.UTF-8"
LC_NAME="en_GB.UTF-8"
LC_ADDRESS="en_GB.UTF-8"
LC_TELEPHONE="en_GB.UTF-8"
LC_MEASUREMENT="en_GB.UTF-8"
LC_IDENTIFICATION="en_GB.UTF-8"
LC_ALL=
$ localedef --list-archive
en_GB.utf8
en_US.utf8
ja_JP.utf8
pt_BR.utf8
$ localectl list-locales
en_GB.UTF-8
en_US.UTF-8
ja_JP.UTF-8
pt_BR.UTF-8
But since Manuskript does recognise en_GB, it seems more like a bug, doesn't it?
]]>Different translation
Preferred translation: ['en-US'] (based on available ui languages)
Using the builtin translation.
also no messages from qpainter like this
QPainter::begin: Paint device returned engine == 0, type: 2
Let's start with checking locale .
post
$ locale
$ localedef --list-archive
$ localectl list-locales
It may not solve the issue, but try installing nuspell package.
If you start with a freshly created project, can you crash manuskript also ?
As expected, Nuspell didn't change the outcome.
Creating a new project as well doesn't make a difference:
Debug: Web rendering engine used: QWebView
Running manuskript version 0.11.0.
Preferred translation: ['en-GB'] (based on available ui languages)
Loaded translation: manuskript_en_GB.qm
Icon theme "NumixMsk" not found.
Last accessed directory "/home/myuser/Documents/texts" loaded.
QPainter::begin: Paint device returned engine == 0, type: 2
Fatal Python error: Segmentation fault
Current thread 0x00007fb043865740 (most recent call first):
File "/home/myuser/development/manuskript/bin/../manuskript/main.py", line 221 in launch
File "/home/myuser/development/manuskript/bin/../manuskript/main.py", line 234 in run
File "bin/manuskript", line 13 in <module>
Segmentation fault (core dumped)
** (process:10232): WARNING **: 11:32:02.979: Error loading plugin: libnuspell.so.3: cannot open shared object file: No such file or directory
It may not solve the issue, but try installing nuspell package.
If you start with a freshly created project, can you crash manuskript also ?
]]>Guess I was vague because that's not what I wanted you to test.
- verify you have installed the dependencies mentioned in the PKGBUILD
- create a directory test-manuskript and cd into it
- use git to clone https://github.com/olivierkes/manuskript.git
- cd into manuskript directory
- execute bin/manuskript
- try to crash it
- post output
Here we go, only a few new lines of warning while crashing:
$ git clone https://github.com/olivierkes/manuskript.git --branch 0.11.0
$ cd manuskript
$ bin/manuskript
Debug: Web rendering engine used: QWebView
** (process:10232): WARNING **: 11:32:02.979: Error loading plugin: libnuspell.so.3: cannot open shared object file: No such file or directory
Running manuskript version 0.11.0.
Preferred translation: ['en-GB'] (based on available ui languages)
Loaded translation: manuskript_en_GB.qm
Icon theme "NumixMsk" not found.
Loading: /home/myuser/Documents/texts/teste1.msk
Detected file format version: 1. Zip: True.
Project /home/myuser/Documents/texts/teste1.msk loaded.
Fatal Python error: Segmentation fault
Current thread 0x00007ff4d3b8a740 (most recent call first):
File "/home/myuser/development/manuskript/bin/../manuskript/main.py", line 221 in launch
File "/home/myuser/development/manuskript/bin/../manuskript/main.py", line 234 in run
File "bin/manuskript", line 13 in <module>
Segmentation fault (core dumped)
- verify you have installed the dependencies mentioned in the PKGBUILD
- create a directory test-manuskript and cd into it
- use git to clone https://github.com/olivierkes/manuskript.git
- cd into manuskript directory
- execute bin/manuskript
- try to crash it
- post output
Hard to tell,
Have you tried downloading the source into some-dir directory under $HOME , cd'ing to some-dir and there executing bin/manuskript ?If that works we'll know the problem is with packaging.
Yeah, even through bin/manuskript it will crash due to the NumixMsk error. The executable is found under this:
$ git clone https://aur.archlinux.org/manuskript-git.git
cd manuskript-git
makepkg -si
cd pkg/manuskript-git/usr
bin/manuskript
So basically sit and wait?
]]>Hard to tell,
Have you tried downloading the source into some-dir directory under $HOME , cd'ing to some-dir and there executing bin/manuskript ?If that works we'll know the problem is with packaging.
Haven't tried it, but I'll take a shot at it.
]]>The PKGBUILD package() function copies files for that icon theme to a location manuskript doesn't seem to check
cp -r manuskript icons i18n sample-projects resources "$pkgdir/usr/share/manuskript/"
That seems to mirror the upstream create_deb.sh script, so it shouldn't be completely wrong.
]]>If that works we'll know the problem is with packaging.
]]>