You are not logged in.

#1 2020-09-27 23:16:50

mepqfilho
Member
Registered: 2017-01-02
Posts: 32

Manuskript crashing unexpectedly

Manuskript is always crashing on me unexpectedly. It is apparently random, sometimes I can work in my file for minutes without anything going on, others crashing very shortly upon opening.

The only consistent action I have found to always crash the program is upon hovering the close button. Some times it has also crashed when I press a key such as Shift or Ctrl, but I am not sure that is the cause.

This is my output on terminal:

$ manuskript
/usr/share/manuskript/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

** (process:36931): WARNING **: 20:02:10.403: 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
/usr/share/manuskript/manuskript/importer/opmlImporter.py:124: SyntaxWarning: "is" with a literal. Did you mean "=="?
  return len(s) is 0
/usr/share/manuskript/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/teste1.msk
Detected file format version: 1. Zip: True.
Project /home/myuser/Documents/texts/teste1.msk loaded.
Project teste1.msk saved.
Fatal Python error: Segmentation fault

Current thread 0x00007fd212369740 (most recent call first):
  File "/usr/share/manuskript/manuskript/main.py", line 221 in launch
  File "/usr/share/manuskript/manuskript/main.py", line 234 in run
  File "/usr/bin/manuskript", line 30 in <module>
Segmentation fault (core dumped)

Could someone lend me a hand here? Is it some personal configuration of mine that is causing this? If so, how should I go on to test it?

Offline

#2 2020-09-28 14:05:22

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: Manuskript crashing unexpectedly

Looks like it's not  a new error but has been present for a long time https://github.com/olivierkes/manuskript/issues/450

Icon theme "NumixMsk" not found.

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/"

There are other lines in prepare() that look weird to me, I also wonder why the repo package needs a manuskript.appdata.xml file.


The manuskript-git PKGBUILD in aur looks ...  cleaner .

mepqfilho, for testing purposes I suggest :
remove repo manuskript package
git clone manuskript-git
build it with makepkg
install with pacman -U
Test manuskript-git


If you're not familiar with AUR packages, check https://wiki.archlinux.org/index.php/Ar … Repository


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2020-10-04 20:55:30

mepqfilho
Member
Registered: 2017-01-02
Posts: 32

Re: Manuskript crashing unexpectedly

manuskript-git incurs in the same error, unfortunately. In fact, I had the git version installed first and I thought it was crashing because I was using an unstable version. Seems I will have to live with this bug.

On the application's repository, the last commit was made back in April. Has this application been abandoned?

Offline

#4 2020-10-05 10:55:53

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: Manuskript crashing unexpectedly

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.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#5 2020-10-05 12:59:52

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Manuskript crashing unexpectedly

Lone_Wolf wrote:

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.


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#6 2020-10-10 16:46:43

mepqfilho
Member
Registered: 2017-01-02
Posts: 32

Re: Manuskript crashing unexpectedly

Lone_Wolf wrote:

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.

Offline

#7 2020-10-10 22:37:25

mepqfilho
Member
Registered: 2017-01-02
Posts: 32

Re: Manuskript crashing unexpectedly

Lone_Wolf wrote:

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?

Offline

#8 2020-10-11 11:17:55

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: Manuskript crashing unexpectedly

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


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#9 2020-10-15 14:37:53

mepqfilho
Member
Registered: 2017-01-02
Posts: 32

Re: Manuskript crashing unexpectedly

Lone_Wolf wrote:

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)

Offline

#10 2020-10-15 15:00:51

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: Manuskript crashing unexpectedly

Edit: Sorry, that was irrelevant.

Last edited by progandy (2020-10-15 15:01:53)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#11 2020-10-16 11:16:20

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: Manuskript crashing unexpectedly

** (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 ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#12 2020-10-16 23:44:13

mepqfilho
Member
Registered: 2017-01-02
Posts: 32

Re: Manuskript crashing unexpectedly

Lone_Wolf wrote:

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)

Offline

#13 2020-10-17 12:24:06

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: Manuskript crashing unexpectedly

I've checked on my own system and am not able to crash manuskript there.
my output differs from yours in 2 ways

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

Last edited by Lone_Wolf (2020-10-17 12:24:29)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#14 2020-10-17 13:56:08

mepqfilho
Member
Registered: 2017-01-02
Posts: 32

Re: Manuskript crashing unexpectedly

My locale is indeed en_GB, but I also include en_US should any packages have no support for other locales:

$ 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?

Offline

#15 2020-10-17 14:22:48

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: Manuskript crashing unexpectedly

If the language is the cause of the crash, that's definitely a bug .

Try

LC_ALL=en_US bin/manuskript

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#16 2020-10-17 14:45:59

mepqfilho
Member
Registered: 2017-01-02
Posts: 32

Re: Manuskript crashing unexpectedly

Lone_Wolf wrote:

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.

Offline

#17 2020-10-18 12:05:18

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,866

Re: Manuskript crashing unexpectedly

The messages appear harmless but are a bit weird.

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.

Last edited by Lone_Wolf (2020-10-18 12:05:30)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#18 2020-10-18 14:53:17

mepqfilho
Member
Registered: 2017-01-02
Posts: 32

Re: Manuskript crashing unexpectedly

I should have brought this up earlier, but anyways I'm using KDE Plasma 5.20 and I'm also use PIP from time to time to tinker with some stuff in Python (always with the --user option to avoid conflicts on root).

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.

Offline

Board footer

Powered by FluxBB