Ticket #1192 (closed defect: wontfix)
GLib-CRITICAL **: g_timeout_add_full: assertion `function != NULL' failed
| Reported by: | guest | Owned by: | somebody |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | general (Gtk+, Glib) | Version: | 0.11.0 |
| Keywords: | callback | Cc: | mikolaj.konarski@…, gtk2hs-bug-tracker@… |
Description
PowerPC Linux, ghc6_6.12.1-13 with Debian patches. Tested with different GTK versions and with gtk2hs from hackage, tarball and the newest from darcs. A lot of haskell code runs OK, including most gtk demos. The problem may be in FFI implementation in GHC for PowerPC, but it may be in gtk, too, since I don't get any similar error when compiling GHC itself, gtk2hs and any Haskell apps that don't use gtk. I'm ready to debug, as instructed.
When I run the cairo clock demo (and many other gtk applications that depend on g_timeout_add_full) I get:
mikolaj@bratek:~/Desktop/gtknew/gtk2hs/gtk2hs/cairo/demo$ ./clock (clock:1521): GLib-CRITICAL **: g_timeout_add_full: assertion `function != NULL' failed
And the clock is shown but does not run. Other applications that show this assertion sometimes run, but e.g. reacting to many key-presses at once after a delay and then freezing again.