Custom Query (152 matches)

Filters
 
Columns

Show under each result:


Results (1 - 3 of 152)

1 2 3 4 5 6 7 8 9 10 11
Ticket Resolution Summary Owner Reporter
#1112 fixed "Xlib: unexpected async reply" with threaded RTS and --sync command line parameter somebody guest

Reported by guest, 7 years ago.

description

A trivial program which uses unsafeInitGUIForThreadedRTS, and doesn't even start additional threads, causes the above error message when started with the "--sync" command line parameter. It has to be compiled with "-threaded", but multithreading doesn't need to be enabled at runtime for the error to occur. The same problem occurs even without the "--sync" parameter, but only in a much more complex program. All the parameter does is tell X to report errors synchronously.

Calling XInitThreads at the start of main makes the error disappear, which indicates that Haskell calls Gtk (which in turn calls X) from multiple OS threads.

The attached archive contains three versions of the same program:

  1. broken.hs prints the error and hangs. Some fierce resizing (i. e. Expose events) may be necessary to trigger the error.
  2. working.hs merely adds a call to XInitThreads and doesn't hang regardless of the amount of resizing.
  3. test.c is an equivalent program in C, which works fine without calling XInitThreads.
#1097 fixed 'on' isn't exported by default when importing Gtk2Hs somebody guest

Reported by guest, 7 years ago.

description

The function on that is now used to connect to signals should be exported by default. I don't know if we should re-export the whole System.Glib.Signal module or only parts thereof.

Axel.

#1154 wontfix --disable-deprecated breaks installation pgavin guest

Reported by guest, 6 years ago.

description

If I run configure --disable-deprecated && make , I get some errors like

gtk/Graphics/UI/Gtk/Types.chs:1831: (column 12) [ERROR]

>>> Unknown identifier!

and make fails.

With the --disable-deprecated switch symbols for deprecated widget defined in the gtk header files will not be included, but gtkhs tries to use them anyway.

Without this switch, compilation runs fine.

Greetings

Johann

johann ~/gtk2hs $ pkg-config --modversion 'gtk+-2.0'
2.12.11

johann ~/gtk2hs $ uname -a
Linux zitrone 2.6.27-gentoo-r8 #2 Tue Feb 3 23:24:03 CET 2009 i686 Intel(R) Pentium(R) III Mobile CPU 800MHz GenuineIntel? GNU/Linux

johann ~/gtk2hs $ ghc --version
The Glorious Glasgow Haskell Compilation System, version 6.8.3

1 2 3 4 5 6 7 8 9 10 11
Note: See TracQuery for help on using queries.