View Single Post
Old 10-05-2018, 08:44 PM   #9
Banjo
Enthusiast
Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!Banjo , Klaatu Barada Niktu!
 
Banjo's Avatar
 
Posts: 36
Karma: 5276
Join Date: Feb 2013
Device: Asus Zen Pad
Sorry to wake up such an old thread, but I am seeing this on my Mageia 6 system. Let me know if this should be in a new thread.

The problem is that Sigil crashes when I attempt to reorder the chapter files. After moving the file, the tree in the Book Browser is weird. if I right click on the empty space, Sigil crashes.

I have attached screenshots of the GUI to show what the Book Browser looks like before I moved Chapter 2 up above the index and after I moved it. I have also attached a very small epub book that I use to cause the crash. I simply move Chapter 2 from below the Index to above it.

After attempting to move the Chapter 2 file, Sigil crashes when I right click on the blank space to open a context menu. This happens on the 0.9.8 version installed from the Mageia repos. It also happens on a 0.9.10 version that I built from source.

Here is the system information for the Mageia 6 computer

Code:
System:    Host: mageia6 Kernel: 4.14.70-desktop-2.mga6 x86_64 (64 bit) Desktop: KDE Plasma 5.12.2                        
Distro: Mageia 6 mga6
Qt 5.9.4
Interesting enough, this problem does not show up on my Mint system with Sigil version 0.9.5

Code:
System:    Host: LinuxMain Kernel: 4.4.0-137-generic x86_64 (64 bit) Desktop: KDE Plasma 5.8.9
Distro: Linux Mint 18.1 Serena
Qt 5.6.1
It could be a difference in Plasma 5, a difference in Qt, or a difference in Sigil version. I don't know.

Not being able to reorder the chapters is kind of a serious flaw. I can change the order by unzipping the epub file and editing the content.opf file, but that is a pain.

Trying to trouble shoot this, I ran my 0.9.10 version in gdb and did a backtrace after it crashed. I don't know if this is of any help, but here is the top of the stack at the crash. No debug info compiled in, so it is probably of marginal use.

Code:
(gdb) bt
#0  0x0000000000767110 in OPFModel::GetResourceType(QStandardItem const*) ()
#1  0x000000000075fc5b in BookBrowser::SuccessfullySetupContextMenu(QPoint const&) ()
#2  0x00000000007603f1 in BookBrowser::OpenContextMenu(QPoint const&) ()
#3  0x000000000077d2b5 in BookBrowser::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
#4  0x00007ffff346e939 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib64/qt5/../libQt5Core.so.5
#5  0x00007ffff6bc2115 in QWidget::customContextMenuRequested(QPoint const&) () at /usr/lib64/qt5/../libQt5Widgets.so.5
#6  0x00007ffff6bdb70d in QWidget::event(QEvent*) () at /usr/lib64/qt5/../libQt5Widgets.so.5
#7  0x00007ffff6c7eb2e in QFrame::event(QEvent*) () at /usr/lib64/qt5/../libQt5Widgets.so.5
#8  0x00007ffff6dda09c in QAbstractItemView::viewportEvent(QEvent*) () at /usr/lib64/qt5/../libQt5Widgets.so.5
#9  0x00007ffff6e3ed9c in QTreeView::viewportEvent(QEvent*) () at /usr/lib64/qt5/../libQt5Widgets.so.5
#10 0x00007ffff3443a02 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) ()
    at /usr/lib64/qt5/../libQt5Core.so.5
#11 0x00007ffff6b9e4f5 in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
    at /usr/lib64/qt5/../libQt5Widgets.so.5
#12 0x00007ffff6ba71c2 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/qt5/../libQt5Widgets.so.5
#13 0x00007ffff3443c68 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/qt5/../libQt5Core.so.5
#14 0x00007ffff6bf41ed in QWidgetWindow::handleMouseEvent(QMouseEvent*) () at /usr/lib64/qt5/../libQt5Widgets.so.5
#15 0x00007ffff6bf69db in QWidgetWindow::event(QEvent*) () at /usr/lib64/qt5/../libQt5Widgets.so.5
#16 0x00007ffff6b9e51c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
    at /usr/lib64/qt5/../libQt5Widgets.so.5
#17 0x00007ffff6ba59c7 in QApplication::notify(QObject*, QEvent*) () at /usr/lib64/qt5/../libQt5Widgets.so.5
#18 0x00007ffff3443c68 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib64/qt5/../libQt5Core.so.5
#19 0x00007ffff3807b5b in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
    at /usr/lib64/qt5/../libQt5Gui.so.5
#20 0x00007ffff3809945 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () at /usr/lib64/qt5/../libQt5Gui.so.5
#21 0x00007ffff37e4e7b in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib64/qt5/../libQt5Gui.so.5
#22 0x00007fffe60e5a10 in userEventSourceDispatch(_GSource*, int (*)(void*), void*) ()
    at /usr/lib64/qt5/../libQt5XcbQpa.so.5
#23 0x00007fffedbc8b32 in g_main_context_dispatch () at /usr/lib64/qt5/../libglib-2.0.so.0
#24 0x00007fffedbc8e88 in g_main_context_iterate.isra () at /usr/lib64/qt5/../libglib-2.0.so.0
#25 0x00007fffedbc8f2c in g_main_context_iteration () at /usr/lib64/qt5/../libglib-2.0.so.0
#26 0x00007ffff3496776 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
    at /usr/lib64/qt5/../libQt5Core.so.5
#27 0x00007ffff3441e0a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib64/qt5/../libQt5Core.so.5
Banjo
(_)=='=~
Attached Thumbnails
Click image for larger version

Name:	crash001.png
Views:	25
Size:	102.4 KB
ID:	166733   Click image for larger version

Name:	crash003.png
Views:	26
Size:	103.8 KB
ID:	166734  
Attached Files
File Type: epub test-to-crash-sigil.epub (4.0 KB, 17 views)
Banjo is offline   Reply With Quote