Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RenderArea disabled. #54

Open
FredK712 opened this issue Jan 10, 2024 · 1 comment
Open

RenderArea disabled. #54

FredK712 opened this issue Jan 10, 2024 · 1 comment
Labels
Acknowledged We are aware of this issue and will respond soon Duplicate Duplicate of another issue

Comments

@FredK712
Copy link

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?

@Clemapfel Clemapfel added Duplicate Duplicate of another issue Acknowledged We are aware of this issue and will respond soon labels Jan 12, 2024
@Clemapfel
Copy link
Owner

Clemapfel commented Jan 12, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Acknowledged We are aware of this issue and will respond soon Duplicate Duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants