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

Segmentation fault when I launch a game #2

Open
NerosTie opened this issue Oct 13, 2017 · 3 comments

Comments

@NerosTie
Copy link

@NerosTie NerosTie commented Oct 13, 2017

When I want to launch a game with the uzem core, Retroarch crashes and this is the result in the terminal:

[1] 15349 segmentation fault (core dumped) retroarch

@RobLoach

This comment has been minimized.

Copy link
Member

@RobLoach RobLoach commented Nov 27, 2017

Same...

retroarch -L uzem_libretro.so 2048.uze
SD Emulation of following files:
Failed to open 2048.srm: No such file or directory
[1]    9421 segmentation fault (core dumped)  retroarch -L uzem_libretro.so 2048.uze
@jet082

This comment has been minimized.

Copy link

@jet082 jet082 commented Oct 4, 2019

This can be fixed by doing the following:

Remove the following line from

libretro-uzem/uzem_libretro.cpp

uzebox.vdrv->framebuffer = framebuffer;

Uncomment the following lines in libretro-uzem/uzem_libretro.cpp

   /*
	struct retro_framebuffer fb = {0};
	fb.width = width;
	fb.height = height;
	fb.access_flags = RETRO_MEMORY_ACCESS_WRITE;
	if (environ_cb(RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER, &fb) && fb.format == RETRO_PIXEL_FORMAT_XRGB8888) {
		uzebox.vdrv->framebuffer = (uint32_t *) fb.data;
		uzebox.vdrv->stride = fb.pitch >> 2;
	} else {
		uzebox.vdrv->framebuffer = framebuffer;
		uzebox.vdrv->stride = width;
	}
   */
@jet082

This comment has been minimized.

Copy link

@jet082 jet082 commented Nov 16, 2019

This is fixed by fdecf52

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.