Skip to content

Black Screen when loading via desktop shortcut 0.10.1 #2781

Closed

Description

@zeinlikezane

If I try running a game via a desktop/steam shortcut with the "target" being "C:\Users\x\x\mGBA\mGBA.exe" "C:\Users\x\x\x\x\Game Title.gba" OR dragging and dropping the rom file onto mgba.exe, the game will start, audio will play, but the screen is entirely black.

Emulation > Reset does not fix it, but shutting down the rom and reloading it via File > Load Rom works.
This does not occur in 0.10.0, the version I was using previously, and just tested again.

It seems to only happen to gba games, as GB/GBC games did not have the issue (though they do load with a seemingly default mgba branded sgba border before loading the game and its border, which I havent seen up until now)

bug report.zip

Activity

  1. added this to the mGBA 0.10.2 milestone on Jan 18, 2023
  2. added
    pendingThis issue needs more investigation by a maintainer to triage appropriately
    port:QtAffects the Qt version (the standard desktop version)
    on Jan 18, 2023
  3. TheGershon commented on Jan 23, 2023

    @TheGershon

    I can mostly corroborate this. The only way I can get it to display properly on OpenGL driver & renderer (windows) is by launching the .exe manually with both options already set to OGL; launching through a shortcut, game launcher (playnite), or rom via filetype association OR having either option set to anything else and switching either to OGL only displays a black screen. I don't get the same behavior as OP with shutting down and reloading the rom, it has to be a cold start of the .exe with OGL already set in order to get any visuals. Can investigate when the regression happened if requested.

  4. endrift commented on Jan 23, 2023

    @endrift
    Member

    I'm pretty sure I can guess when the regression happened, so you don't need to poke at it. I just need to test it myself.

  5. FurbyTime commented on Feb 2, 2023

    @FurbyTime

    I'll add an oddity to this; I am able to see .gbc and .gb files, but NOT .gba games, when launched through a short cut (In this case, through a Steam Shortcut). Like otherwise reported, the same games work when launched through 0.10.0. This issue also is in the latest development build.

  6. pkmnsnfrn commented on Feb 4, 2023

    @pkmnsnfrn

    I have a similar bug but the workaround recommended by zeinlikezane doesn't work for me. Opening .gba files at all results in a black screen, and I have to open mGBA the program on its own and then open a .gba file before I can begin the game.

    https://i.imgur.com/haMJmSQ.gif

  7. added a commit that references this issue on Mar 6, 2023
    5f62445
  8. added a commit that references this issue on Jan 28, 2024
    a7c232b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    pendingThis issue needs more investigation by a maintainer to triage appropriatelyport:QtAffects the Qt version (the standard desktop version)severity:release blockerMajor issues that prevent a release from being cut

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions