Re: 1.1.6fix3 pictures no longer display ( eps ghostscript preview )

2001-11-21 Thread Kornel Benko

On Wednesday, 7. November 2001 15:08, you wrote:
 On Mon, 24 Sep 2001 07:25:08 -0700 john wrote:
  well as someone said that doesn't work for everyone.
 
  If I could reproduce the problem I could debug it :(
 
  john

 Sorry if this is a bit outdated, but this bug still seems to exist.

 In figinset.C there seems to be a problem with execlp if one uses
 ghostscript 6.51 +

 The gs process starts but never exits. Why I don't know. One can go
 into /proc and see the commandline arguments, but this doesn't explain
 where it hangs. If you're curious I could try to strace gs. But for now
 I'll just report the workaround.

Confirmed. On my system the backtrace of gs looks like:
...
(gdb) symbol-file /usr/bin/gs_x11
Reading symbols from /usr/bin/gs_x11...(no debugging symbols found)...done.
(gdb) attach 6343
Attaching to process 6343
0x4035a47e in ?? ()
(gdb) bt
#0  0x4035a47e in ?? ()
#1  0x400e61da in ?? ()
#2  0x400e5fa6 in ?? ()
#3  0x400d8482 in ?? ()
#4  0x080fb8d3 in gdev_x_send_event ()
#5  0x081bc43a in gs_output_page ()
#6  0x080d240b in zflushpage ()
#7  0x080b962d in gs_errorinfo_put_string ()
#8  0x080b7aa1 in gs_interpret ()
#9  0x080b7990 in gs_interpret ()
#10 0x080b183a in gs_main_run_string_end ()
#11 0x080b1730 in gs_main_run_string_with_length ()
#12 0x080b16d1 in gs_main_run_string ()
#13 0x080b33d5 in gs_main_run_start ()
#14 0x080b3354 in gs_main_run_start ()
#15 0x080b3128 in gs_main_run_start ()
#16 0x080b2270 in gs_main_init_with_args ()
#17 0x0806ead1 in main ()
#18 0x402a57ee in ?? ()

 If using ghostscript 5.50 it always works fine.

Here too, but other programs like kghostview not working anymore.

 On my system lyx 1.1.6-fix3 works with Ghostscript 6.51 when setting
 \ps_command to /usr/bin/gs 
 in lyxrc.defaults or equivalent

No help here with this configuration.

 It's the first argument to execlp which must end with a space (works
 also when setting the first string to  )

Playing with execlp() didn't help me.
Seem to be the standard for SuSE 7.3 update, at least all of my colleagues 
have the same effect.

Kornel
-- 
Kornel Benko
[EMAIL PROTECTED]



Re: 1.1.6fix3 pictures no longer display ( eps ghostscript preview )

2001-11-21 Thread Morten S. Nielsen

On 21-11-2001 at 13:45, Kornel Benko wrote:
 
  On my system lyx 1.1.6-fix3 works with Ghostscript 6.51 when setting
  \ps_command to /usr/bin/gs 
  in lyxrc.defaults or equivalent
 
 No help here with this configuration.
 

The execvp +   also seemed to bet ustable on my system, so I guess the 
workaround is to have a separate gs5.50 installation and then setting the gs
interpreter for lyx to be gs5.50. 

Morten

-- 
- The Penguin's  1. We are better together than alone
- Postulate  2. If you push something hard enough it will fall over
- Morten S. Nielsen  Dept. of Manuf. Engineering and Management
- mailto:[EMAIL PROTECTED]  Building 425, 2. floor, DK-2800 Lyngby



Re: 1.1.6fix3 pictures no longer display ( eps ghostscript preview )

2001-11-21 Thread Kornel Benko

