RenderArea disabled.
FredK712 opened this issue · comments
On Julia Version 1.10.0 (2023-12-25) this occurred:
julia> using Mousetrap
(process:4142): Core OpenGL-CRITICAL **: 08:05:19.967: ../gdk/macos/gdkmacosglcontext.c:408: invalid share context
(process:4142): mousetrap-WARNING **: 08:05:19.967: In gdk_gl_context_realize:invalid share context
(process:4142): mousetrap-CRITICAL **: 08:05:19.967: In initialize_opengl: Unable to create global OpenGL context, disabling the RenderArea
widget
julia> main() do app::Application
window = Window(app)
#set_child!(window, Label("Hello World!"))
present!(window)
render_area = RenderArea()
rectangle = Rectangle(Vector2f(-0.5, 0.5), Vector2f(1, 1))
add_render_task!(render_area, RenderTask(rectangle))
end
(:4142): mousetrap-CRITICAL **: 08:05:24.460: In RenderArea(): trying to instantiate RenderArea, but the OpenGL component is disabled.
System Information:
Model Name: Mac mini
Model Identifier: Macmini8,1
Processor Name: 6-Core Intel Core i5
Processor Speed: 3 GHz
Number of Processors: 1
Total Number of Cores: 6
System Firmware Version: 2020.61.1.0.0 (iBridge: 21.16.2057.0.0,0)
System Version: macOS 14.2.1 (23C71) (Sonoma)
Kernel Version: Darwin 23.2.0
Could this have to do with OpenGL being deprecated on macOs? Is this issue likely to affect normal use of Mousetrap?
Duplicate of #52, See here for how to disable the warning, you won't be able to use the RenderArea
widget on that machine, currently there's no way to use RenderArea
on the ARM Macs.
I don't have access to a machine for debugging, and I can't emulate the operating system, so I have no way to fix this other than just disabling the widget altogether. It probably is related to Apple deprecating OpenGL.