Closed ramzes13 closed 3 years ago
What flavor of linux? What version of Qt? Were you using your system version of Qt, or an alternate installed version. Are there any remnants of a repo-installed version of Sigil left on your system?
And what version of Sigil are you trying to build?
I see Sigil-1.7.0 in the build log in a few places. I wouldn't mind seeing the cmake configure command/output as well.
And it is being run using the linux launch script right? Perhaps a gdb backtrace might at least tell us where the crash is or at least what code is crashing.
As quickly as it's faulting, it would seem to me that Sigil's trying to access different versions of libraries than those it was compiled against. But that's just a guess.
which sigil
should tell us if multiple versions of Sigil might be installed.
ldd /usr/local/lib/sigil/sigil
should show what it's trying to link against.
It could also be a corrupt sigil ini file. deleting ~/.local/share/sigil-ebook/sigil/
might be worth a shot.
But yes... some gdb output would also be very handy if it could be arranged.
The only other idea I have is that maybe some of the required python modules are missing, I am thinking of lxml explicitly.
That's possible. I'm not used to seeing segfaults when those are missing, but that certainly doesn't mean it can't happen.
@dougmassay thanks for the quick reply, below you will find the answers.
What flavor of linux?
5.4.0-84-generic 94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
for GUI I use: https://i3wm.org/
>What version of Qt?
qmake --version
QMake version 3.1 Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu
>Were you using your system version of Qt, or an alternate installed version.
I didn't explicitly use the Qt library, if it is a cmd that I can run to answer this question tell me
>Are there any remnants of a repo-installed version of Sigil left on your system?
First, I tried `sudo apt install sigil` everything went ok, but when I try to start, I had same error.
I removed it with `sudo apt-get remove sigil` and start to build it
> which sigil
/usr/local/bin/sigil
python --version
Python 3.8.10
[cmake.txt](https://github.com/Sigil-Ebook/Sigil/files/7215470/cmake.txt)
[make.txt](https://github.com/Sigil-Ebook/Sigil/files/7215472/make.txt)
[make install.txt](https://github.com/Sigil-Ebook/Sigil/files/7215473/make.install.txt)
@kevinhendricks Hello,
And it is being run using the linux launch script right?
yes
Perhaps a gdb backtrace might at least tell us where the crash is or at least what code is crashing.
I'll check how to use it, and I will come back with an answer, or you can give me a link to instructions on what to do
Quick thought: try installing the libqt5svg5 package (i think that's what it's called on Ubuntu) from ypur repositories and then run Sigil. No need to rebuild.
And please try removing or renaming your sigil.ini file and retrying. That will not require a rebuild either.
@dougmassay
libqt5svg5 is already the newest version (5.12.8-0ubuntu1).
@kevinhendricks I remove sigil.ini and compare content after sigil start
After these manipulations still have same error:
sigil
Debug: regenerating tag list
[1] 306196 segmentation fault (core dumped) sigil
Hmmm. I was hoping that libqt5svg5 was missing. I've seen crashes after a successful build when the runtime dependency of QtSvg was missing. Back to the drawingboard, I guess. I'd say rule out the online update check by launching Sigil with an environment variable, but that's not likely to be the culprit since according to the Sigil.ini file, it appears to be retrieving the latest version just fine. But if you want to try it to be certain, try launching sigil from a terminal like so:
SKIP_SIGIL_UPDATE_CHECK=1 sigil
Otherwise, I may have to create a virtual Ubuntu with your window manager to test with. I'm not familiar with it. Any chance you can log into a different desktop environment session on that same machine to rule it out (assuming of course that you have any other DEs installed)?
Quick question: are you using Ubuntu 20.04 that you've installed the Regolith/iw3 Desktop Environment to (from a PPA), or are you actually using the Regolith Linux distro that's based on Ubuntu?
I'll check how to use it, and I will come back with an answer, or you can give me a link to instructions on what to do
apt install gdb
exec /usr/local/lib/sigil/sigil "$@"
-- change the "exec" to gdb -ex run --args
(the full line will therefore be gdb -ex run --args /usr/local/lib/sigil/sigil "$@"
)sigil
via the command linebt full
at the prompt and copy the output here.generate-core-file
at the prompt and it should produce a message such as Saved corefile core.1804077
-- upload core.1804077
(or whichever number yours has) as well.@dougmassay
SKIP_SIGIL_UPDATE_CHECK=1 sigil
Debug: regenerating tag list
[1] 326568 segmentation fault (core dumped) SKIP_SIGIL_UPDATE_CHECK=1 sigil
I have installed official Ubuntu LTS, after that I added the i3 window manager.
I switched to gnome, default UI for Ubuntu, and error persist
@eli-schwartz
sigil INSERT ✔ 18:10:45
GNU gdb (Ubuntu 9.2-0ubuntu1~20.04) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/local/lib/sigil/sigil...
(No debugging symbols found in /usr/local/lib/sigil/sigil)
Starting program: /usr/local/lib/sigil/sigil
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe419e700 (LWP 15359)]
[New Thread 0x7fffe19f1700 (LWP 15360)]
[New Thread 0x7fffe11f0700 (LWP 15361)]
[New Thread 0x7fffe09ef700 (LWP 15362)]
[New Thread 0x7fffd6849700 (LWP 15363)]
[New Thread 0x7fffd4d56700 (LWP 15364)]
[Detaching after fork from child process 15365]
[Detaching after fork from child process 15366]
[New Thread 0x7fffbffff700 (LWP 15369)]
[New Thread 0x7fffbf7fe700 (LWP 15370)]
[New Thread 0x7fffbeffd700 (LWP 15371)]
[New Thread 0x7fffbe7fc700 (LWP 15372)]
[New Thread 0x7fffbdffb700 (LWP 15373)]
[New Thread 0x7fffbd7fa700 (LWP 15374)]
[New Thread 0x7fffbcff9700 (LWP 15375)]
[New Thread 0x7fff9ffff700 (LWP 15376)]
[New Thread 0x7fff9f7fe700 (LWP 15377)]
[New Thread 0x7fff9effd700 (LWP 15378)]
[New Thread 0x7fff9e7fc700 (LWP 15379)]
[New Thread 0x7fff9dffb700 (LWP 15380)]
[New Thread 0x7fff9d7fa700 (LWP 15381)]
[New Thread 0x7fff9cff9700 (LWP 15382)]
[New Thread 0x7fff7bfff700 (LWP 15383)]
[New Thread 0x7fff7b7fe700 (LWP 15384)]
[New Thread 0x7fff7affd700 (LWP 15385)]
[New Thread 0x7fff7a7fc700 (LWP 15386)]
[New Thread 0x7fff79ffb700 (LWP 15387)]
[New Thread 0x7fff797fa700 (LWP 15396)]
[New Thread 0x7fff78ff9700 (LWP 15415)]
[New Thread 0x7fff4ffff700 (LWP 15416)]
Debug: regenerating tag list
--Type <RET> for more, q to quit, c to continue without paging--c
Thread 1 "sigil" received signal SIGSEGV, Segmentation fault.
0x00007fffe2b48b84 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
That is not the output of bt full
, nor the file created by generate-core-file
, so it doesn't actually say anything useful.
@eli-schwartz I found this issue https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1876219
and if I run sigil with specific flags, it works
MESA_LOADER_DRIVER_OVERRIDE=i965 sigil
0x00007fffe2b48b84 in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
(gdb) bt full
#0 0x00007fffe2b48b84 in () at /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#1 0x00007fffe2d02f7e in () at /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#2 0x00007fffe2b23517 in () at /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#3 0x00007fffe2b24b46 in () at /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4 0x00007fffe1f39b26 in () at /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5 0x00007ffff03ef8d8 in QPlatformBackingStore::composeAndFlush(QWindow*, QRegion const&, QPoint const&, QPlatformTextureList*, bool) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#6 0x00007fffe478f008 in () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#7 0x00007ffff73cfe84 in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#8 0x00007ffff73d1898 in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#9 0x00007ffff73d2c11 in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#10 0x00007ffff73d33da in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007ffff74218dc in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff74222d0 in () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#13 0x00007ffff73c0a66 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#14 0x00007ffff73ca0f0 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#15 0x00007fffefcf893a in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007ffff00e2de6 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#17 0x00007ffff00e3014 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#18 0x00007ffff00bd35b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#19 0x00007fffe479c32e in () at /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#20 0x00007fffebd7c17d in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#21 0x00007fffebd7c400 in () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#22 0x00007fffebd7c4a3 in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#23 0x00007fffefd50565 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#24 0x00007fffefcf74db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#25 0x00007fffefcff246 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#26 0x00005555556be014 in main ()
Thanks all for help, I will investigate what appropriated solutions are for the Ubuntu bug, for the moment I can use sigil library
Thanks for posting the environment variable workaround. Curious what video driver/card you're using? QtWebEngine often doesn't play nice with older drivers/cards or non-proprietary drivers.
Hello I tried to install following the instructions:
After I start it I have this error :
make output: sudo make install