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

[cocoagl] Scummvm is crashing Retroarch in MacOS Arm M1 #76

Open
Kulkoba opened this issue Dec 8, 2024 · 11 comments
Open

[cocoagl] Scummvm is crashing Retroarch in MacOS Arm M1 #76

Kulkoba opened this issue Dec 8, 2024 · 11 comments

Comments

@Kulkoba
Copy link

Kulkoba commented Dec 8, 2024

After one of these last updates, it is not possible anymore to launch Scummvm core. Trying to do it crashes Retroarch.

Screenshot 2024-12-08 at 20 37 21
@spleen1981
Copy link
Collaborator

Can you tell what's your last working version?
Also please provide retroarch.log with debug level set both for frontend and core.

@Kulkoba
Copy link
Author

Kulkoba commented Dec 8, 2024

I am sorry not being able to tell what was the last working version. I don't know which version exactly as I don't remember when it was the last time that I have used the core. :-( Perhaps the previous version, or two versions ago, but I can tell with certainty.
I am not sure if this is the log you want but I am sending it here. I hope it helps.
retroarch__2024_12_08__21_17_58.log

@spleen1981 spleen1981 changed the title Scummvm is crashing Retroarch in MacOS Arm M1 [cocoagl] Scummvm is crashing Retroarch in MacOS Arm M1 Dec 11, 2024
@spleen1981
Copy link
Collaborator

Il looks like CocoaGL, doesn't natively support the GLAD loader for OpenGL functions, which is used in ScummVM.
So you should solve the issue disabling HW acceleration in the core options.

@Kulkoba
Copy link
Author

Kulkoba commented Dec 12, 2024

Many thanks for the advice. That helped.
I don't recall changing this core preferences. Were the default preference and core preference files changed on the last version (having the setting enabled)? If that was the case, it may be affecting other Mac M1 users. ;)

@spleen1981
Copy link
Collaborator

Can you check if it works selecting GL video driver instead of GLcore and enabling back hw acceleration from the core settings? Need to close and re-open the core to apply this setting.

@spleen1981
Copy link
Collaborator

@Kulkoba any update?

@Kulkoba
Copy link
Author

Kulkoba commented Feb 6, 2025

I am a bit confused. What do you want to test?
Your solution worked - I have changed the parameters below, disabling HW acceleration, and it's working now.

> ScummVM.opt

scummvm_allow_timing_inaccuracies = "disabled"
scummvm_analog_deadzone = "15"
scummvm_analog_response = "linear"
scummvm_auto_performance_tuner = "disabled"
scummvm_consecutive_screen_updates = "disabled"
scummvm_framerate = "disabled"
scummvm_frameskip_no = "0"
scummvm_frameskip_threshold = "33"
scummvm_frameskip_type = "auto"
scummvm_gamepad_cursor_acceleration_time = "0.2"
scummvm_gamepad_cursor_only = "disabled"
scummvm_gamepad_cursor_speed = "1.0"
scummvm_gui_aspect_ratio = "1"
scummvm_gui_h_res = "720"
scummvm_mapper_a = "RETROK_ESCAPE"
scummvm_mapper_b = "RETROK_RETURN"
scummvm_mapper_down = "RETROKE_DOWN"
scummvm_mapper_l = "RETROKE_LEFT_BUTTON"
scummvm_mapper_l2 = "---"
scummvm_mapper_l3 = "---"
scummvm_mapper_ld = "RETROKE_DOWN"
scummvm_mapper_left = "RETROKE_LEFT"
scummvm_mapper_ll = "RETROKE_LEFT"
scummvm_mapper_lr = "RETROKE_RIGHT"
scummvm_mapper_lu = "RETROKE_UP"
scummvm_mapper_r = "RETROKE_RIGHT_BUTTON"
scummvm_mapper_r2 = "RETROKE_FINE_CONTROL"
scummvm_mapper_r3 = "---"
scummvm_mapper_rd = "RETROK_DOWN"
scummvm_mapper_right = "RETROKE_RIGHT"
scummvm_mapper_rl = "RETROK_LEFT"
scummvm_mapper_rr = "RETROK_RIGHT"
scummvm_mapper_ru = "RETROK_UP"
scummvm_mapper_select = "RETROKE_VKBD"
scummvm_mapper_start = "RETROKE_SCUMMVM_GUI"
scummvm_mapper_up = "RETROKE_UP"
scummvm_mapper_x = "RETROK_F5"
scummvm_mapper_y = "RETROK_SPACE"
scummvm_mouse_fine_control_speed_reduction = "4"
scummvm_mouse_speed = "1.0"
scummvm_samplerate = "48000 Hz"
scummvm_video_hw_acceleration = "disabled"

> retroarch-core-options.cfg

scummvm_allow_timing_inaccuracies = "disabled"
scummvm_analog_deadzone = "15"
scummvm_analog_response = "linear"
scummvm_framerate = "disabled"
scummvm_frameskip_no = "0"
scummvm_frameskip_threshold = "33"
scummvm_frameskip_type = "auto"
scummvm_gamepad_cursor_acceleration_time = "0.2"
scummvm_gamepad_cursor_only = "disabled"
scummvm_gamepad_cursor_speed = "1.0"
scummvm_gui_aspect_ratio = "1"
scummvm_gui_h_res = "720"
scummvm_mapper_a = "RETROK_SPACE"
scummvm_mapper_b = "RETROK_RETURN"
scummvm_mapper_down = "RETROKE_DOWN"
scummvm_mapper_l = "RETROKE_LEFT_BUTTON"
scummvm_mapper_l2 = "---"
scummvm_mapper_l3 = "---"
scummvm_mapper_ld = "RETROKE_DOWN"
scummvm_mapper_left = "RETROKE_LEFT"
scummvm_mapper_ll = "RETROKE_LEFT"
scummvm_mapper_lr = "RETROKE_RIGHT"
scummvm_mapper_lu = "RETROKE_UP"
scummvm_mapper_r = "RETROKE_RIGHT_BUTTON"
scummvm_mapper_r2 = "RETROKE_FINE_CONTROL"
scummvm_mapper_r3 = "---"
scummvm_mapper_rd = "RETROK_DOWN"
scummvm_mapper_right = "RETROKE_RIGHT"
scummvm_mapper_rl = "RETROK_LEFT"
scummvm_mapper_rr = "RETROK_RIGHT"
scummvm_mapper_ru = "RETROK_UP"
scummvm_mapper_select = "RETROKE_VKBD"
scummvm_mapper_start = "RETROKE_SCUMMVM_GUI"
scummvm_mapper_up = "RETROKE_UP"
scummvm_mapper_x = "RETROK_F5"
scummvm_mapper_y = "RETROK_ESCAPE"
scummvm_mouse_fine_control_speed_reduction = "4"
scummvm_mouse_speed = "1.0"
scummvm_samplerate = "48000 Hz"
scummvm_video_hw_acceleration = "disabled"

@spleen1981
Copy link
Collaborator

I am a bit confused. What do you want to test?

My understanding is that with retroarch glcore video driver and HW acceleration activated the core does not work.
I would like to test if with retroarch gl video driver and HW acceleration activated it works or not.

@Kulkoba
Copy link
Author

Kulkoba commented Feb 6, 2025

Ok. I have shown you the parameters that I have now. Just say exactly what must be changed so I can test it.
I have changed scummvm_video_hw_acceleration from "enabled" to "disabled". Do you want it back to "enabled"?

@spleen1981
Copy link
Collaborator

I have changed scummvm_video_hw_acceleration from "enabled" to "disabled". Do you want it back to "enabled"?

Yes please enable it again.
Then from the main retroarch menu go to Settings > Video > Output > Video Driver and select "gl" instead of "glcore".

@Kulkoba
Copy link
Author

Kulkoba commented Feb 6, 2025

Ok, so I have changed scummvm_video_hw_acceleration back to enabled and it crashed again.

On the video output I had "vulkan".

I have selected "gl" and it did not work.
After, I have selected "gl core" and it did not work as well.

After I have disabled the scummvm_video_hw_acceleration parameter, and it is works with vulkan, gl and gl core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants