09-03-2024, 06:41 PM | #31 |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I can't duplicate their experience. No matter how I launch an epub2 with no ncx (and a messed up manifest), Sigil does not close for me on Windows (even though Sigil warns me it might need to close). I can always click the details button, and I always end up with an empty epub.
|
09-03-2024, 07:04 PM | #32 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
That is what I am seeing on macOS as well. Exactly what the code tells it to do.
Strange. |
Advert | |
|
09-03-2024, 07:07 PM | #33 |
Bibliophagist
Posts: 40,647
Karma: 157444382
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Correct. If I launch Sigil and then open the ePub, I can show the details. If I double click on the ePub, Sigil automagically closes after a couple of seconds.
Code:
Error info: Cannot load file C:\Users\dbowe\Desktop\Dummy2.epub: C:/Users/dbowe/AppData/Local/sigil-ebook/sigil/workspace/Sigil-lwIDsE/OEBPS/toc.ncx: The system cannot find the file specified. Sigil version: 2.3.1 Runtime Qt: 6.7.2 Compiled Qt: 6.7.2 System: Windows 11 Version 23H2 Architecture: x86_64 |
09-03-2024, 07:09 PM | #34 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
That is very strange indeed. I will study the code to see if I can figure out why this might be happening. |
|
09-03-2024, 07:22 PM | #35 |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
I downloaded @DNSB's dummy2.epub just to be sure everything was apples to apples, and I still can't get Sigil to close by double-clicking the epub (or using File->Open from a running Sigil).
Same experience on Linux built from HEAD Last edited by DiapDealer; 09-03-2024 at 07:25 PM. |
Advert | |
|
09-03-2024, 07:34 PM | #36 | |
Resident Curmudgeon
Posts: 76,529
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
I took out the references to the NCX from the OPF and Sigil 2.3.0 crashes regardless if clean on open is set to yes or not. It looks like the ePub loads and then without doing anything, it vanishes. Last edited by JSWolf; 09-03-2024 at 07:45 PM. |
|
09-03-2024, 07:43 PM | #37 |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Yes, yes. Commercial epubs can suck. Let's please stick to the crash issue now that we're onto something.
|
09-03-2024, 07:48 PM | #38 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Okay, I have a hypothesis about what might be causing this and it think the problem is on first start up, you are seeing a std::exception which is caught and handled in the very last couple of lines of main.cpp and not in the LoadFile routine. So I have adding handling that type of exception as well.
So on Windows, if you build your own and can grab the very very latest Sigil/src//MainUI/MainWindow.cpp from master and use it in your rebuild please do. Then test the Dummy2.epub testcase by doubleclicking to launch it, and report back what you see. I have my fingers crossed this now works as designed. Thanks, KevinH |
09-03-2024, 07:50 PM | #39 |
Guru
Posts: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
Debug with changed MainWindow.cpp
My changes to multiple debug: Spoiler:
Debug file: Spoiler:
As you can see Debug “34” is never called. |
09-03-2024, 07:55 PM | #40 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Yes line 34 never getting reached means that some other exception was thrown that is not being caught in this routine.
So, please try with what I just pushed to master to MainWindow.cpp. I think some Windows machines are throwing std::exception and not a std:runtime_error exception when attempting to load a missing file at the path listed in the manifest. So this could be a cpp runtime library difference in Windows. I added catching that exception to the LoadFile routine. Hopefully that fixes the issue. Last edited by KevinH; 09-03-2024 at 09:15 PM. |
09-03-2024, 07:56 PM | #41 |
Resident Curmudgeon
Posts: 76,529
Karma: 136565488
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Here's a scrambled ePub that causes the crash. It has an NCX but with no references to it in the OPF.
|
09-03-2024, 07:57 PM | #42 |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
DiapDealer could your installer bundling vs not bundling iss runtime changes be the reason you are not seeing this issue but others are?
|
09-03-2024, 07:59 PM | #43 | |
Sigil Developer
Posts: 8,160
Karma: 5450818
Join Date: Nov 2009
Device: many
|
Quote:
We already have a nice Dummy2.epub that shows the issue for some Windows users. They are testing with current builds from today's source not official 2.3.0 versions. |
|
09-03-2024, 08:04 PM | #44 | |
Grand Sorcerer
Posts: 28,045
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Quote:
It's more likely because I'm building/running Sigil in a virtual Windows environment. I don't have access to physical Windows machine at the moment. David's also running Windows 11, while I'm still running Windows 10. Last edited by DiapDealer; 09-03-2024 at 08:08 PM. |
|
09-03-2024, 08:10 PM | #45 |
Guru
Posts: 783
Karma: 2298438
Join Date: Jan 2017
Location: Poland
Device: Various
|
I built a Sigil and can't see the difference
I need to go to bed, it's already 1am at my place. If I notice any new commits in the morning I will build Sigil again. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Updated CC (3.5.6) crashes upon opening | SuzDavid | Calibre Companion | 16 | 11-22-2014 11:18 AM |
Opening EPUBs in Sigil takes ages [Windows] | Wasserpulle | Sigil | 4 | 12-13-2013 02:05 PM |
SIGIL Crashes When Opening Files on MacBook Pro | WilliamGarner | Sigil | 2 | 10-09-2013 10:07 AM |
Epub crashes on Sigil for Mac, OK on Sigil for PC | crystamichelle | Sigil | 6 | 08-14-2013 03:52 PM |
4.129 crashes upon opening | da_jane | Calibre | 7 | 01-19-2009 03:25 AM |