Welcome, Guest. Please Login.
OpenDX User Forum
05/19/13 at 02:25:25
News: OpenDX 4.4.4 source code now available.


Pages: 1
dxexec survives quit and disconnect (Read 12536 times)
balden
Junior Member
**


Got Viz?

Posts: 24
dxexec survives quit and disconnect
04/08/07 at 07:26:43
 
Hello all,
I'm using DX 4.4.4 under OpenSuSE 10.2 (installed from the standard RPM package provided with the distro: "dx-4.4.4-20"). I'm pretty sure it was working fine until recently, but now I noticed that I always end up with a stalled "dxexec" process whenever I quit (and also when I use "disconnect from server"). This can't go unnoticed because the process continuously eats 100% CPU and slows down everything else on the machine (and I must kill it by hand from a terminal window).
I did not find any special error or warning messages, either in the message window or in the console. I have looked around on the web and the forums but didn't find any similar problem anywhere. Has anybody already had this behaviour? Any idea about what could be causing it?
Thanks in advance,
-Pierre.
Back to top
 
 
  IP Logged
kodanda
Forum Newbie
*


Got Viz?

Posts: 3
Re: dxexec survives quit and disconnect
Reply #1 - 02/11/08 at 16:56:54
 
Hi,
 
I am also suffering with the same problem but on opensuse 10.3. I too installed it from the YAST. Every time I have to kill it manually. Any help is appreciated.
 
kodanda
Back to top
 
 
  IP Logged
joelr
OpenDX Forum Administrator
*****


Got Viz?

Posts: 388
Re: dxexec survives quit and disconnect
Reply #2 - 02/12/08 at 05:39:22
 
This also happens to me, but not all the time.  
 
OpenDX 4.4.4, MacOS 10.4.11
 
Joel
Back to top
 
 
Email   IP Logged
GNE
Junior Member
**


Got Viz?

Posts: 29
Re: dxexec survives quit and disconnect
Reply #3 - 02/20/08 at 09:05:25
 
I recently started to use OpenDX 4.4.4 under OpenSUSE 10.3 (X86_64) and I have the very same problem:
after quitting dx a dxexec process is running at 100 % CPU. I'm using the dx package provided by the distro. I didn't have this problem under SuSE 10.1 using OpenDX 4.4.4, but I used my own package there. I have to check whether this problem also exists under a 32-bit version of OpenSUSE.
 
Gottfried
Back to top
 
 
  IP Logged
GNE
Junior Member
**


Got Viz?

Posts: 29
Re: dxexec survives quit and disconnect
Reply #4 - 02/26/08 at 03:09:33
 
Same problem under the 32-bit version of OpenSUSE 10.3. But I found some kind of a workaround: If the server is reset before quit, the program exits cleanly: no dxexec process is left running wild.
 
Gottfried
Back to top
 
 
  IP Logged
kccheng
Forum Newbie
*


Got Viz?

Posts: 2
Re: dxexec survives quit and disconnect
Reply #5 - 04/03/08 at 03:18:21
 
I had the same problem on OpenSuSE 10.3 (32bits).
I use dx-4.4.4 binary from OpenSuSE repository.   And I also compile
from source code directly ... both got the same problem.
 
KC
Back to top
 
 
WWW   IP Logged
pauljoseph
Forum Newbie
*


Got Viz?

Posts: 13
Re: dxexec survives quit and disconnect
Reply #6 - 04/28/08 at 22:36:25
 
I have the same problem.
I use dx 4.4.0 from Kubuntu 8.04 repository.
Back to top
 
 
  IP Logged
pauljoseph
Forum Newbie
*


Got Viz?

Posts: 13
Re: dxexec survives quit and disconnect
Reply #7 - 04/29/08 at 00:57:07
 
Quote from GNE on 02/26/08 at 03:09:33:
But I found some kind of a workaround: If the server is reset before quit, the program exits cleanly: no dxexec process is left running wild.

 
Just to add, I found this workaround true as well for my case.
Back to top
 
 
  IP Logged
GNE
Junior Member
**


Got Viz?

Posts: 29
Re: dxexec survives quit and disconnect
Reply #8 - 05/07/08 at 01:18:30
 
I think I've found the reason for this problem. I also think, it can be fixed easily:
In lex.c, errno is not (re)set to zero. If errno is initialized to zero at the beginning of the loop, the problem goes away.
 
I would like to attach the patch to this post, but I'm not allowed to. But here it is:
Code:
--- ./src/exec/dpexec/lex.c~    2006-01-09 23:57:34.000000000 +0100
+++ ./src/exec/dpexec/lex.c     2008-05-07 09:14:47.000000000 +0200
@@ -504,6 +504,7 @@
     for (;;)
     {
        yyleng = 0;
+        errno = 0;

        c = input();
 


Disclaimer: I really don't know, what I'm doing here. If this change works for you, good. If it doesn't, I can't help you.
 
Gottfried
Back to top
 
 
  IP Logged
pauljoseph
Forum Newbie
*


Got Viz?

Posts: 13
Re: dxexec survives quit and disconnect
Reply #9 - 05/07/08 at 01:37:07
 
Has anyone tested the solution by GNE? Will this be filed as a bug and included in the future release?
Back to top
 
 
  IP Logged
balden
Junior Member
**


Got Viz?

Posts: 24
Re: dxexec survives quit and disconnect
Reply #10 - 05/19/08 at 15:12:34
 
I've just tried GNE's fix.
So far, it looks like the problem went away indeed!
 
Thanks a lot GNE. That stalled dxexec was a real pain.
And long live OpenDX!!
Back to top
 
 
  IP Logged
lobu
Forum Newbie
*


Got Viz?

Posts: 5
Re: dxexec survives quit and disconnect
Reply #11 - 04/18/12 at 07:30:54
 
I apt-get several header stuff (libx11-dev, lesstif2-dev, etc), patched the known fileio.c bad line, and then recompile the 4.4.4 source just to remove this bug. Thank you very much GNE, your magic line works like *charm*. Now it knows how to exit.
 
Now I can do scripting with dx again, which is the best visualizer ever build for mankind  Grin
 
Really want to see dx5 wholeheartedly  Grin
Back to top
 
 
  IP Logged
Pages: 1