Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old Yesterday, 07:12 AM   #1
JMochaCat
Junior Member
JMochaCat began at the beginning.
 
JMochaCat's Avatar
 
Posts: 4
Karma: 10
Join Date: Mar 2020
Location: Jersey City, NJ
Device: EPUB for Kindle upload; Kindle PaperWhite
Unhappy Crash on 'search all CSS files'

Sigil 2.6.0; up-to-date Win 10 pro. Largeish (8Mb) epub that passes an [F7] check and an epubcheck.

I can search for something in all HTML files, but when I try to search for something in all CSS files, it crashes. No Sigil error message; nothing in the system logs. It doesn't crash when I do that search in an "empty" epub.
JMochaCat is offline   Reply With Quote
Old Yesterday, 08:15 AM   #2
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,581
Karma: 204504074
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
What kind of search mode? Regex? Normal? What are the parameters?

Does it crash when you try the same search with just the "Current" css file instead of All CSS Files?
DiapDealer is offline   Reply With Quote
Advert
Old Yesterday, 08:44 AM   #3
JMochaCat
Junior Member
JMochaCat began at the beginning.
 
JMochaCat's Avatar
 
Posts: 4
Karma: 10
Join Date: Mar 2020
Location: Jersey City, NJ
Device: EPUB for Kindle upload; Kindle PaperWhite
Crashes on a regular search of all CSS files but not on the same search phrase in Regex mode. Doesn't crash on current file or on all HTML files.
JMochaCat is offline   Reply With Quote
Old Yesterday, 09:35 AM   #4
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,779
Karma: 6000000
Join Date: Nov 2009
Device: many
Would you please either:

a) post the epub that causes the crash in just someplace and pm both DiapDealer and KevinH here with the link. Please do not post copyrighted works in this thread.

or

b) run the epub through a plugin that scrambles the text (See the Borkify Plugin in our plugin index) and then it can be attached to a post of yours in this thread.

Then take a screenshot and post it of your exact Find and Replace window that causes the crash.


That way we should be able to completely recreate the crash you are seeing.

Thanks!

Last edited by KevinH; Yesterday at 11:40 AM.
KevinH is offline   Reply With Quote
Old Yesterday, 09:58 AM   #5
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,581
Karma: 204504074
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JMochaCat View Post
Crashes on a regular search of all CSS files but not on the same search phrase in Regex mode. Doesn't crash on current file or on all HTML files.
Just so I understand completely: is the search phrase actually a regular expression or not?
DiapDealer is offline   Reply With Quote
Advert
Old Yesterday, 10:19 AM   #6
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,779
Karma: 6000000
Join Date: Nov 2009
Device: many
I just tried to recreate the crash with the Alice in Wonderland public domain epub that has 3 different css files in it.

I did a Search Mode "Normal", "All CSS Files", and searched for the string "div" and it all worked just fine. No crashes at all and it found every css selector that had the term div in it. Tried again by searching for "div." to test escaping and again it all worked just fine.

So this is something specific to the epub being used or the search term.

What is really strange is that even "Normal" searches are done using regular expressions but the search term is first escaped so the search engine finds only that term as written.

I can not see why or how Normal mode would cause a crash when Regex mode does not unless the escaping of the search term somehow is causing an issue or it has something to do with the epub itself.

So we really need to have that epub and the exact search term to recreate what you are seeing and get it fixed.

Please see my earlier post about the Borkify plugin if needed.

Last edited by KevinH; Yesterday at 12:08 PM.
KevinH is offline   Reply With Quote
Reply

Tags
crashes


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Crash when deleting unknown files in books Dan__ Library Management 1 08-18-2019 09:12 PM
Regex Search doesn't search all files in Edit Book GregTheGrate Editor 8 11-08-2016 12:47 AM
Search and Replace in CSS Files afakler Calibre 0 03-10-2012 04:46 AM
PB360 crash from search mode Zeborah PocketBook 3 05-04-2011 06:18 PM
Troubleshooting Why does my Kindle crash with PDF files? picardo Amazon Kindle 4 08-16-2010 08:23 AM


All times are GMT -4. The time now is 02:13 AM.


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