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
build compiled today is causing crashes for uwp Xbox One #7934
Comments
this isnt a core issue tho its whenever retroarch tries to load something it freezes just fyi |
Can you please find the first bad commit? |
idk how to do that |
Can confirm the issue
|
To be more exact, it's this part of the code. It stops crashing if you remove it. The cause of the crash is the d3d11 driver not being able to initialize properly (does menu_display_reset_textures_list do something weird with driver initialization??)
(nothing really check if it did initialize or not and it just tries to run d3d11_gfx_frame anyway resulting in a crash, I noticed this when working on some things earlier) |
I also noticed these messages in the logs:
Updating assets fixes the issue (did something change recently?), but it probably shouldn't crash when loading fails... |
The reason this happens is that there is a leak of textures that are never freed. This causes |
@alfrix Here is a proper (but very ugly) way to achieve what you were trying to do: diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c
index e57d94c20d..7f450ce532 100644
--- a/menu/drivers/xmb.c
+++ b/menu/drivers/xmb.c
@@ -4925,6 +4925,8 @@ static void xmb_context_reset_textures(
/* Draw Setting icon if the entry has submenus, (aesthetic improvement for incomplete themes) */
if (xmb->depth > 0)
{
+ /* At this point, the _SUBSETTING texture is already loaded. Free it first. */
+ video_driver_texture_unload(&xmb->textures.list[i]);
if (
!menu_display_reset_textures_list(xmb_texture_path(XMB_TEXTURE_SETTING), iconpath, &xmb->textures.list[i], TEXTURE_FILTER_MIPMAP_LINEAR)
) |
I really don't like how the XMB menu driver is getting more and more messy with all these conditionals, now leading to issues like this. And yes you're right @krzys-h, it should never crash just because it's missing some assets. That is absolutely unacceptable. |
I merged this, does this solve the issue? |
Yeah, it does |
Description
when loading a game with any core on xbox one with todays build crashes back to the dashboard
also when you switch menu icon theme it crashes as well
Expected behavior
to work again as it did on January second
Actual behavior
its crashing to the dashboard
Steps to reproduce the bug
compile today's build and try to load a rom with like bsnes balanced for example and it'll crash like i said
Bisect Results
when i tried to compile the latest build this started happening
Version/Commit
v1.7.5
Environment information
Xbox One
The text was updated successfully, but these errors were encountered: