Skip to content

Segmentation Fault when Resizing the GLMakie Window Generated by plot() on Mac #49

@suzanneEmbury

Description

@suzanneEmbury

I've been getting this Segmentation Fault when I try to resize the plot window on Mac.

julia> plot(results)

julia> 2025-02-17 22:03:17.953 julia[96628:44462446] +[IMKInputSession subclass]: chose IMKInputSession_Modern

[96628] signal 11 (2): Segmentation fault: 11
in expression starting at none:0
gleRunVertexSubmitImmediate at /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine (unknown line)
gleDrawArraysOrElements_ExecCore at /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine (unknown line)
glDrawElements_GL3Exec at /System/Library/Frameworks/OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine (unknown line)
glDrawElements at /<Root>/.julia/packages/ModernGL/BUvna/src/functionloading.jl:73 [inlined]
render at /<Root>/.julia/packages/GLMakie/fj8mE/src/GLAbstraction/GLRender.jl:137
jfptr_render_59283 at /<Root>/.julia/compiled/v1.11/GLMakie/nfnZR_c9LVc.dylib (unknown line)
StandardPostrender at /<Root>/.julia/packages/GLMakie/fj8mE/src/GLAbstraction/GLRenderObject.jl:68
jfptr_StandardPostrender_64209 at /<Root>/.julia/compiled/v1.11/GLMakie/nfnZR_c9LVc.dylib (unknown line)
render at /<Root>/.julia/packages/GLMakie/fj8mE/src/GLAbstraction/GLRender.jl:93
jfptr_render_59334 at /<Root>/.julia/compiled/v1.11/GLMakie/nfnZR_c9LVc.dylib (unknown line)
render at /<Root>/.julia/packages/GLMakie/fj8mE/src/GLAbstraction/GLRender.jl:71
jfptr_render_59294 at /<Root>/.julia/compiled/v1.11/GLMakie/nfnZR_c9LVc.dylib (unknown line)
render at /<Root>/.julia/packages/GLMakie/fj8mE/src/rendering.jl:132
#render_frame#160 at /<Root>/.julia/packages/GLMakie/fj8mE/src/rendering.jl:78
render_frame at /<Root>/.julia/packages/GLMakie/fj8mE/src/rendering.jl:29 [inlined]
refreshwindowcb at /<Root>/.julia/packages/GLMakie/fj8mE/src/screen.jl:955
#82 at /<Root>/.julia/packages/GLMakie/fj8mE/src/screen.jl:959
jfptr_YY.82_60383 at /<Root>/.julia/compiled/v1.11/GLMakie/nfnZR_c9LVc.dylib (unknown line)
_WindowRefreshCallbackWrapper at /<Root>/.julia/packages/GLFW/wmoTL/src/callback.jl:43
unknown function (ip: 0x34446813f)
jlcapi__WindowRefreshCallbackWrapper_60135 at /<Root>/.julia/compiled/v1.11/GLMakie/nfnZR_c9LVc.dylib (unknown line)
-[_NSOpenGLViewBackingLayer display] at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
_ZN2CA5Layer17display_if_neededEPNS_11TransactionE at /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (unknown line)
_ZN2CA7Context18commit_transactionEPNS_11TransactionEdPd at /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (unknown line)
_ZN2CA11Transaction6commitEv at /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore (unknown line)
__62+[CATransaction(NSCATransaction) NS_setFlushesWithDisplayLink]_block_invoke at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
___NSRunLoopObserverCreateWithHandler_block_invoke at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ at /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (unknown line)
__CFRunLoopDoObservers at /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (unknown line)
__CFRunLoopRun at /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (unknown line)
CFRunLoopRunSpecific at /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (unknown line)
RunCurrentEventLoopInMode at /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox (unknown line)
ReceiveNextEventCommon at /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox (unknown line)
_BlockUntilNextEventMatchingListInModeWithFilter at /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox (unknown line)
_DPSNextEvent at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
-[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
-[NSWindow(NSWindowResizing) _resizeWithEvent:] at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
-[NSTitledFrame attemptResizeWithEvent:] at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
-[NSThemeFrame handleMouseDown:] at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
-[NSThemeFrame mouseDown:] at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
-[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
-[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
-[NSWindow(NSEventRouting) sendEvent:] at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
-[NSApplication(NSEventRouting) sendEvent:] at /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (unknown line)
_glfwPollEventsCocoa at /<Root>/.julia/artifacts/7ead0a440ba045155db235bff6602a984f08a651/lib/libglfw.3.4.dylib (unknown line)
PollEvents at /<Root>/.julia/packages/GLFW/wmoTL/src/glfw3.jl:702 [inlined]
pollevents at /<Root>/.julia/packages/GLMakie/fj8mE/src/screen.jl:540
on_demand_renderloop at /<Root>/.julia/packages/GLMakie/fj8mE/src/screen.jl:1027
renderloop at /<Root>/.julia/packages/GLMakie/fj8mE/src/screen.jl:1055
jfptr_renderloop_60030 at /<Root>/.julia/compiled/v1.11/GLMakie/nfnZR_c9LVc.dylib (unknown line)
#79 at /<Root>/.julia/packages/GLMakie/fj8mE/src/screen.jl:916
jfptr_YY.79_60371 at /<Root>/.julia/compiled/v1.11/GLMakie/nfnZR_c9LVc.dylib (unknown line)
jl_apply at /<JRoot>/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XC9YQX9HH2.0/build/default-honeycrisp-XC9YQX9HH2-0/julialang/julia-release-1-dot-11/src/./julia.h:2157 [inlined]
start_task at /<JRoot>/.julia/scratchspaces/a66863c6-20e8-4ff4-8a62-49f30b1f605e/agent-cache/default-honeycrisp-XC9YQX9HH2.0/build/default-honeycrisp-XC9YQX9HH2-0/julialang/julia-release-1-dot-11/src/task.c:1202
Allocations: 78771576 (Pool: 78765716; Big: 5860); GC: 712
Segmentation fault: 11

I'm running on Mac Sequoia 15.2.

To replicate the error:

  1. Use the data in `example_data/ to follow the tutorial steps
  2. Display the plot
  3. Using the plot window's edges or corners, try to resize the window.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions