Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#1138 closed defect (fixed)

Padre single instance server not working

Reported by: zenogantner Owned by:
Priority: major Milestone:
Component: Single Instance Version: trunk
Keywords: Cc:

Description

I get these warnings on Ubuntu 10.04 when starting Padre:

Use of uninitialized value within %variable in substitution iterator at /usr/local/share/perl/5.10.1/Padre/Wx/Main.pm line 1388.
Failed to create server at /usr/local/share/perl/5.10.1/Padre/Wx/Main.pm line 968.

The Padre server does not work, which means that one cannot open additional files in a running Padre instance from the command line.

And these when I quit Padre:

Use of uninitialized value within %variable in substitution iterator at /usr/local/share/perl/5.10.1/Padre/Wx/Main.pm line 1388.
Use of uninitialized value within %variable in substitution iterator at /usr/local/share/perl/5.10.1/Padre/Wx/Main.pm line 1388.

Attachments (1)

single-instance-unix-mj41.patch (445 bytes) - added by mj41 4 years ago.
This works on my unix (Linux Fedora 14).

Download all attachments as: .zip

Change History (15)

comment:1 Changed 4 years ago by zenogantner

  • Version changed from 0.82pre to trunk

The problem persists on trunk.

comment:2 Changed 4 years ago by szabgab

These are actually two issues.
AFAIK the "Failed to create server" was already fixed in 0.82

The "Use of uninitialized value within %variable" has a separate ticket #1153.

comment:3 Changed 4 years ago by zenogantner

Warnings are fixed, server problem remains (at least on my system).

Perl 5.10.1

Wx 0.98

WxWidgets? 2.8.10

Wx::Perl::ProcessStream? 0.29

PPI 1.213

comment:4 Changed 4 years ago by zenogantner

  • Keywords release_branch removed

comment:5 Changed 4 years ago by szabgab

Correcting myself.
The "Failed to create server" can be seen on Ubuntu 10.10 using r13913 (after 0.82).

In order to see that one needs to turn on the main_singleinstance
using Tools/Preferences/Advanced?
and then restart Padre.

comment:6 Changed 4 years ago by zenogantner

You can also set this by going to Tools/Preferences?/Behaviour: "Open files in existing Padre"

comment:7 Changed 4 years ago by zenogantner

  • Summary changed from Warnings at Padre startup; Padre server not working to Padre server not working

changed summary to clarify the issue

comment:8 Changed 4 years ago by szabgab

  • Summary changed from Padre server not working to Padre single instance server not working

comment:9 Changed 4 years ago by mj41

Padre/Wx/Main?.pm

- warn( Wx::gettext("Failed to create server") );
+ warn( Wx::gettext("Failed to create server '$!'") );

Failed to create server 'Permission denied' at /usr/local/share/perl5/Padre/Wx/Main.pm line 968.

Running under 'root' privileges is ok. Under normal user I got 'Permission denied' from Wx::SocketServer?->new.

Last edited 4 years ago by mj41 (previous) (diff)

comment:10 Changed 4 years ago by szabgab

  • Component changed from editor to Single Instance

comment:11 follow-up: Changed 4 years ago by Sewi

All affected people:
Please try "netstat -nelp" and look for any perl, dev or padre task listed there.

comment:12 in reply to: ↑ 11 Changed 4 years ago by mj41

'Failed to create server ... ' ... and no 'perl dev' nor 'padre' on 'netstat -nelp' output

There is 'sub single_instance_address' on Padre/Wx/Main?.pm's line 912. And 'my $address = Wx::UNIXaddress->new;' on line 934.

Permission denied in $! ... Somebody say "use port >1024". Any idea how to do this? Or how to print/dump used port? I see only $VAR1 = bless( do{\(my $o = 77453840)}, 'Wx::UNIXaddress' ); if using Data::Dumper.

Changed 4 years ago by mj41

This works on my unix (Linux Fedora 14).

comment:13 Changed 4 years ago by Sewi

  • Resolution set to fixed
  • Status changed from new to closed

fixed in r14125 applying mj41's patch

comment:14 Changed 4 years ago by mj41

This bug was probably introduced in r13630.

Note: See TracTickets for help on using tickets.