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 304702 - Pango-ERROR **: file shape.c line 75 (pango_shape): assertion failed: (glyphs->num_glyphs > 0)
Pango-ERROR **: file shape.c line 75 (pango_shape): assertion failed: (glyphs...
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: win32
unspecified
Other All
: High critical
: ---
Assigned To: gtk-win32 maintainers
pango-maint
: 301139 307604 307881 309961 311877 312898 314228 314295 314312 314535 317034 317243 325704 343474 348715 376695 446917 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-05-18 21:14 UTC by Thomas Schweikle
Modified: 2007-06-13 13:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to downgrade crash to critical (895 bytes, patch)
2005-10-19 20:22 UTC, Morten Welinder
none Details | Review
committed patch. (2.72 KB, patch)
2006-01-29 21:38 UTC, Behdad Esfahbod
committed Details | Review

Description Thomas Schweikle 2005-05-18 21:14:51 UTC
Steps to reproduce:
1. Start GIMP
2. File -> Open...
3. Click 'C:\'


Stack trace:


Other information:
Comment 1 Thomas Schweikle 2005-05-18 21:20:21 UTC
Version: GIMP 2.2.7
Comment 2 Daniel Atallah 2005-05-30 14:42:06 UTC
There don't seem to be any duplicates of this that are in an "Open" status.  I
have a number of gaim bugs that I'd like to mark as dependent on this (or some
other bug), should I use this bug or should one of the closed ones be reopened?
Comment 3 Matthias Clasen 2005-06-09 17:18:20 UTC
*** Bug 301139 has been marked as a duplicate of this bug. ***
Comment 4 Sven Neumann 2005-06-14 10:38:19 UTC
*** Bug 307604 has been marked as a duplicate of this bug. ***
Comment 5 weskaggs 2005-06-14 16:12:10 UTC
Note that the most useful information about this bug seems to be in the comments
for bug #151068 (even though it is marked as a duplicate of another bug).
Comment 6 Owen Taylor 2005-06-14 19:58:30 UTC
Note that the error in the Subject line is entirely generic .. it
just means that *SOMETHING* went wrong in the shaping process, and could
have many different sources.
Comment 7 Jeff 2005-06-24 00:47:07 UTC
This error happens when you open a directory with a file named somthing weird.
In my case it was a file named
https___www1.netbank.commbank.com.au_NetBank_scripts_cgiclnt.....pdf
Comment 8 bbsmail 2005-07-14 06:36:37 UTC
Same thing happens on a PC that's never had any version of GIMP or the GTK on it
after install of 2.2.7
1. Start GIMP
2. File -> Open...
3. Click 'My Documents' button and wait a couple of seconds and the error pops
up and when you clcik ok GIMP crashes.
Comment 9 Raphaël Quinet 2005-07-29 13:01:05 UTC
*** Bug 311877 has been marked as a duplicate of this bug. ***
Comment 10 Behdad Esfahbod 2005-07-29 22:36:19 UTC
One of you guys should run the crashing application under gdb, put a breakpoint
on g_log by typing "b g_log", then type "run" and enter, wait for control to get
back to gdb, and type "bt" and enter, send the resulting backtrace here.  I'm
assuming that no other error message is written to the output before the error
reported here.
Comment 11 Michael Schumacher 2005-07-30 20:48:08 UTC
*** Bug 309961 has been marked as a duplicate of this bug. ***
Comment 12 Owen Taylor 2005-08-08 19:32:24 UTC
*** Bug 312898 has been marked as a duplicate of this bug. ***
Comment 13 Tomi Pakarinen 2005-08-17 11:02:53 UTC
This is caused by some Windows fonts. eg "MS Sans Serif". I had this same
problem on Linux. I had windows fonts installed on my fedora (core 4) and "MS
Sans Serif" defined as default font in gnome. Every time, i opened Nautilus, it
crashed. When i changed default font, problem went away.

I guess that this change is causing this behaviour:
http://cvs.gnome.org/viewcvs/pango/pango/shape.c?r1=1.9&r2=1.10


Comment 14 Morten Welinder 2005-08-17 11:24:19 UTC
Also, the current action -- crash -- upon noticing that something went
wrong in the shaper just isn't right.

