|
|
#16 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 183
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
|
Anything else I can try to narrow down the problem?
|
|
|
|
|
|
#17 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,919
Karma: 29228280
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Not unless you're willing to hack the source
|
|
|
|
| Advert | |
|
|
|
|
#18 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 183
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
|
I've already unpacked it looking for clues. The first thing I tried was changing my locale from unicode to C, but that does not seem to have helped.
Perhaps you can suggest where I might look and add debugging. |
|
|
|
|
|
#19 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,919
Karma: 29228280
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
In the module calibre/gui2/tools.py and calibre/gui2/main.py is where the relevant code lives
|
|
|
|
|
|
#20 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 183
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
|
I am not yet familiar enough with your code to know where to add debugging, but I think I know what is going on. When I run ebook-convert from the command line, it segfaults right after it finishes. Same as exiting from calibre. This is probably what makes the gui think it failed. If I can get to the bottom of the segfault, I will probably have my solution.
|
|
|
|
| Advert | |
|
|
|
|
#21 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 183
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
|
Just to make things real frustrating, running python through gdb prevents it from segfaulting, so I can't even try to figure out where things are going wrong.
|
|
|
|
|
|
#22 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 183
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
|
OK. Problem solved. It appears that the segfault was a result of how all the scripts were being called. By changing things from calling python-wrapper to calling python directly, the segfaults are gone as are the errors on convert.
|
|
|
|
|
|
#23 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,919
Karma: 29228280
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Interesting, what change was this exactly?
|
|
|
|
|
|
#24 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 183
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
|
Under gentoo /usr/bin/python call's python-wrapper. By changing the first line of the scripts to
#!/usr/bin/python2 it called the version of python needed directly. There seems to be a big with how python-wrapper sets up the environment. The segfault was happening when python was cleaning up. |
|
|
|
|
|
#25 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,919
Karma: 29228280
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Hmm I use gentoo, don't see this behavior. Are you running the binary install of calibre?
|
|
|
|
|
|
#26 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 183
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
|
I'm using the calibre package in portage. I unmasked the latest since the stable one is pretty old. It may be that my install of eselect-python is the problem. I have not dug in further after getting calibre to stop segfaulting. I did find a bug in bugs.gentoo.org about python-wrapper segfaulting, but I have not dug in far enough to find a solution.
|
|
|
|
|
|
#27 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,919
Karma: 29228280
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Weird, oh well as long as it works
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Kindle Conversions | trstill | Calibre | 1 | 09-20-2010 11:07 AM |
| Conversion error: CHM to PDF or "anything else" conversions FAIL. Help. | mm07 | Calibre | 3 | 05-16-2010 10:41 AM |
| ERROR: Error: Error communicating with device | JWood | Calibre | 10 | 04-20-2010 08:28 PM |
| Problems with conversions | unkilbeeg | Calibre | 2 | 08-21-2009 08:06 PM |
| Best format for conversions? | Stitchawl | LRF | 4 | 03-22-2009 08:54 PM |