RSS/Atom feed Twitter
Site is read-only, email is disabled

gegl_init(),gegl_exit() and

This discussion is connected to the gegl-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

gegl_init(),gegl_exit() and Jan Kovanda 15 Feb 05:29
  gegl_init(),gegl_exit() and modules " 15 Feb 10:27
Jan Kovanda
2011-02-15 05:29:19 UTC (about 14 years ago)

gegl_init(),gegl_exit() and

Hello again,
I am creating a application with GUI for testing custom made gegl modules. Before using a gegl operation I have to initialize gegl by calling gegl_init(). At that moment all modules at GEGL_PATH and subfolders are loaded to the module_db.

At first I thought that using gegl_exit() should delete (unref and free) module_db. A bit of testing revealed some unpleasant surprises. Even after gegl_exit() I am still able to access GeglNodes a gegl methods as if no exit was called.

Then what is method gegl_exit() good for?

Moreover after gegl_exit() (and cleared module_db) I called gegl_init() again to populate module_db with new set of modules. But error occurred:

ERROR:gegl-init.c:468:gegl_post_parse_hook: assertion failed: (global_time == 0)

I don't know why this error occurred. Seems to me that gegl_init() can be called only once. But that would mean I won't be able to refresh module_db on the fly.

Why can't I call gegl_init() after gegl_exit() when gegl has been ended?

That leads to the crucial question: Is there any way to reload (or manipulate with) module_db at runtime?

Thank you for any answer. Right now I am quite lost.

"
2011-02-15 10:27:56 UTC (about 14 years ago)

gegl_init(),gegl_exit() and modules

On Tue, Feb 15, 2011 at 5:29 AM, Jan Kovanda wrote:

At first I thought that using gegl_exit() should delete (unref and free) module_db. A bit of testing revealed some unpleasant surprises. Even after gegl_exit() I am still able to access GeglNodes a gegl methods as if no exit was called.

Then what is method gegl_exit() good for?

GEGL is not designed to be torn down and reinitialized, gegl_exit will cause unreferencing some of the runtime data as well as report any problems detected by sanity checks. Patches making it possible to reload the GEGL ops would be welcome, do however note that the GType system underlying GObject is likely to provide some unexpected hurdles.

/Øyvind K.

«The future is already here. It's just not very evenly distributed»
                                                 -- William Gibson
http://pippin.gimp.org/                            http://ffii.org/
_______________________________________________
Gegl-developer mailing list
Gegl-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer