Skip to content

Conversation

@cscd98
Copy link
Contributor

@cscd98 cscd98 commented Oct 25, 2025

Description

When using RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT with sdl2 GL RetroArch will segfault. This is because bind_hw_render is NULL and is unimplemented.

Shared context is required for webOS for the dolphin emulator.

Tested on webOS 10 on a LG G4 TV running the in development dolphin port.

Also tested trying to use Play! emulator which also requires RETRO_ENVIRONMENT_SET_HW_SHARED_CONTEXT which also crashes.

Thread 1 received signal SIGSEGV, Segmentation fault.
0x00000000 in ?? ()
(gdb) bt
#0  0x00000000 in ?? ()
#1  0x0044a37c in gl2_renderchain_init_hw_render (gl=0x1019018, chain=0x17accb0 <EfbInterface::efb+769160>, width=1024, height=1024) at gfx/drivers/gl2.c:2013
#2  0x0044f508 in gl2_init (video=0xfffeebf8, input=0xd70594 <input_driver_st+644>, input_data=0xd70598 <input_driver_st+648>) at gfx/drivers/gl2.c:4575
#3  0x001b5dfc in video_driver_init_internal (video_is_threaded=0xfffeecda, verbosity_enabled=true) at gfx/video_driver.c:3620
#4  0x00022f40 in drivers_init (settings=0xe7ee78, flags=4095, lifetime_flags=0, verbosity_enabled=true) at retroarch.c:1561
#5  0x0002e97c in retroarch_main_init (argc=6, argv=0xfffef394) at retroarch.c:8055
#6  0x00177c20 in content_load (info=0xfffef1d0, p_content=0xd37c3c <runloop_state+1108>) at tasks/task_content.c:1442
#7  0x00179f58 in task_load_content_internal (content_info=0xfffef1d0, loading_from_menu=true, loading_from_cli=true, loading_from_companion_ui=false) at tasks/task_content.c:2608
#8  0x0017a0e8 in task_push_load_content_from_cli (core_path=0x0, fullpath=0x0, content_info=0xfffef1d0, type=CORE_TYPE_PLAIN, cb=0x0, user_data=0x0) at tasks/task_content.c:2704
#9  0x0002b40c in rarch_main (argc=6, argv=0xfffef394, data=0x0) at retroarch.c:6017
#10 0x0002b4bc in main (argc=6, argv=0xfffef394) at retroarch.c:618

Related Issues

webosbrew/retroarch-cores#13

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant