After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 688361 - GIMP on Windows crashes with error gegl_tile_backend_file_ensure_exist: assertion failed: (self->i != -1)
GIMP on Windows crashes with error gegl_tile_backend_file_ensure_exist: asser...
Status: RESOLVED FIXED
Product: GEGL
Classification: Other
Component: GeglBuffer
git master
Other All
: Normal critical
: ---
Assigned To: Default Gegl Component Owner
Default Gegl Component Owner
: 698688 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-11-15 03:38 UTC by Jehan
Modified: 2014-03-17 08:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot of the crashing GIMP on Windows 7 (150.88 KB, image/png)
2012-11-15 03:38 UTC, Jehan
Details
Error on XP showing instruction location referencing a null pointer (8.78 KB, image/png)
2012-12-06 17:30 UTC, Cellar Gimp
Details

Description Jehan 2012-11-15 03:38:52 UTC
Created attachment 229020 [details]
Screenshot of the crashing GIMP on Windows 7

Not sure if this is a GEGL issue or GIMP issue. And I won't dig it right now, because I am not Windows user nor developer! :p

Anyway yesterday when I tested GIMP cross-compiled on Windows for another bug, I got this error:

GEGL-gegl-tile-backend-file-async.c:ERROR:gegl-tile-backend-file-async.c:1237: gegl_tile_backend_file_ensure_exist: assertion failed: (self->i != -1)

Then GIMP crashes.
What I was doing before is simply that I was testing drawing in a new image.
Comment 1 Max Mustermann 2012-11-15 04:15:04 UTC
Thank you for reporting this. 
In bug #675825 we had the same error message, although it happened on another action. Please check, whether you have used the latest *stable* GEGL version 0.2 in your build.
Comment 2 Jehan 2012-11-15 04:22:33 UTC
I was using GEGL from git dev repo (last update in my locale repo, Nov 7, commit 963fbc2d156e6ae1a9020ca18e7eedb19886b310)
Comment 3 Michael Natterer 2012-11-15 07:26:50 UTC
GIMP master needs GEGL master, not stable. The code has changed
quite a bit since bug 675825, but the crash does not depend on the
action, GEGL simply runs out of file descriptors.
Comment 4 Cellar Gimp 2012-12-06 17:30:48 UTC
Created attachment 230906 [details]
Error on XP showing instruction location referencing a null pointer
Comment 5 Jehan 2012-12-07 04:07:33 UTC
Hi Cellar,

as far as I can see, this does not look the same bug. The bug discussed here is about GEGL (in the GIMP development branch), and your screenshot apparently deals with GIMP 2.8 which barely use GEGL yet, if at all (if I am not mistaken).

Unless you have good reason to think this is actually the same issue, could you open a new ticket with the following additional data:
- if you can reproduce the issue, write down the reproduction steps.
- if you start GIMP from a terminal emulator ("cmd" in Windows), do you have any more information?
Because just from this screenshot which is far too generic, I don't think much can be done unfortunately. :-/
Comment 6 Jehan 2012-12-07 04:12:01 UTC
Sorry some precision:

- For the reproduction steps, if this is a one-time thing and you have never been able to reproduce it, at least you can tel us what you were doing when it happened.
- For the information in terminal emulator, I mean more information at the time of the crash in particular.
- Also the exact GIMP version (2.8.0? 2.8.2?) is helpful.
Comment 7 Massimo 2013-04-25 06:00:18 UTC
*** Bug 698688 has been marked as a duplicate of this bug. ***
Comment 8 Daniel Sabo 2013-10-12 11:49:43 UTC
Was this fixed by this commit?:

commit 48c1d6ac8925c8b015748c2a445268ddad842d3b
Author: Massimo Valentini <mvalentini@src.gnome.org>
Date:   Fri May 18 15:02:19 2012 +0200

    gegl/buffer: use g_open,g_access instead of open,access

    Bug 675591: Errors due to non-Latin letters in the name
    of the user profile.
Comment 9 Jehan 2013-10-15 01:19:36 UTC
Daniel,

I never encountered this error since then, on various builds of GIMP master on Windows. Yet I don't run GIMP on Windows much, other than for the occasional bugfix or bug reproduction.

Mitch seem to know what was the problem though (we would run out of file descriptor. I even wonder how this is possible. How many file descriptor does GEGL create?! uhuh). So he may know if this commit would fix it.
Comment 10 Jehan 2013-10-15 01:46:10 UTC
This said, reading documentation of g_open, it clearly says that on Windows, open() and g_open() are clearly different implementations. I have not checked the exact implementations, but obviously that would change how (and maybe how many) file descriptions are created. So maybe that's better.

It also says that a fd created with g_open() cannot be passed to read() and write() on Windows. Just for information, in case we have such code...

Cf. https://developer.gnome.org/glib/stable/glib-File-Utilities.html#g-open