![]() |
#1 |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
Sigil crashes when loading file from the internet
I crashed Sigil after I tried to load a file from the the internet. 'Twas an accident, I meant to use a local file. I am pretty sure loading a file from an internet address will never work. But, should it cause a crash?
Below is the URL and the resulting error. Thanks. https://www.adfg.alaska.gov/static/f...ort_Fish.1.jpg Error info: https://www.adfg.alaska.gov/static/f...ort_Fish.1.jpg Sigil version: 2.5.2 Runtime Qt: 6.8.2 Compiled Qt: 6.8.2 System: Windows 10 Version 22H2 Architecture: x86_64 |
![]() |
![]() |
![]() |
#2 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,509
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
We hope Sigil would never crash. But we need to know what you mean by "tried to load a file from the internet". Do you mean a remote address was given for an img tag source in the epub's xhtml, or that you tried to add an image to an epub by using an url in the Add File dialog?
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,509
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can't get Sigil 2.5.2 to crash on Windows with an internet url used as the src attribute for an img tag. In fact, the image displays just fine. There doesn't seem to be a way to use an url in the Add File dialog, so I guess I'm at a loss as to what exactly you're doing when Sigil crashes.
I even tried opening the remote url with Sigil's Open dialog (changing the filter from .epub to * all files), and while I get an error, I get no crash. Last edited by DiapDealer; 06-05-2025 at 08:05 AM. |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
What I did was this:
Start Sigil. Place the cursor in between the paragraph tags. Using the mouse, select Insert -> File from the menu. Click on the Other Files button. Paste the URL into the field at the bottom of the Add Existing Files window. After about 5 seconds a popup occurs: Sigil has encountered a problem and may need to close. Click on show details button. Click on close button. Sigil crashes. It's repeatable. Doing add cover in the same fashion also leads to a crash as well. Reading a local file with a path like C:\Users\Mark\Pictures\foo.jpg loads as normal. |
![]() |
![]() |
![]() |
#5 |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
The .wer file associated with the crash says:
Access Violation 0x00001fdd Qt6Core.dll 6.7.3.0 |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,509
Karma: 204127028
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Got it. Thanks for the details. I can recreate it. I doubt this is new to 2.5.2--it's probably been around for a while.
I agree that it shouldn't really be expected to work, but it also shouldn't crash if at all possible. |
![]() |
![]() |
![]() |
#7 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,625
Karma: 5703586
Join Date: Nov 2009
Device: many
|
But Qt 6.7.3 is used by the older Sigil 2.4.2, not the newer 2.5.2. So your .wer crashfile might not be accurate.
I will try the same thing now that we know the exact steps to recreate the crash, but under MacOS and Linux to see if we can get a solid backtrace of the crash. Of course, this just had to be found immediately after a release! ![]() |
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
Please ignore the last reply as I think it was from an unrelated earlier Sigil crash.
|
![]() |
![]() |
![]() |
#9 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,625
Karma: 5703586
Join Date: Nov 2009
Device: many
|
Just how frequently is Sigil crashing on your system? As far as I am concerned, Sigil should never crash, period. If you have experienced crashes with Sigil 2.4.2, please describe each and provide an exact sequence of events to recreate the crash. Actual crashing for any reason is never acceptable.
|
![]() |
![]() |
![]() |
#10 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,625
Karma: 5703586
Join Date: Nov 2009
Device: many
|
And this crash appears to be os specific (native vs non-native file dialogs?). On Mac OS when I try that exact sequence of events and force select the open button I just get a qmessage box that says:
"Sport_Fish.1.jpg" "File not found." "Please verify the correct file name was given." With an Okay button. If you press it all is fine and it brings you back to the non-native file dialog box and gives you a chance to type in or browse to a real file. If I try any kind of url it seems the MacOS non-native qfiledialog also refuses to allow you to select the open button, leaving only cancel. This is when I try the url provided above: Code:
https://www.adfg.alaska.gov/static/fishing/images/sport/galleries/Sport_Fish.1.jpg I will test next under Linux. Last edited by KevinH; 06-05-2025 at 12:30 PM. |
![]() |
![]() |
![]() |
#11 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,625
Karma: 5703586
Join Date: Nov 2009
Device: many
|
And after testing on Linux (Manjaro under KDE plasma desktop), again the non-native QFileDialog is smart enough to handle that case.
It returns a qmessage box with the following error message: The selected URL uses an unsupported scheme. Please use the following scheme: file with an Okay button that when pressed brings you back to the file open dialog so you can try something else. It is interesting, the MacOS version search for that file locally but could not find it since it was a external file via url. The Linux KDE filedialog, recognized that you were trying a url but it only supports local "file:" schemes for urls not external links. So this crashing bug seems to be specific to Windows and most likely to its native filedialog box. There are even Qt bugs that are related to this about how using a QFileDialog from inside a QDialog causes crashes on Windows under certain circumstances. See https://bugreports.qt.io/browse/QTBUG-136333 But they were reported for Qt 6.8.3 not Qt 6.8.2 we use on Windows. But maybe they were never tested. So we could try using a non-native file dialog box here on Windows as this testing of the file happens inside the qfiledialog and can not be screened for in advance by Sigil code. Last edited by KevinH; 06-05-2025 at 10:41 AM. |
![]() |
![]() |
![]() |
#12 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,709
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Maybe the image is not properly encoded, because when I right-click the image and select Copy image and then select Plugins > Edit > PasteImageQt, the image is inserted without problems. However, when I right-click the image and select Copy image link and then select Plugins > Edit > PasteImageQt, the image is added but Sigil displays it as 0x0px image. BTW, I was able to reproduce your error on my Windows 11 machine: Code:
Error info: https://www.adfg.alaska.gov/static/fishing/images/sport/galleries/Sport_Fish.1.jpg Sigil version: 2.5.2 Runtime Qt: 6.8.2 Compiled Qt: 6.8.2 System: Windows 11 Version 22H2 Architecture: x86_64 |
|
![]() |
![]() |
![]() |
#13 | |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
Quote:
|
|
![]() |
![]() |
![]() |
#14 | |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
Quote:
https://dcdn.disk.zipjpg.com/free/34...at,jpg&big.jpg It doesn't point to anything useful and is so very odd that I submitted a random image I pulled off the net. |
|
![]() |
![]() |
![]() |
#15 |
Connoisseur
![]() Posts: 71
Karma: 46
Join Date: Mar 2017
Device: None
|
I do need to report what I think is a harmless error from using the plugin ConvertAbs2RelCSSValues. If this is my CSS:
/* com1 */ /* com2 */ then the plugin replaces the text with: /* com1 */; /* com2 */; Those semi-colons I believe are superfluous, but harmless. Should I send a report to the thread for the plugin? |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
error from Sigil when loading particular epub file | JohnNC | Sigil | 15 | 08-08-2017 04:52 AM |
Sigil crashes when trying to add existing file | holdit | Sigil | 18 | 07-16-2013 06:59 AM |
Sigil Crashes on Win7 v0.6.2 When loading image | lissie | Sigil | 7 | 01-24-2013 05:05 AM |
Sigil file crashes Sony software | Quiss | Sigil | 12 | 08-14-2012 08:04 PM |