Author Topic: Black screen hang on startup  (Read 559 times)

lordbah

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Black screen hang on startup
« on: July 25, 2024, 12:02:04 AM »
When I launch RetroFE it creates a full screen black window and simply hangs. Has to be killed by "kill -9 <pid>". Never any image, text, or video, nor any chance to select a system or game since none are ever shown.
PopOS 22.04 (Ubuntu Linux). Display is 1920x1080. RetroFE version 0.10.31.
Last few lines of log.txt:
Code: [Select]
[2024-07-24 18:26:59] [INFO] [Database] Opened database "/home/lordbah/RetroFE/meta.db"
[2024-07-24 18:26:59] [INFO] [Layout] Layout resolution 1920x1080 (scale 1x1)
[2024-07-24 18:26:59] [ERROR] [FontCache] Could not open font: Couldn't open /home/lordbah/RetroFE/layouts/Aeon Nox//Roboto-Bold.ttf
[2024-07-24 18:26:59] [INFO] [Layout] Initialized
[2024-07-24 18:26:59] [INFO] [Layout] Initializing /home/lordbah/RetroFE/layouts/Aeon Nox/splash 16x9 - 0.xml
[2024-07-24 18:26:59] [INFO] [Layout] could not find layout file: /home/lordbah/RetroFE/layouts/Aeon Nox/splash 16x9 - 0.xml
[2024-07-24 18:26:59] [INFO] [Layout] Initializing /home/lordbah/RetroFE/layouts/Aeon Nox/splash - 0.xml
[2024-07-24 18:26:59] [INFO] [Layout] could not find layout file: /home/lordbah/RetroFE/layouts/Aeon Nox/splash - 0.xml
Assuming the font is the problem, the closest font installed is called "Roboto Slab, Bold". But of course it's not in the Aeon Nox directory.
Changing the font name in splash.xml to RobotoSlab-Bold.ttf changed only the error message in log.txt.
Removing any reference to font from splash.xml changed the error message to:
Code: [Select]
[2024-07-24 18:49:22] [ERROR] [FontCache] Could not open font: SDL_RWFromFile(): No file or no mode specifiedIt appears this is the only layout included in the app download. I suppose I could look for other layouts and see how they behave.

lordbah

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Black screen hang on startup
« Reply #1 on: July 25, 2024, 04:47:00 AM »
I tried Ergo Proxy. First it logged a bunch of errors and exited.
Code: [Select]
libpng warning: iCCP: known incorrect sRGB profileAfter a short web search I installed imageMagick and used mogrify to remove the incorrect profiles.
Now, it draws a green outline box in the middle of the screen and then immediately exits with a segmentation fault. This time there are no ERRORs in the log file.
Code: [Select]
[2024-07-24 23:31:05] [INFO] [Layout] Initialized
[2024-07-24 23:31:05] [INFO] [Layout] Initializing /home/lordbah/RetroFE/layouts/Ergo Proxy/layout 16x9 - 0.xml
[2024-07-24 23:31:05] [INFO] [Layout] could not find layout file: /home/lordbah/RetroFE/layouts/Ergo Proxy/layout 16x9 - 0.xml
[2024-07-24 23:31:05] [INFO] [Layout] Initializing /home/lordbah/RetroFE/layouts/Ergo Proxy/layout - 0.xml
[2024-07-24 23:31:05] [INFO] [Layout] could not find layout file: /home/lordbah/RetroFE/layouts/Ergo Proxy/layout - 0.xml
[2024-07-24 23:31:05] [INFO] [CollectionInfoBuilder] Checking for "/home/lordbah/RetroFE/collections/Main/include.txt"
[2024-07-24 23:31:05] [INFO] [CollectionInfoBuilder] Scanning directory "/home/lordbah/RetroFE/collections/Main/roms"
[2024-07-24 23:31:05] [INFO] [Menu] Found: "/home/lordbah/RetroFE/collections/Main/menu.txt"

Aside: in both of these layouts, in splash.xml, do we not want the logo comment closed earlier, perhaps right after the image element? It looks like it's commenting out everything through statusText.

lordbah

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Black screen hang on startup
« Reply #2 on: July 26, 2024, 12:27:08 AM »
segfault with either core or core 1.4.

With the source and vscode/gdb I can see there is an exception but not what it is. (after mogrifying the .png files in Ergo Proxy)
Call stack attached, hopefully. But it's in gstreamer video land.

lordbah

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Black screen hang on startup
« Reply #3 on: July 26, 2024, 04:32:38 AM »
I'm about at my wit's end here. No matter how I build it the retrofe executable does not contain debug symbols according to gdb - though it does say "not stripped".
You know, I suspect that --clean-first isn't really cleaning, since some of the timestamps in RetroFE/Build/CMakeFiles/retrofe.dir are hours too old. link.txt is not showing the -ggdb argument.
I need the --I-said-CLEAN-damn-it argument.

lordbah

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Black screen hang on startup
« Reply #4 on: July 26, 2024, 04:51:20 AM »
Did some manual cleaning and finally got symbols. It's choking in Page.cpp trying to iterate menus. Maybe now I can finally get somewhere.

lordbah

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Re: Black screen hang on startup
« Reply #5 on: July 26, 2024, 06:31:15 PM »
The trigger is collections/MAME/system_artwork/video.mp4, but I'm no closer to understanding why. It plays fine in vlc. Nothing shown in that video is a game that is installed here so I'm just going to delete the file for now.

Pieter Hulshoff

  • Administrator
  • Hero Member
  • *****
  • Posts: 1543
  • Karma: +46/-14
    • View Profile
    • Towel 42
Re: Black screen hang on startup
« Reply #6 on: July 30, 2024, 12:37:02 PM »
Many of the themes on the website are outdated, and haven't been tested with the latest versions of RetroFE. If you can post the entire log.txt I'm willing to have a look for you. I assume you've made changes to the default download though?