On Wednesday, 7. November 2001 15:08, you wrote:
> On Mon, 24 Sep 2001 07:25:08 -0700 john wrote:
> > well as someone said that doesn't work for everyone.
> >
> > If I could reproduce the problem I could debug it :(
> >
> > john
>
> Sorry if this is a bit outdated, but this bug still seems to exist.
>
> In figinset.C there seems to be a problem with execlp if one uses
> ghostscript 6.51 +
>
> The gs process starts but never exits. Why I don't know. One can go
> into /proc and see the commandline arguments, but this doesn't explain
> where it hangs. If you're curious I could try to strace gs. But for now
> I'll just report the workaround.
>
Confirmed. On my system the backtrace of gs looks like:
...
(gdb) symbol-file /usr/bin/gs_x11
Reading symbols from /usr/bin/gs_x11...(no debugging symbols found)...done.
(gdb) attach 6343
Attaching to process 6343
0x4035a47e in ?? ()
(gdb) bt
#0  0x4035a47e in ?? ()
#1  0x400e61da in ?? ()
#2  0x400e5fa6 in ?? ()
#3  0x400d8482 in ?? ()
#4  0x080fb8d3 in gdev_x_send_event ()
#5  0x081bc43a in gs_output_page ()
#6  0x080d240b in zflushpage ()
#7  0x080b962d in gs_errorinfo_put_string ()
#8  0x080b7aa1 in gs_interpret ()
#9  0x080b7990 in gs_interpret ()
#10 0x080b183a in gs_main_run_string_end ()
#11 0x080b1730 in gs_main_run_string_with_length ()
#12 0x080b16d1 in gs_main_run_string ()
#13 0x080b33d5 in gs_main_run_start ()
#14 0x080b3354 in gs_main_run_start ()
#15 0x080b3128 in gs_main_run_start ()
#16 0x080b2270 in gs_main_init_with_args ()
#17 0x0806ead1 in main ()
#18 0x402a57ee in ?? ()

> If using ghostscript 5.50 it always works fine.

Here too, but other programs like kghostview not working anymore.

> On my system lyx 1.1.6-fix3 works with Ghostscript 6.51 when setting
> \ps_command to "/usr/bin/gs "
> in lyxrc.defaults or equivalent

No help here with this configuration.

> It's the first argument to execlp which must end with a space (works
> also when setting the first string to " ")

Playing with execlp() didn't help me.
Seem to be the standard for SuSE 7.3 update, at least all of my colleagues 
have the same effect.

Kornel
-- 
Kornel Benko
[EMAIL PROTECTED]



Re: 1.1.6fix3 pictures no longer display ( eps ghostscript preview )

2001-11-21 Thread Morten S. Nielsen

On 21-11-2001 at 13:45, Kornel Benko wrote:
> 
> > On my system lyx 1.1.6-fix3 works with Ghostscript 6.51 when setting
> > \ps_command to "/usr/bin/gs "
> > in lyxrc.defaults or equivalent
> 
> No help here with this configuration.
> 

The execvp + " " also seemed to bet ustable on my system, so I guess the 
workaround is to have a separate gs5.50 installation and then setting the gs
interpreter for lyx to be gs5.50. 

Morten

-- 
- The Penguin's  1. We are better together than alone
- Postulate  2. If you push something hard enough it will fall over
- Morten S. Nielsen  Dept. of Manuf. Engineering and Management
- mailto:[EMAIL PROTECTED]  Building 425, 2. floor, DK-2800 Lyngby



Re: 1.1.6fix3 pictures no longer display ( eps ghostscript preview )

2001-11-07 Thread John Levon

On Wed, Nov 07, 2001 at 03:08:27PM +0100, Morten S. Nielsen wrote:

 Sorry if this is a bit outdated, but this bug still seems to exist.
 
 In figinset.C there seems to be a problem with execlp if one uses 
 ghostscript 6.51 + 
 
 The gs process starts but never exits. Why I don't know. One can go 
 into /proc and see the commandline arguments, but this doesn't explain
 where it hangs. If you're curious I could try to strace gs. But for now
 I'll just report the workaround.

This is what happens when you are using a menu in lyx when rendering is finished
by the ghostscript child. It is an xforms bug we can do nothing about.

 If using ghostscript 5.50 it always works fine. 
 
 On my system lyx 1.1.6-fix3 works with Ghostscript 6.51 when setting  
 \ps_command to /usr/bin/gs 
 in lyxrc.defaults or equivalent
 
 It's the first argument to execlp which must end with a space (works
 also when setting the first string to  ) 

This is /thoroughly/ bizarre. There is no binary named /usr/bin/gs  so
I am amazed it works at all. Are you sure about this ?

thanks
john

