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 675243 - random generation error
random generation error
Status: RESOLVED FIXED
Product: gnome-font-viewer
Classification: Core
Component: general
git master
Other Linux
: Normal critical
: ---
Assigned To: gnome-font-viewer-maint
gnome-font-viewer-maint
Depends on:
Blocks:
 
 
Reported: 2012-05-01 14:05 UTC by Christian Persch
Modified: 2012-05-01 21:08 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Persch 2012-05-01 14:05:33 UTC
On some font, I got this critical warnings:

GLib-CRITICAL **: g_rand_int_range: assertion `end > begin' failed
(gdb) where
  • #0 g_log
    at gmessages.c line 791
  • #1 g_return_if_fail_warning
    at gmessages.c line 801
  • #2 g_rand_int_range
    at grand.c line 478
  • #3 g_random_int_range
    at grand.c line 632
  • #4 random_string_from_available_chars
    at sushi-font-widget.c line 175
  • #5 build_strings_for_face
    at sushi-font-widget.c line 215
  • #6 font_face_async_ready_cb
    at sushi-font-widget.c line 500
  • #7 g_simple_async_result_complete
    at gsimpleasyncresult.c line 837
  • #8 font_load_job_callback
    at sushi-font-loader.c line 106

The font is:

(gdb) frame 8
(gdb) p g_file_get_uri(job->file)
$11 = 0x82f3b38 "file:///home/......../.fonts/Tengwar/Tengwarc.ttf"

which is available on the web somewhere.
Comment 1 Cosimo Cecchi 2012-05-01 21:08:22 UTC
Pushed a fix for this to git master, thanks for the report!