Skip Menu |

This queue is for tickets about the Gtk2 CPAN distribution.

Report information
The Basics
Id: 68877
Status: resolved
Priority: 0/
Queue: Gtk2

People
Owner: Nobody in particular
Requestors: peter [...] vereshagin.org
Cc:
AdminCc:

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



Subject: FileChooser
trying v1.223 from freebsd ports. Test GtkFileChooser.t skips itself because it's unstable, are there any details about that? Every other t/GtkFileChooser*.t hangs forever after telling '1..N' Same goes with examples/file_chooser.pl But not about examples/filesel_multisel.pl What's the difference? Should I need to have some Gnome helpers daemons like dbus, hal, etc. ? At least I use gam_server from devel/gamin port instead of SGI's fam daemon. It looks very much like waiting for some daemon to respond. gtk-2.22.1_1 and perl-5.14.0 Thank you.
Subject: Re: [rt.cpan.org #68877] FileChooser
Date: Sun, 08 Jan 2012 15:06:39 +0100
To: bug-Gtk2 [...] rt.cpan.org
From: Torsten Schoenfeld <kaffeetisch [...] gmx.de>
On 16.06.2011 21:50, Peter Vereshagin via RT wrote: Show quoted text
> trying v1.223 from freebsd ports. > Test GtkFileChooser.t skips itself because it's unstable, are there any > details about that?
Well, the file chooser is hard to test, so the test results were unreliable. Show quoted text
> Every other t/GtkFileChooser*.t hangs forever after telling '1..N' > Same goes with examples/file_chooser.pl > But not about examples/filesel_multisel.pl > What's the difference? Should I need to have some Gnome helpers daemons > like dbus, hal, etc. ? At least I use gam_server from devel/gamin port > instead of SGI's fam daemon.
GtkFileChooser is a modern and completely independent version of GtkFileSelection. It might be that some daemon is being waited for, but it might also be related to threading issues -- we've seen multiple reports of hangs on FreeBSD related to threading: <http://mail.gnome.org/archives/gtk-perl-list/2011-November/msg00038.html>, for example. Please try the attached programs. Does the Perl program hang for you? Does the C program hang as well? Compile with gcc `pkg-config --libs --cflags gtk+-2.0` gtk-file-chooser-test.c -o gtk-file-chooser-test

Message body is not shown because sender requested not to inline it.

Message body is not shown because sender requested not to inline it.

Subject: Re: [rt.cpan.org #68877] FileChooser
Date: Sat, 18 Feb 2012 12:00:18 +0400
To: Torsten Schoenfeld via RT <bug-Gtk2 [...] rt.cpan.org>
From: Peter Vereshagin <peter [...] vereshagin.org>
Hello. 2012/01/08 09:07:07 -0500 Torsten Schoenfeld via RT <bug-Gtk2@rt.cpan.org> => To peter@vereshagin.org : Show quoted text
TSvR> Well, the file chooser is hard to test, so the test results were unreliable. TSvR> TSvR> GtkFileChooser is a modern and completely independent version of TSvR> GtkFileSelection. It might be that some daemon is being waited for, but TSvR> it might also be related to threading issues -- we've seen multiple TSvR> reports of hangs on FreeBSD related to threading: TSvR> <http://mail.gnome.org/archives/gtk-perl-list/2011-November/msg00038.html>, TSvR> for example.
ok I think I should try with newer FreeBSD some day. Show quoted text
TSvR> Please try the attached programs. Does the Perl program hang for you?
yes. Show quoted text
TSvR> Does the C program hang as well? Compile with TSvR> TSvR> gcc `pkg-config --libs --cflags gtk+-2.0` gtk-file-chooser-test.c -o TSvR> gtk-file-chooser-test
C program works just fine. Every other gtk2 program on a machine can open/save files with this dialog, I try 'asciio' as the only perl-gtk program yet and can't open/save from there. Think I should request a 'current file name' command-line argument feature for App::Asciio. Or implement it myself first. Thank you very much for help! -- Peter Vereshagin <peter@vereshagin.org> (http://vereshagin.org) pgp: A0E26627
Subject: Re: [rt.cpan.org #68877] FileChooser
Date: Sat, 18 Feb 2012 14:09:38 +0400
To: Torsten Schoenfeld via RT <bug-Gtk2 [...] rt.cpan.org>
From: Peter Vereshagin <peter [...] vereshagin.org>
Sorry I forgot to note: - I upgraded the p5-Gtk2 port to 1.242 and this required to upgrade the p5-Glib2 to p5-Glib2-1.250_1 and several other ports, too, according to the latest ports tree. - I use X11 via TCP from jail(4) environment as xorg-server requires chroot, not jail. x11 server is in the separate chroot. FileChooser behaves the same after upgrade mentioned.
Subject: Re: [rt.cpan.org #68877] FileChooser
Date: Sun, 19 Feb 2012 03:12:31 +0100
To: Peter Vereshagin via RT <bug-Gtk2 [...] rt.cpan.org>
From: Marc Lehmann <schmorp [...] schmorp.de>
On Sat, Feb 18, 2012 at 03:01:17AM -0500, Peter Vereshagin via RT <bug-Gtk2@rt.cpan.org> wrote: Show quoted text
> TSvR> reports of hangs on FreeBSD related to threading: > TSvR> <http://mail.gnome.org/archives/gtk-perl-list/2011-November/msg00038.html>, > TSvR> for example.
> > ok I think I should try with newer FreeBSD some day.
Sorry to chime in, but what version of freebsd was that? Especially older versions had a very low-quality pthreads implementation (malloc wasn't threadsafe for example), and even current versions do not support pthreads enough to make perl work in all cases (calling malloc after fork is not supported for example). perl puts a lot of requirements on pthreads that are not guaranteed by POSIX, but are implemented on e.g. GNU/Linux, causing weird problems on various bsds which limit themselves to a subset of posix. The failures could be caused by something "simple", such as: - using the perl malloc replacement (which relies on sbrk which is not threadsafe on freebsd last I looked, but maybe is nowadays). - a general incompatibility, because old freebsd versions had basically non- working threads (e.g. freebsd 6, freebsd 7 is much better) - having perl not compiled with threads, but linking gtk against threads, which also doesn't work in older versions of freebsd - the main program has to be linked with -pthread. - using -lpthread instead of -pthread. -- The choice of a Deliantra, the free code+content MORPG -----==- _GNU_ http://www.deliantra.net ----==-- _ generation ---==---(_)__ __ ____ __ Marc Lehmann --==---/ / _ \/ // /\ \/ / schmorp@schmorp.de -=====/_/_//_/\_,_/ /_/\_\
Subject: Re: [rt.cpan.org #68877] FileChooser
Date: Sat, 29 Nov 2014 19:23:18 +0100
To: bug-Gtk2 [...] rt.cpan.org
From: Torsten Schoenfeld <kaffeetisch [...] gmx.de>
We now have lots of evidence that hints at these tests requiring perl be linked with "-pthread" since they use threads under the hood, just as Marc hinted at. So, please try again with this commit: <https://git.gnome.org/browse/perl-Gtk2/commit/?id=4128c861e6650a64b5cf1830248357fb7e9c3284>.