![]() |
#16 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
|
![]() |
![]() |
![]() |
#17 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,483
Karma: 5703586
Join Date: Nov 2009
Device: many
|
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,358
Karma: 203720150
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
![]() Actually ... it might not be a bad idea to include (or make a available) a special launch script with sigil attached to gdb with all the environment stuff set, IF ... bugs on linux started showing up in droves. Of course, I've usually found that those who know their way around gdb won't have trouble getting things launched anyway (and for those that don't know their way around gdb ... well they're going to struggle regardless). |
|
![]() |
![]() |
![]() |
#19 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2015
Device: sony
|
workaround to crashes
Hello, I had the same issue. I just "SAVE AS.." every time I do a change.... it's something strange.
Anybody's help!!!!, please JuanJo Quote:
|
|
![]() |
![]() |
![]() |
#20 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2015
Device: sony
|
Quote:
Thanks anyway to you too. hahaha JuanJo |
|
![]() |
![]() |
Advert | |
|
![]() |
#21 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,483
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi aJuanJo,
Actually providing some information in your crash report would help. 1. What OS? What AV software are you using? 2. Have you tried temporarily disabling your anti-virus programs? 3. Have your tried deleting the older version's setting files? 4. Have you checked to see if you have bad or broken openssl dlls in your path? Look for copies of libeay32.dll and ssleay32.dll that have been installed in the path. If these exist, you should probably replace them with known good versions by downloading OpenSSL 1.0.1l version and putting the 2 files libeay32.dll and ssleay32.dll into the same folder as sigil.exe. 5. Have you tried updating your graphics driver to the latest version from Microsoft? Bad graphics drivers cause many many crashing problems on Windows. There have been numerous Qt5 issues with outdated ati graphics drivers. KevinH Last edited by KevinH; 04-03-2015 at 02:58 PM. |
![]() |
![]() |
![]() |
#22 |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Feb 2015
Device: Sony PRS-T1
|
Good news, i can reproduce
Double-click on second last site, the site must see on Book View. Then right-click on last site and merge or Ctrl+M (1-3×). When click on the outsite last site = crash. Here the gdb output: Code:
Program received signal SIGSEGV, Segmentation fault. 0x00007ffff3bb1880 in QArrayData::shared_null () from /usr/local/share/sigil/libQt5Core.so.5 (gdb) (gdb) bt #0 0x00007ffff3bb1880 in QArrayData::shared_null () from /usr/local/share/sigil/libQt5Core.so.5 #1 0x000000000061400e in TabManager::CreateTabForResource(Resource&, int, int, QString const&, MainWindow::ViewState, QUrl const&, bool) () #2 0x000000000061471a in TabManager::OpenResource(Resource&, int, int, QString const&, MainWindow::ViewState, QUrl const&, bool) () #3 0x00000000008659ed in MainWindow::OpenResource(Resource&, int, int, QString const&, MainWindow::ViewState, QUrl const&, bool) () #4 0x00000000008df600 in ?? () #5 0x00007ffff379ae7a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/local/share/sigil/libQt5Core.so.5 #6 0x00000000008cd575 in BookBrowser::ResourceActivated(Resource&) () #7 0x00000000008a7c74 in BookBrowser::EmitResourceActivated(QModelIndex const&) () #8 0x00000000008dadfe in ?? () #9 0x00007ffff379ae7a in QMetaObject::activate(QObject*, int, int, void**) () from /usr/local/share/sigil/libQt5Core.so.5 #10 0x00007ffff79108a5 in QAbstractItemView::activated(QModelIndex const&) () from /usr/local/share/sigil/libQt5Widgets.so.5 #11 0x00007ffff795e455 in QTreeView::mouseDoubleClickEvent(QMouseEvent*) () from /usr/local/share/sigil/libQt5Widgets.so.5 #12 0x00007ffff76ee256 in QWidget::event(QEvent*) () from /usr/local/share/sigil/libQt5Widgets.so.5 I hope this help. Last edited by Camelot; 04-03-2015 at 10:46 AM. |
![]() |
![]() |
![]() |
#23 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,483
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi Camelot,
Excellent work! I can reproduce it even on Sigil master with Mac OS X but to do it I must quickly hit Command-M multiple times in a row and be in BookView. If I use the menus, I never seem to hit it. None of this code has been touched in quite a while so this bug has probably existed in all previous versions of Sigil as far as I can tell. I will try and figure out what is causing the problem and get it fixed. Thanks! Kevin Last edited by KevinH; 04-03-2015 at 11:32 AM. |
![]() |
![]() |
![]() |
#24 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,483
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi Camelot,
Well I found the problem. By doing the merges so fast, you can end up with stale data in the BookBrowser (the widget you posted a graphic of) and stale data in the FolderKeeper m_Resources hash (the universal list of all resources available). Randomly a Qt garbage collection thread deletes the resource but the signal that tells the FolderKeeper to update itself (remove the resource from its m_Resources hash) has not reached it yet. The second merge then hits this stale info (or some other action that wants the list of all available html resources). The following patch fixes this on my Sigil master and should work exactly the same (but with a large offset in line) in Sigil 0.8.5 source as well when applied at the end of the MergeResources routine in Book.cpp. The recent fix for closing Tabs when deletes are done may have exacerbated this by disconnecting the signal from the underlying resource when closing the tab but given the resource was deleted it should not have mattered. For BookManipulation/Book.cpp Code:
@@ -903,6 +903,9 @@ Resource *Book::MergeResources(QList<Resource *> resources) sink_html_resource.SetText(new_source); // Now safe to do the delete foreach(Resource * source_resource, resources) { + // Need to alert FolderKeeper that these are going away to properly update its + // m_Resources hash to prevent stale values from deleted resources hanging around + m_Mainfolder.RemoveResource(*source_resource); source_resource->Delete(); } } |
![]() |
![]() |
![]() |
#25 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,483
Karma: 5703586
Join Date: Nov 2009
Device: many
|
I have applied the patch to the Sigil 0.8.5 source code and rebuilt. This seems to completely fix the problem. We will probably wait a week or two in case any of these other crashes can be replicated and fixed and then release a Sigil 0.8.6 with this bug (and any others we can track down) fixed.
Thanks for reporting the bug so completely with steps to reproduce, a test epub, and even a backtrace! Nicely done. KevinH |
![]() |
![]() |
![]() |
#26 |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2015
Device: sony
|
Just unninstalled non-official sigil 0.8.5 and installed official one, and now it runs OK but I reproduced the crash, here to images...
..... sorry cannot place images here... hmmm well, you just said you've found the solution... thanks JuanJo |
![]() |
![]() |
![]() |
#27 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,483
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Hi aJuanJo,
No that crash only happens on merges of html files. If you are loading or deleting images or html files and it crashes you probably have an outdated graphics driver. Please see the full list of questions I asked you earlier in this post if you want any support. KevinH Last edited by KevinH; 04-03-2015 at 05:24 PM. |
![]() |
![]() |
![]() |
#28 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,631
Karma: 29710510
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@aJuanJo - see ==>> Attachments and Images
There are links to FAQ and Guidelines sections at bottom of all MR pages - lots of useful stuff in them. BR |
![]() |
![]() |
![]() |
#29 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2015
Device: sony
|
Quote:
JuanJo |
|
![]() |
![]() |
![]() |
#30 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Apr 2015
Device: sony
|
Quote:
So now I use the official version in the notebook.. and it acts the same.. Now the images.. You can see in image01 that section0007 has been deleted but it still shows in the left but no appropiatelly. The second image shows the windows error message There's one thing I'm not sure, in my windows uninstaller I have more than six or seven Microsoft Visual C++ versions, I suppose installed by previous versions of Sigil, but only one "vcredist86.exe" file which has the time stamp from later Sigil installation. I wonder if that could be a reason for crashes.... greatings JuanJo |
|
![]() |
![]() |
![]() |
Tags |
0.8.5, 64-bit, crash |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Sigil 0.7.4 crashes | jiarevalo | Sigil | 3 | 12-06-2013 06:44 AM |
Epub crashes on Sigil for Mac, OK on Sigil for PC | crystamichelle | Sigil | 6 | 08-14-2013 02:52 PM |
sigil crashes? | bobcdy | Sigil | 7 | 03-05-2011 05:36 AM |
Random noise and crashes/lockups while in sleep | mtntrx | Nook Developer's Corner | 0 | 02-05-2011 06:55 PM |
Seemingly random crashes upon transfer to PRS-505 | TMF | Calibre | 2 | 06-16-2009 01:10 PM |