It would be far better to issue a g_warning and then insert a random
glyph or two so the rest of pango could limp on.  For example, just
insert "?".
Comment 15 Owen Taylor 2005-08-17 20:19:48 UTC
Tomi - anything happening on Linux is unrelated to this bug report 
and should be filed separetely, thanks.


Comment 16 Teppo Turtiainen 2005-08-24 05:27:04 UTC
*** Bug 314312 has been marked as a duplicate of this bug. ***
Comment 17 Teppo Turtiainen 2005-08-24 05:30:07 UTC
*** Bug 314295 has been marked as a duplicate of this bug. ***
Comment 18 Teppo Turtiainen 2005-08-24 05:30:33 UTC
*** Bug 314228 has been marked as a duplicate of this bug. ***
Comment 19 Teppo Turtiainen 2005-08-29 17:09:35 UTC
*** Bug 314535 has been marked as a duplicate of this bug. ***
Comment 20 Sven Neumann 2005-09-30 12:41:43 UTC
*** Bug 317243 has been marked as a duplicate of this bug. ***
Comment 21 Behdad Esfahbod 2005-10-01 10:43:49 UTC
*** Bug 317034 has been marked as a duplicate of this bug. ***
Comment 22 Behdad Esfahbod 2005-10-01 10:47:55 UTC
I think Bug 317243 is a duplicate too.  It's not on windows, but the backtrace
shows that the same assertion fails as in this bug.
Comment 23 Morten Welinder 2005-10-19 20:22:33 UTC
Created attachment 53665 [details] [review]
Patch to downgrade crash to critical

This patch -- untested, except that it compiles -- downgrades the crash
to an error message by adding a nul glyph when something went wrong.
With this...

(a) we don't look like dorks when file->open crashes the program.
(b) we get a chance at figuring out the cause (by looking at what
    text was rendered blank)
Comment 24 Behdad Esfahbod 2006-01-29 21:38:03 UTC
Created attachment 58354 [details] [review]
committed patch.

2006-01-29  Behdad Esfahbod  <behdad@gnome.org>

        Do not crash if the (win32 typically) shaper fails. Bug #304702:

        * pango/pango-engine.c (_pango_engine_shape_shape): Set num_glyphs to
        zero if failing.

        * pango/pango-shape.c (pango_shape): Instead of crashing if the shaper
        failed to produce any glyphs, print out a warning message containing
        the name of the font, and mark the font such that we don't keep
        printing warning for the same font.  Moreover, inject one whitespace
        glyph per character, so you just see nothing, but everything works
        otherwise.
Comment 25 Behdad Esfahbod 2006-01-29 21:39:22 UTC
This actually closes this bug.  As for why this happenes, that's what I'm working on right now and will be fixed soon, but anyway, the crash is gone.
Comment 26 Raven Long 2006-02-05 02:45:00 UTC
I'm unclear what to do with the patch.  Could someone walk me through how to install it?  Sorry to be ignorant.  I like GIMP, but I have **very** limited programming skills.
Comment 27 Dan Cuconati 2006-03-16 19:20:48 UTC
Can anyone help with how to fix this problem? If there is a release with this problem fixed? Thanks
Comment 28 Behdad Esfahbod 2006-03-16 19:43:25 UTC
This is in Pango 1.12.0 that was released last week.
Comment 29 Dominic Lachowicz 2006-05-31 04:13:05 UTC
*** Bug 343474 has been marked as a duplicate of this bug. ***
Comment 30 Sergej Kotliar 2006-07-26 00:51:50 UTC
*** Bug 348715 has been marked as a duplicate of this bug. ***
Comment 31 André Klapper 2006-11-18 17:09:29 UTC
*** Bug 307881 has been marked as a duplicate of this bug. ***
Comment 32 Michael Schumacher 2006-11-18 17:09:40 UTC
*** Bug 376695 has been marked as a duplicate of this bug. ***
Comment 33 André Klapper 2006-11-18 17:09:46 UTC
*** Bug 325704 has been marked as a duplicate of this bug. ***
Comment 34 Raphaël Quinet 2007-06-13 13:16:38 UTC
*** Bug 446917 has been marked as a duplicate of this bug. ***