Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 01-28-2010, 09:04 AM   #1
Egnaled Knarf
Junior Member
Egnaled Knarf began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2010
Device: Phone running whatever
Calibre kills remote NX session...

Now this is a weird one: calibre kills my remote NX sessions...

I'm trying to run calibre on a (headless) server with a few GB of memory as this program is (very) memory-hungry and my poor Thinkpad T23 gets down to its knees just starting it.

Running calibre over a remote-forwarded ssh tunnel (with DISPLAY=localhost:10.0) works but is - as expected - slow.

To counter this slowness in remote X11 sessions I have cobbled up an alternative to straight tunneling using freenx. This alternative establishes a proxy agent on the client (which is the server on which I want to run calibre as I am talking in X11 terms here) which communicates with a proxy server on the X11 server (which runs on the Thinkpad) using the Nomachines protocol.

On the server calibre thinks it is talking to DISPLAY=:1000. All other X11 apps work (including complex ones - rootless gnome panel, VirtualBox, etc) but as soon as I start calibre the NX connection stalls. Usually calibre does not show up at all but I got a white, empty window names 'calibre' once. When the stall happens other remote clients from the same machine stall as well but they do not disappear - the NX agent and proxy are still running. Killing the proxy (on the X11 server machine - the notebook) puts the agent into a waiting mode from which it revives when a new connection attempt is made from the notebook, but only if calibre is killed on the server first. No errors are logged by either nxproxy or nxagent...

Running NX on another port (portnumber is 4000 + displaynumber) does not change this behaviour.

The connection breaks right after calibre complains about an undetected link:

Code:
frank@behemoth:~$ calibre
link  hasn't been detected!
link  hasn't been detected!

(the NX connection stalls... all clients freeze...)
Has anyone else ever tried to run calibre over NX? Has anyone else experienced these stalls (with or without NX)?

Does calibre do something specific (eg. close open files in a user session) which could cause this behaviour? The NX session runs in the normal user session so in principle it can be altered by any other program running under the same UID...
Egnaled Knarf is offline   Reply With Quote
Old 01-28-2010, 11:59 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,775
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Have you tried using xvnc instead? I've found NX to be very unstable
kovidgoyal is online now   Reply With Quote
Advert
Old 01-28-2010, 05:51 PM   #3
Egnaled Knarf
Junior Member
Egnaled Knarf began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2010
Device: Phone running whatever
Quote:
Originally Posted by kovidgoyal View Post
Have you tried using xvnc instead? I've found NX to be very unstable
No, even though that - just like X over ssh - would work. Vnc (or any other remote screen imaging protocol) can not hold a candle against NX...

I have never had problems with NX and use it for all remote access. The only program which does not want to work with it is Calibre... as to whether this is due to a bug in NX or some side-effect of the way Calibre works I don't know yet.

Any other NX users out here?
Egnaled Knarf is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre kills lay-out of my books,help ! Nick_1964 Calibre 14 08-18-2010 04:27 PM
HP kills Slate for now Tamara General Discussions 23 05-09-2010 01:54 AM
Leaving Calibre running kills my desktop manager rogue_ronin Calibre 3 10-24-2009 08:27 PM
So here's the part that kills me kennyc News 27 09-07-2009 10:50 AM
PRS-505 -- What happens on the device after disconnecting from sync session? Taantric Sony Reader 2 08-14-2008 03:12 AM


All times are GMT -4. The time now is 10:53 AM.


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