-- 
This bulletin discusses three security vulnerabilities that are unrelated
except in the sense that both affect ISA Server 2000
- Microsoft Product Security



Re: 1.1.6fix3 pictures no longer display ( eps ghostscript preview )

2001-11-07 Thread Morten S. Nielsen


On Mon, 24 Sep 2001 07:25:08 -0700 john wrote:

 well as someone said that doesn't work for everyone.

 If I could reproduce the problem I could debug it :(

 john

Sorry if this is a bit outdated, but this bug still seems to exist.

In figinset.C there seems to be a problem with execlp if one uses 
ghostscript 6.51 + 

The gs process starts but never exits. Why I don't know. One can go 
into /proc and see the commandline arguments, but this doesn't explain
where it hangs. If you're curious I could try to strace gs. But for now
I'll just report the workaround.

If using ghostscript 5.50 it always works fine. 

On my system lyx 1.1.6-fix3 works with Ghostscript 6.51 when setting  
\ps_command to /usr/bin/gs 
in lyxrc.defaults or equivalent

It's the first argument to execlp which must end with a space (works
also when setting the first string to  ) 

Morten

Ps: the xhost trick didn't do it for me and I'm not on the lyx list.

-- 
- The Penguin's  1. We are better together than alone
- Postulate  2. If you push something hard enough it will fall over
- Morten S. Nielsen  Dept. of Manuf. Engineering and Management
- mailto:[EMAIL PROTECTED]  Building 425, 2. floor, DK-2800 Lyngby



Re: 1.1.6fix3 pictures no longer display ( eps ghostscript preview )

2001-11-07 Thread John Levon

On Wed, Nov 07, 2001 at 03:08:27PM +0100, Morten S. Nielsen wrote:

> Sorry if this is a bit outdated, but this bug still seems to exist.
> 
> In figinset.C there seems to be a problem with execlp if one uses 
> ghostscript 6.51 + 
> 
> The gs process starts but never exits. Why I don't know. One can go 
> into /proc and see the commandline arguments, but this doesn't explain
> where it hangs. If you're curious I could try to strace gs. But for now
> I'll just report the workaround.

This is what happens when you are using a menu in lyx when rendering is finished
by the ghostscript child. It is an xforms bug we can do nothing about.

> If using ghostscript 5.50 it always works fine. 
> 
> On my system lyx 1.1.6-fix3 works with Ghostscript 6.51 when setting  
> \ps_command to "/usr/bin/gs "
> in lyxrc.defaults or equivalent
> 
> It's the first argument to execlp which must end with a space (works
> also when setting the first string to " ") 

This is /thoroughly/ bizarre. There is no binary named "/usr/bin/gs " so
I am amazed it works at all. Are you sure about this ?

thanks
john

-- 
"This bulletin discusses three security vulnerabilities that are unrelated
except in the sense that both affect ISA Server 2000"
- Microsoft Product Security



Re: 1.1.6fix3 pictures no longer display ( eps ghostscript preview )

2001-11-07 Thread Morten S. Nielsen


On Mon, 24 Sep 2001 07:25:08 -0700 john wrote:

> well as someone said that doesn't work for everyone.
>
> If I could reproduce the problem I could debug it :(
>
> john

Sorry if this is a bit outdated, but this bug still seems to exist.

In figinset.C there seems to be a problem with execlp if one uses 
ghostscript 6.51 + 

The gs process starts but never exits. Why I don't know. One can go 
into /proc and see the commandline arguments, but this doesn't explain
where it hangs. If you're curious I could try to strace gs. But for now
I'll just report the workaround.

If using ghostscript 5.50 it always works fine. 

On my system lyx 1.1.6-fix3 works with Ghostscript 6.51 when setting  
\ps_command to "/usr/bin/gs "
in lyxrc.defaults or equivalent

It's the first argument to execlp which must end with a space (works
also when setting the first string to " ") 

Morten

Ps: the xhost trick didn't do it for me and I'm not on the lyx list.

-- 
- The Penguin's  1. We are better together than alone
- Postulate  2. If you push something hard enough it will fall over
- Morten S. Nielsen  Dept. of Manuf. Engineering and Management
- mailto:[EMAIL PROTECTED]  Building 425, 2. floor, DK-2800 Lyngby