Skip to content

imshow() crashed #318

@dk-zen

Description

@dk-zen

When I run the following command, imshow crashed.
`julia> using ImageView, Images

julia> using TestImages

julia> img = testimage("mandrill")

julia> imshow(img)`

The exception is as follows.

Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x64f9abe0 -- FcPatternObjectPosition at /workspace/srcdir/fontconfig-2.16.0/src\fcpat.c:464
in expression starting at none:0
FcPatternObjectPosition at /workspace/srcdir/fontconfig-2.16.0/src\fcpat.c:464
FcPatternObjectFindElt at /workspace/srcdir/fontconfig-2.16.0/src\fcpat.c:492 [inlined]
FcPatternObjectGetWithBinding at /workspace/srcdir/fontconfig-2.16.0/src\fcpat.c:959
FcPatternObjectGet at /workspace/srcdir/fontconfig-2.16.0/src\fcpat.c:979 [inlined]
FcPatternObjectGetDouble at /workspace/srcdir/fontconfig-2.16.0/src\fcpat.c:1029
gsk_reload_font at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_device_lookup_glyph_image at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)   
gsk_gpu_node_processor_add_glyph_node at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_node.part.21 at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_transform_node at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_node.part.21 at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_container_node at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_node.part.21 at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_container_node at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_node.part.21 at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_transform_node at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_node.part.21 at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_container_node at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_node.part.21 at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_rounded_clip_node at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_node.part.21 at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_container_node at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_node.part.21 at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_transform_node at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_add_node.part.21 at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_node_processor_process at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)      
gsk_gpu_frame_render at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_gpu_renderer_render at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gsk_renderer_render at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gtk_widget_render at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
surface_render at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
_gdk_marshal_BOOLEAN__BOXEDv at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)        
_g_closure_invoke_va at C:\Users\whkdi\.julia\artifacts\c3147644202f8802c6131410ffd73f7e41db31f8\bin\libgobject-2.0-0.dll (unknown line)
signal_emit_valist_unlocked at C:\Users\whkdi\.julia\artifacts\c3147644202f8802c6131410ffd73f7e41db31f8\bin\libgobject-2.0-0.dll (unknown line)   
g_signal_emit at C:\Users\whkdi\.julia\artifacts\c3147644202f8802c6131410ffd73f7e41db31f8\bin\libgobject-2.0-0.dll (unknown line)
gdk_surface_paint_on_clock at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
_g_closure_invoke_va at C:\Users\whkdi\.julia\artifacts\c3147644202f8802c6131410ffd73f7e41db31f8\bin\libgobject-2.0-0.dll (unknown line)
signal_emit_valist_unlocked at C:\Users\whkdi\.julia\artifacts\c3147644202f8802c6131410ffd73f7e41db31f8\bin\libgobject-2.0-0.dll (unknown line)   
g_signal_emit at C:\Users\whkdi\.julia\artifacts\c3147644202f8802c6131410ffd73f7e41db31f8\bin\libgobject-2.0-0.dll (unknown line)
gdk_frame_clock_paint_idle at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
gdk_frame_clock_flush_idle at C:\Users\whkdi\.julia\artifacts\9893e8388ca9d6ea6161e17ec8c6dc1d3f1a2736\bin\libgtk-4-1.dll (unknown line)
g_timeout_dispatch at C:\Users\whkdi\.julia\artifacts\c3147644202f8802c6131410ffd73f7e41db31f8\bin\libglib-2.0-0.dll (unknown line)
g_main_dispatch at C:\Users\whkdi\.julia\artifacts\c3147644202f8802c6131410ffd73f7e41db31f8\bin\libglib-2.0-0.dll (unknown line)
g_main_context_iterate_unlocked.isra.25 at C:\Users\whkdi\.julia\artifacts\c3147644202f8802c6131410ffd73f7e41db31f8\bin\libglib-2.0-0.dll (unknown line)
g_main_context_iteration at C:\Users\whkdi\.julia\artifacts\c3147644202f8802c6131410ffd73f7e41db31f8\bin\libglib-2.0-0.dll (unknown line)
#239 at C:\Users\whkdi\.julia\packages\Gtk4\JO9up\src\GLib\loop.jl:83
unknown function (ip: 000001f3fd524134)
g_sigatom at C:\Users\whkdi\.julia\packages\Gtk4\JO9up\src\GLib\signals.jl:211
unknown function (ip: 000001f3fd523fdf)
glib_main at C:\Users\whkdi\.julia\packages\Gtk4\JO9up\src\GLib\loop.jl:80
unknown function (ip: 000001f3fd5231c4)
jl_apply at C:/workdir/src\julia.h:2157 [inlined]
start_task at C:/workdir/src\task.c:1202
Allocations: 48699033 (Pool: 48694550; Big: 4483); GC: 83

My julia environment:

julia> versioninfo()
Julia Version 1.11.6
Commit 9615af0f26 (2025-07-09 12:58 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 22 × Intel(R) Core(TM) Ultra 7 155H
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, alderlake)
Threads: 1 default, 0 interactive, 1 GC (on 22 virtual cores)
Environment:
  JULIA_SSL_CA_ROOTS_PATH =

(@v1.11) pkg> st
Status `C:\Users\whkdi\.julia\environments\v1.11\Project.toml`
  [336ed68f] CSV v0.10.15
  [13f3f980] CairoMakie v0.15.4
  [35d6a980] ColorSchemes v3.30.0
  [5ae59095] Colors v0.13.1
  [717857b8] DSP v0.8.4
  [a93c6f00] DataFrames v1.7.0
  [8bb1440f] DelimitedFiles v1.9.1
  [7a1cc6ca] FFTW v1.9.0
  [86fae568] ImageView v0.12.6
  [916415d5] Images v0.26.2
⌅ [a98d9a8b] Interpolations v0.15.1
  [ee78f7c6] Makie v0.24.4
  [b98c9c47] Pipe v1.3.0
  [10745b16] Statistics v1.11.1
  [5e47fb64] TestImages v1.9.0
  [ade2ca70] Dates v1.11.0
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use `status --outdated`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions