You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
WARNING: It is only safe to call this function when there are no active cairo objects remaining, (ie. the appropriate destroy functions have been called as necessary). If there are active cairo objects, this call is likely to cause a crash, (eg. an assertion failure due to a hash table being destroyed when non-empty).
This assert in cairo-ft-font.c fires in cleanup after using TextSymbolizer:
/** * _cairo_ft_unscaled_font_fini: * * Free all data associated with a cairo_ft_unscaled_font_t. * * CAUTION: The unscaled->face field must be NULL before calling this * function. This is because the cairo_ft_unscaled_font_map keeps a * count of these faces (font_map->num_open_faces) so it maintains the * unscaled->face field while it has its lock held. See * _font_map_release_face_lock_held(). **/staticvoid_cairo_ft_unscaled_font_fini (cairo_ft_unscaled_font_t*unscaled)
{
assert (unscaled->face==NULL);
if (unscaled->filename) {
free (unscaled->filename);
unscaled->filename=NULL;
}
}
Breakpoint 1, _cairo_ft_unscaled_font_fini (unscaled=0x7dfbf0) at /build/buildd/cairo-1.13.0~20140204/src/cairo-ft-font.c:450
450 /build/buildd/cairo-1.13.0~20140204/src/cairo-ft-font.c: No such file or directory.
(gdb) bt
#0 _cairo_ft_unscaled_font_fini (unscaled=0x7dfbf0) at /build/buildd/cairo-1.13.0~20140204/src/cairo-ft-font.c:450
#1 0x00007ffff5ce5958 in _cairo_ft_unscaled_font_map_pluck_entry (entry=0x7dfbf0, closure=0x7dda70) at /build/buildd/cairo-1.13.0~20140204/src/cairo-ft-font.c:309
#2 0x00007ffff5c60d84 in _cairo_hash_table_foreach (hash_table=0x7e03a0, hash_callback=hash_callback@entry=0x7ffff5ce5910 <_cairo_ft_unscaled_font_map_pluck_entry>,
closure=closure@entry=0x7dda70) at /build/buildd/cairo-1.13.0~20140204/src/cairo-hash.c:567
#3 0x00007ffff5ce6682 in _cairo_ft_unscaled_font_map_destroy () at /build/buildd/cairo-1.13.0~20140204/src/cairo-ft-font.c:324
#4 _cairo_ft_font_reset_static_data () at /build/buildd/cairo-1.13.0~20140204/src/cairo-ft-font.c:3576
#5 0x00007ffff5c58c83 in cairo_debug_reset_static_data () at /build/buildd/cairo-1.13.0~20140204/src/cairo-debug.c:72
#6 0x0000000000435b19 in testing::run_cleanup () at test/cleanup.hpp:39
#7 0x00000000004343bd in main (argc=3, argv=0x7fffffffd878) at test/visual/run.cpp:197
(Linux Mint 17 (ubuntu trusty))
The text was updated successfully, but these errors were encountered:
I added cairo_debug_reset_static_data just for cleaner valgrind runs. We can remove it and just add a valgrind suppression if needed. But it is still odd that this causes a crash...
test/cleanup.hpp:39 calls cairo_debug_reset_static_data
This assert in cairo-ft-font.c fires in cleanup after using TextSymbolizer:
(Linux Mint 17 (ubuntu trusty))
The text was updated successfully, but these errors were encountered: