Skip Menu |

This queue is for tickets about the PAR CPAN distribution.

Report information
The Basics
Id: 18082
Status: resolved
Priority: 0/
Queue: PAR

People
Owner: smueller [...] cpan.org
Requestors: rumen [...] skyarchive.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: autrijus [...] autrijus.org
Subject: pp --gui
Date: Thu, 9 Mar 2006 23:50:09 +0200
To: bug-par [...] rt.cpan.org
From: "Rumen Bogdanovski" <rumen [...] skyarchive.org>
Hi, it seems that "--gui" in the new versions of par does not work. I use perl Tk. I have just upgraded Perl and PAR to the latest versions and this problem appeared. I do not remember what was the previous version of par, it was something like 0.86 or so with perl 5.8.5 on win2000 and this option worked. Is this a bug or I am doing something wrong: pp -gui -o photview.exe -icon share/photclient/icons/photview.ico photview.pl Thank you in advance! Rumen
From: smueller [...] cpan.org
On Do. 09. Mär. 2006, 16:50:24, rumen@skyarchive.org wrote: Show quoted text
> it seems that "--gui" in the new versions of par does not work. I use
perl Show quoted text
> Tk. I have just upgraded Perl and PAR to the latest versions and this > problem appeared. I do not remember what was the previous version of
par, it Show quoted text
> was something like 0.86 or so with perl 5.8.5 on win2000 and this option > worked. > > Is this a bug or I am doing something wrong: > pp -gui -o photview.exe -icon share/photclient/icons/photview.ico > photview.pl
I think the official syntax for long options is with two dashes (--gui), but that won't be the problem, I guess. What version of Perl and PAR are you using? How did you install PAR? (In particular: Did you compile it yourself or did you use a binary distribution. I have not yet compiled PAR for 5.8.8 from ActiveState, so you might be using a binary for 5.8.7 which mysteriously fails with 5.8.8? Just guessing. Also, what does 'it seems that "--gui" in the new versions of par does not work' mean? Is the problem that you're still seeing a console? Please go into more detail. Steffen
Subject: Re: [rt.cpan.org #18082] pp --gui
Date: Fri, 24 Mar 2006 10:10:33 +0200
To: bug-PAR [...] rt.cpan.org
From: "Rumen Bogdanovski" <rumen [...] skyarchive.org>
Hallo, The problem is that the console still appears. I have installed PAR using "cpan -i " and let it install all additional modules necessary and optional. The Windows2000sp4 and perl 5.8.7 were brand new installations. I reinstalled windows because it was used only for this purpose, but console is still visible. Did I write Active perl 5.8.8? Sorry it is 5.8.7. Rumen On 3/23/06, Steffen Müller via RT <bug-PAR@rt.cpan.org> wrote: Show quoted text
> > > <URL: http://rt.cpan.org/Ticket/Display.html?id=18082 > > > On Do. 09. Mär. 2006, 16:50:24, rumen@skyarchive.org wrote:
> > it seems that "--gui" in the new versions of par does not work. I use
> perl
> > Tk. I have just upgraded Perl and PAR to the latest versions and this > > problem appeared. I do not remember what was the previous version of
> par, it
> > was something like 0.86 or so with perl 5.8.5 on win2000 and this option > > worked. > > > > Is this a bug or I am doing something wrong: > > pp -gui -o photview.exe -icon share/photclient/icons/photview.ico > > photview.pl
> > I think the official syntax for long options is with two dashes (--gui), > but that won't be the problem, I guess. > > What version of Perl and PAR are you using? How did you install PAR? (In > particular: Did you compile it yourself or did you use a binary > distribution. I have not yet compiled PAR for 5.8.8 from ActiveState, so > you might be using a binary for 5.8.7 which mysteriously fails with > 5.8.8? Just guessing. > > Also, what does 'it seems that "--gui" in the new versions of par does > not work' mean? Is the problem that you're still seeing a console? > Please go into more detail. > > Steffen >
RT-Send-CC: jand [...] activestate.com
[pp --gui not working] On Fr. 24. Mär. 2006, 03:10:53, rumen@skyarchive.org wrote: Show quoted text
> The problem is that the console still appears.
I have since tested this on w2k with the newest PAR 0.92 and ActiveState's ActivePerl 5.8.7 and can confirm that the console window isn't removed as it should be. I am sending a copy of this to Jan Dubois of ActiveState, who - according to Audrey - has written the code in question. (What I'm referring to here is _fix_console and _strip_console in PAR::Packer.) Jan: Unfortunately, I do not see the slightest chance to understand the code in question. It hasn't been changed since revision 1 in the svn repository of PAR::Packer. I have no idea why it stopped doing what it is supposed to do. Can you help? All the best, Steffen
Subject: RE: [rt.cpan.org #18082] pp --gui
Date: Sat, 15 Apr 2006 10:50:14 -0700
To: <bug-PAR [...] rt.cpan.org>
From: "Jan Dubois" <jand [...] ActiveState.com>
On Sat, 15 Apr 2006, Steffen Müller via RT wrote: Show quoted text
> Jan: Unfortunately, I do not see the slightest chance to understand > the code in question. It hasn't been changed since revision 1 in the > svn repository of PAR::Packer. I have no idea why it stopped doing > what it is supposed to do. Can you help?
I have no idea why it would suddenly stop working. My best guess is that the code is no longer being called due to changes in other parts of the code. The first thing to check would be to manually change the application to GUI mode with: exetype myapp.exe windows (exetype.pl/exetype.bat is part of Perl and is the source of the --gui implementation in PAR). If the console window no longer appears after switching the exe type, then it means the code in PAR is being skipped. If it still does appear, then something else must be going on: Is the generated executable starting another process? Does the executable for that process have the type set to GUI mode? Note that it is normal for GUI applications to display a console window when they run commandline programs via backticks, system(), or piped open. You'll see the same effect if you run the program normally with wperl.exe instead of perl.exe. (wperl.exe is just a copy of perl.exe that has been switched to GUI mode). If the additional window appears under wperl.exe too, then it is obviously not a PAR problem. The mechanism to suppress these child process windows is to add BEGIN { Win32::SetChildShowWindow(0) if defined &Win32::SetChildShowWindow } to the top of your application. Cheers, -Jan
CC: par [...] perl.org, jand [...] activestate.com
Subject: Re: [rt.cpan.org #18082] pp --gui
Date: Sat, 15 Apr 2006 22:05:09 +0300
To: bug-PAR [...] rt.cpan.org
From: "Rumen Bogdanovski" <rumen [...] skyarchive.org>
I have tryed: exetype myapp.exe windows and still shows console. On Sat, 15 Apr 2006 20:51:40 +0300, jand@ActiveState.com via RT <bug-PAR@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=18082 > > > On Sat, 15 Apr 2006, Steffen Müller via RT wrote:
>> Jan: Unfortunately, I do not see the slightest chance to understand >> the code in question. It hasn't been changed since revision 1 in the >> svn repository of PAR::Packer. I have no idea why it stopped doing >> what it is supposed to do. Can you help?
> > I have no idea why it would suddenly stop working. My best guess is > that the code is no longer being called due to changes in other parts > of the code. > > The first thing to check would be to manually change the application > to GUI mode with: > > exetype myapp.exe windows > > (exetype.pl/exetype.bat is part of Perl and is the source of the --gui > implementation in PAR). > > If the console window no longer appears after switching the exe type, > then it means the code in PAR is being skipped. > > If it still does appear, then something else must be going on: Is the > generated executable starting another process? Does the executable for > that process have the type set to GUI mode? > > Note that it is normal for GUI applications to display a console window > when they run commandline programs via backticks, system(), or piped > open. > You'll see the same effect if you run the program normally with wperl.exe > instead of perl.exe. (wperl.exe is just a copy of perl.exe that has > been switched to GUI mode). If the additional window appears under > wperl.exe too, then it is obviously not a PAR problem. > > The mechanism to suppress these child process windows is to add > > BEGIN { Win32::SetChildShowWindow(0) if defined > &Win32::SetChildShowWindow } > > to the top of your application. > > Cheers, > -Jan > > >
CC: <par [...] perl.org>
Subject: RE: [rt.cpan.org #18082] pp --gui
Date: Sun, 16 Apr 2006 00:36:18 -0700
To: "'Rumen Bogdanovski'" <rumen [...] skyarchive.org>, <bug-PAR [...] rt.cpan.org>
From: "Jan Dubois" <jand [...] ActiveState.com>
On Sat, 15 Apr 2006, Rumen Bogdanovski wrote: Show quoted text
> I have tryed: exetype myapp.exe windows > and still shows console.
So did you try running your script with wperl myapp.pl and did it still show the console window? If it did, did adding BEGIN { Win32::SetChildShowWindow(0) if defined &Win32::SetChildShowWindow } to the top of myapp.pl fix this? Cheers, -Jan
CC: jand [...] activestate.com
Subject: Re: [rt.cpan.org #18082] pp --gui
Date: Sun, 16 Apr 2006 12:20:18 +0300
To: bug-PAR [...] rt.cpan.org
From: "Rumen Bogdanovski" <rumen [...] skyarchive.org>
Happy easter! I did "open file..." with "wperl" and the console does not appear "BEGIN{Win32::SetChildShowWindow(0)... }" was added. but once packed to executable with pp --gui myapp.exe myapp.pl console is still shown... Rumen On Sun, 16 Apr 2006 10:37:21 +0300, jand@ActiveState.com via RT <bug-PAR@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=18082 > > > On Sat, 15 Apr 2006, Rumen Bogdanovski wrote:
>> I have tryed: exetype myapp.exe windows >> and still shows console.
> > So did you try running your script with > > wperl myapp.pl > > and did it still show the console window? If it did, did adding > > BEGIN { Win32::SetChildShowWindow(0) if defined > &Win32::SetChildShowWindow } > > to the top of myapp.pl fix this? > > Cheers, > -Jan > >
Subject: Re: [rt.cpan.org #18082] pp --gui
Date: Sun, 16 Apr 2006 14:40:12 -0700
To: "'Rumen Bogdanovski'" <rumen [...] skyarchive.org>, <bug-PAR [...] rt.cpan.org>
From: "Jan Dubois" <jand [...] ActiveState.com>
On Sun, 16 Apr 2006, Rumen Bogdanovski wrote: Show quoted text
> Happy easter! > > I did "open file..." with "wperl" and the console does not appear > "BEGIN{Win32::SetChildShowWindow(0)... }" was added. > > but once packed to executable with pp --gui myapp.exe myapp.pl console > is still shown...
In that case I can't really help you any further. Somebody from the PAR dev team will have to look into this in detail. My suspicion is on the code at the end of the main() function in myldr/static.c, especially the relatively new addition of the call to AllowSetForeGroundWindow() combined with the spawnvpe() afterwards. I don't really know anything about the PAR internals, but if the file pointed to by my_file hasn't been changed to GUI mode also, then that may be the culprit. Cheers, -Jan
On Do. 09. Mär. 2006, 16:50:24, rumen@skyarchive.org wrote: Show quoted text
> Hi, > it seems that "--gui" in the new versions of par does not work. I use
perl Show quoted text
> Tk. I have just upgraded Perl and PAR to the latest versions and this > problem appeared. I do not remember what was the previous version of
par, it Show quoted text
> was something like 0.86 or so with perl 5.8.5 on win2000 and this option > worked. > > Is this a bug or I am doing something wrong: > pp -gui -o photview.exe -icon share/photclient/icons/photview.ico > photview.pl
Hi Rumen, I have done some more research on this. Curiously, on the Windows computer I am currently using (PAR 0.94, AS Perl 5.8.8), --gui works flawlessly. The change Jan thought might be responsible for this occurred between 0.86 and 0.87. You would do me a great favour if you went through the following steps: - Install PAR 0.94 from CPAN (Just run cpan, then type "install PAR" that should do the trick unless you use AS Perl build 816.) --> Test whether --gui works. (If so, fine, done.) - Install the ppm file for PAR 0.85 from the bribes.org ppm repository. --> Test whether --gui works. (If so, we probably found the culprit.) - Possibly retry with PAR 0.87. Thanks, Steffen
Subject: Re: [rt.cpan.org #18082] pp --gui
Date: Fri, 09 Jun 2006 21:12:36 +0300
To: bug-PAR [...] rt.cpan.org
From: "Rumen Bogdanovski" <rumen [...] skyarchive.org>
Hi Steffen, I will dig in to this this weekend :) Hopefully. I have just returned home. I had no time and opportunity to work on this in Germany :( Rumen On Fri, 09 Jun 2006 21:00:25 +0300, Steffen Müller" via RT" <bug-PAR@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=18082 > > > On Do. 09. Mär. 2006, 16:50:24, rumen@skyarchive.org wrote:
>> Hi, >> it seems that "--gui" in the new versions of par does not work. I use
> perl
>> Tk. I have just upgraded Perl and PAR to the latest versions and this >> problem appeared. I do not remember what was the previous version of
> par, it
>> was something like 0.86 or so with perl 5.8.5 on win2000 and this option >> worked. >> >> Is this a bug or I am doing something wrong: >> pp -gui -o photview.exe -icon share/photclient/icons/photview.ico >> photview.pl
> > Hi Rumen, > > I have done some more research on this. Curiously, on the Windows > computer I am currently using (PAR 0.94, AS Perl 5.8.8), --gui works > flawlessly. The change Jan thought might be responsible for this > occurred between 0.86 and 0.87. You would do me a great favour if you > went through the following steps: > > - Install PAR 0.94 from CPAN (Just run cpan, then type "install PAR" > that should do the trick unless you use AS Perl build 816.) > --> Test whether --gui works. (If so, fine, done.) > - Install the ppm file for PAR 0.85 from the bribes.org ppm repository. > --> Test whether --gui works. (If so, we probably found the culprit.) > - Possibly retry with PAR 0.87. > > Thanks, > Steffen
Subject: Re: [rt.cpan.org #18082] pp --gui
Date: Sat, 10 Jun 2006 16:03:34 +0300
To: bug-PAR [...] rt.cpan.org
From: "Rumen Bogdanovski" <rumen [...] skyarchive.org>
Hi Steffen, --gui in PAR-0.94 (with PAR-Dist.0.10) works just fine IMHO. Thanks! Rumen On Fri, 09 Jun 2006 21:00:25 +0300, Steffen Müller" via RT" <bug-PAR@rt.cpan.org> wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=18082 > > > On Do. 09. Mär. 2006, 16:50:24, rumen@skyarchive.org wrote:
>> Hi, >> it seems that "--gui" in the new versions of par does not work. I use
> perl
>> Tk. I have just upgraded Perl and PAR to the latest versions and this >> problem appeared. I do not remember what was the previous version of
> par, it
>> was something like 0.86 or so with perl 5.8.5 on win2000 and this option >> worked. >> >> Is this a bug or I am doing something wrong: >> pp -gui -o photview.exe -icon share/photclient/icons/photview.ico >> photview.pl
> > Hi Rumen, > > I have done some more research on this. Curiously, on the Windows > computer I am currently using (PAR 0.94, AS Perl 5.8.8), --gui works > flawlessly. The change Jan thought might be responsible for this > occurred between 0.86 and 0.87. You would do me a great favour if you > went through the following steps: > > - Install PAR 0.94 from CPAN (Just run cpan, then type "install PAR" > that should do the trick unless you use AS Perl build 816.) > --> Test whether --gui works. (If so, fine, done.) > - Install the ppm file for PAR 0.85 from the bribes.org ppm repository. > --> Test whether --gui works. (If so, we probably found the culprit.) > - Possibly retry with PAR 0.87. > > Thanks, > Steffen