Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 02-07-2020, 07:39 PM   #16
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
No it doesn't help. I can't get any debug output out of the destructor OR the close() slot. Either the segfault is happening first (though I can't see any other missing data from Sigil.ini at first glance), or something else is going on.

It doesn't make any sense that I can't get any debug output written to stdout from the close() slot. Because the WriteSettingsVisible(false) IS being correctly written to the ini file from the close() slot. So I can't say for certain whether the destructor is being called or not.
DiapDealer is offline   Reply With Quote
Old 02-07-2020, 07:54 PM   #17
poxi1023
Member
poxi1023 has learned how to buy an e-book online
 
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
Quote:
Originally Posted by KevinH View Post
What happens if you manually close the Find and Replace window after trying some searches before closing Sigil? After the manual close writesetting should tell SettingsStore to update itself. Please check the sigil.ini file before quitting out of Sigil to see if anything is being written.
I checked as you said, but nothing is written. find_strings and replace_strings remains always empty.
poxi1023 is offline   Reply With Quote
Old 02-07-2020, 07:58 PM   #18
poxi1023
Member
poxi1023 has learned how to buy an e-book online
 
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
Quote:
Originally Posted by DiapDealer View Post
No it doesn't help. I can't get any debug output out of the destructor OR the close() slot. Either the segfault is happening first (though I can't see any other missing data from Sigil.ini at first glance), or something else is going on.

It doesn't make any sense that I can't get any debug output written to stdout from the close() slot. Because the WriteSettingsVisible(false) IS being correctly written to the ini file from the close() slot. So I can't say for certain whether the destructor is being called or not.
Now I started Sigil from the CLI. Did some searches, as always nothing written in sigil.ini. I got an output, which I don't understand, but maybe it means something to you guys.
Attached Thumbnails
Click image for larger version

Name:	Sigil find replace 3.png
Views:	130
Size:	130.6 KB
ID:	177003  
poxi1023 is offline   Reply With Quote
Old 02-07-2020, 08:02 PM   #19
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
OK. Very weird. I don't think the segfault is connected.

It's the ToC QDockWidget for whatever reason. If it's visible, the settings won't get written to disk and the destructor never fires. You have to close the ToC dockwidget, close Sigil (still no settings written at this point), and then relaunch Sigil (with the toc dockwidget closed). When next closed, all events fire, all debug output prints to stdout, and the F&R settings all get flushed to disk. All will work normally --- until the Table of Contents dockwidget is made visible again. Then it's lather, rinse, repeat.

Curious to see if poxi1023 can confirm the same behavior.

Last edited by DiapDealer; 02-07-2020 at 08:21 PM.
DiapDealer is offline   Reply With Quote
Old 02-07-2020, 08:06 PM   #20
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,770
Karma: 6000000
Join Date: Nov 2009
Device: many
The last line of your output indicates a segfault is happening for you too.

Quote:
Originally Posted by poxi1023 View Post
Now I started Sigil from the CLI. Did some searches, as always nothing written in sigil.ini. I got an output, which I don't understand, but maybe it means something to you guys.
KevinH is online now   Reply With Quote
Old 02-07-2020, 08:08 PM   #21
poxi1023
Member
poxi1023 has learned how to buy an e-book online
 
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
Quote:
Originally Posted by DiapDealer View Post
OK. Very weird. I don't think the segfault is connected.

It's the ToC QDockWidget for whatever reason. If it's visible, the settings won't get written to disk and the destructor never fires. You have to close the ToC dockwidget, close Sigil (still no settings written at this point), and then relaunch Sigil (with the toc dockwidget closed). When next closed, all events fire, all debug output prints to stdout, and the F&R settings all get flushed to disk. All will work normally --- until the Table of Contents dockwidget is made visible again. Then it's lather, rinse, repeat.

Curious to see ifpoxi1023 can confirm the same behavior.
Yes, that is it! With the ToC window closed, Sigil behaves well.
poxi1023 is offline   Reply With Quote
Old 02-07-2020, 08:09 PM   #22
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by poxi1023 View Post
Now I started Sigil from the CLI. Did some searches, as always nothing written in sigil.ini. I got an output, which I don't understand, but maybe it means something to you guys.
That's platform theme stuff, I think. From the CLI type "unset QT_QPA_PLATFORMTHEME" (without the quotes) before typing "sigil" and see if that output goes away. I always do that when debugging to make sure none of the platform extras are getting in the way. You're only unsetting the variable for that cli session, so there's no worries. Close it, open another terminal, and it will all be back to the way it was.
DiapDealer is offline   Reply With Quote
Old 02-07-2020, 08:09 PM   #23
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,770
Karma: 6000000
Join Date: Nov 2009
Device: many
Perhaps never having the TOC dockwidget open prevents the segfault allowing things to work?
KevinH is online now   Reply With Quote
Old 02-07-2020, 08:11 PM   #24
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by poxi1023 View Post
Yes, that is it! With the ToC window closed, Sigil behaves well.
Thanks for confirming. I still get the segfault in the terminal windows whenever Sigil closes, so I'm assuming you do too?
DiapDealer is offline   Reply With Quote
Old 02-07-2020, 08:20 PM   #25
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by KevinH View Post
Perhaps never having the TOC dockwidget open prevents the segfault allowing things to work?
I won't swear to it just yet, but I think the the segfault is unrelated. I still get the segfault when settings are being properly written.

The gdb backtrace on the segfault shows it to be something in QtWebEngineWidgets. But without debug versions of Qt/QtWebEngine 5.9.5, I'm unlikely to get much more detail than that.
DiapDealer is offline   Reply With Quote
Old 02-07-2020, 08:20 PM   #26
poxi1023
Member
poxi1023 has learned how to buy an e-book online
 
Posts: 21
Karma: 88
Join Date: Mar 2008
Location: Paraguay
Device: Samsung Galaxy Tab S2
Quote:
Originally Posted by DiapDealer View Post
Thanks for confirming. I still get the segfault in the terminal windows whenever Sigil closes, so I'm assuming you do too?
I do too. New searches get remembered, as long as the ToC window remains closed. I have to say that I use that window quite regularly, so I'd prefer some other solution, if possible.
poxi1023 is offline   Reply With Quote
Old 02-07-2020, 08:30 PM   #27
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by poxi1023 View Post
I have to say that I use that window quite regularly, so I'd prefer some other solution, if possible.
We'll do what we can, but it's clear that it's not a problem with later versions of Qt. So it may not be something that's within our control.
DiapDealer is offline   Reply With Quote
Old 02-07-2020, 08:40 PM   #28
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,770
Karma: 6000000
Join Date: Nov 2009
Device: many
FWIW, Qt 5.12.7 has now been released and has a number of bug fixes. Would an official Qt binary stand any chance of working with these Linux distributions?
KevinH is online now   Reply With Quote
Old 02-07-2020, 08:42 PM   #29
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,770
Karma: 6000000
Join Date: Nov 2009
Device: many
BTW, is the TOC dockwidget the only one that has impact? Does closing other dockwidgets help?
KevinH is online now   Reply With Quote
Old 02-07-2020, 08:46 PM   #30
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,577
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
@pazos (earlier in the thread) is building Sigil against Qt 5.14.x on the same version of Ubuntu as poxi1023. I'm assuming he's using a binary version from Qt.
DiapDealer is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Behaviour of history and spaces in find/replace text boxes arspr Editor 0 01-01-2014 05:04 PM
Find Replace unrulyguides Sigil 5 02-17-2012 08:38 PM
Find/Replace Won't Find Rand Brittain Sigil 7 09-24-2011 04:35 AM
Find / replace bremler Sigil 6 12-17-2010 03:26 PM
Using Find/Replace with BD Otter Sony Reader 7 02-28-2009 01:49 PM


All times are GMT -4. The time now is 06:03 PM.


MobileRead.com is a privately owned, operated and funded community.