Adding C128 emulator to ES did not work / ES crash on startup (Assertion)
-
If I apply the same modifications as you on a stock RetroPie installation, I get the
C128
system appearing (un-themed), but no crashes. The modifications should work (though they're incomplete, since you need to add configuration for the emulators). What's the full path of the file you've modified ?You say the system doesn't show up and that ES crashes - when exactly does ES crash ? I assume it's not on start, since you're able to check that the C128 system doesn't show. The log file warnings are ok, they appear on the stock Carbon theme even with the default settings.
-
I have edited /opt/retropie/configs/all/emulationstation/es_systems.cfg.
For emulator configuration i have used:
/opt/retropie/configs/c128/emulators.cfgvice-x64 = "/opt/retropie/emulators/vice/bin/vice.sh x64 %ROM%" default = "vice-x128" vice-x64sc = "/opt/retropie/emulators/vice/bin/vice.sh x64sc %ROM%" vice-x128 = "/opt/retropie/emulators/vice/bin/vice.sh x128 %ROM%" vice-xpet = "/opt/retropie/emulators/vice/bin/vice.sh xpet %ROM%" vice-xplus4 = "/opt/retropie/emulators/vice/bin/vice.sh xplus4 %ROM%" vice-xvic = "/opt/retropie/emulators/vice/bin/vice.sh xvic %ROM%" vice-xvic-cart = "/opt/retropie/emulators/vice/bin/vice.sh xvic %ROM% -cartgene$
After powering on the PI the boot process starts and ES is loading.
I see that the emulators were loaded (Amiga, Commodore 64, Commodore 128).
Last line from ES is Done. Then ES crashes with
emulationstation: /home/pi/RetroPie-Setup/tmp/build/emulationstation/es-core/src/resources/Font.cpp:398: void Font::renderTextCache(TextCache*): Assertion `*it->textureIdPtr != 0' failed. Aborted
to the prompt/shell.
Any Ideas?
-
@Tom74_swc64 The error usually indicates an installation problem (missing fonts), but this would usually happen even without the new system added. Can you try naming your system differently - and not
c128
? Just to test. -
I have renamed the system from C128 to commod.
Now it is working and ES did not crash. After I select the Commodore 128 emulator the next crash occurs.
see below
┌──────────────────────────────────────────────────────────┐ │ Emulation Station crashed! │ │ │ │ If this is your first boot of RetroPie - make sure you │ │ are using the correct image for your system. │ │ │ │ Check your rom file/folder permissions and if running on │ │ a Raspberry Pi, make sure your gpu_split is set high │ │ enough and/or switch back to using carbon theme. │ │ │ │ For more help please use the RetroPie forum. │ │ │ │ │ │ │ │ │ │ │ │ │ ├──────────────────────────────────────────────────────────┤ │ < OK > │ └──────────────────────────────────────────────────────────┘
Jun 16 20:38:46 lvl2: EmulationStation - v2.9.3rp, built Jun 11 2020 - 05:13:27 Jun 16 20:38:46 lvl2: Parsing XML file "/opt/retropie/supplementary/emulationstation/resources/mamenames.xml"... Jun 16 20:38:46 lvl2: Parsing XML file "/opt/retropie/supplementary/emulationstation/resources/mamebioses.xml"... Jun 16 20:38:46 lvl2: Parsing XML file "/opt/retropie/supplementary/emulationstation/resources/mamedevices.xml"... Jun 16 20:38:46 lvl2: Creating window... Jun 16 20:38:47 lvl2: Created window successfully. Jun 16 20:38:47 lvl2: GL vendor: Broadcom Jun 16 20:38:47 lvl2: GL renderer: V3D 4.2 Jun 16 20:38:47 lvl2: GL version: 2.1 Mesa 19.3.2 Jun 16 20:38:47 lvl2: Checking available OpenGL extensions... Jun 16 20:38:47 lvl2: ARB_texture_non_power_of_two: ok Jun 16 20:38:47 lvl2: Added known joystick Thrustmaster Thrustmaster analog gamepad (instance ID: 0, device index: 0) Jun 16 20:38:48 lvl2: Loading system config file /home/pi/.emulationstation/es_systems.cfg... Jun 16 20:38:48 lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/amiga/gamelist.xml"... Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/amiga/theme.xml" (from included file "/etc/emulationstation/themes/carbon/amiga/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/amstradcpc/theme.xml" (from included file "/etc/emulationstation/themes/carbon/amstradcpc/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "amstradcpc" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/arcade/theme.xml" (from included file "/etc/emulationstation/themes/carbon/arcade/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "arcade" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/atari2600/theme.xml" (from included file "/etc/emulationstation/themes/carbon/atari2600/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "atari2600" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/atari5200/theme.xml" (from included file "/etc/emulationstation/themes/carbon/atari5200/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "atari5200" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/atari7800/theme.xml" (from included file "/etc/emulationstation/themes/carbon/atari7800/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "atari7800" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/atari800/theme.xml" (from included file "/etc/emulationstation/themes/carbon/atari800/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "atari800" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/atarilynx/theme.xml" (from included file "/etc/emulationstation/themes/carbon/atarilynx/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "atarilynx" has no games! Ignoring it. Jun 16 20:38:48 lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/c64/gamelist.xml"... Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/c64/theme.xml" (from included file "/etc/emulationstation/themes/carbon/c64/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: Unknown platform for system "commod" (platform "commod" from list "commod") Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/theme.xml" (from included file "/etc/emulationstation/themes/carbon/carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/theme.xml" could not find file "./art/controller/${system.theme}.svg" (which resolved to "/etc/emulationstation/themes/carbon/art/controller/commod.svg") Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/theme.xml" could not find file "./art/logo/${system.theme}.svg" (which resolved to "/etc/emulationstation/themes/carbon/art/logo/commod.svg") Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/theme.xml" could not find file "./art/logo/${system.theme}.svg" (which resolved to "/etc/emulationstation/themes/carbon/art/logo/commod.svg") Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/theme.xml" could not find file "./art/controller/${system.theme}.svg" (which resolved to "/etc/emulationstation/themes/carbon/art/controller/commod.svg") Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/theme.xml" could not find file "./art/logo/${system.theme}.svg" (which resolved to "/etc/emulationstation/themes/carbon/art/logo/commod.svg") Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/theme.xml" could not find file "./art/controller/${system.theme}.svg" (which resolved to "/etc/emulationstation/themes/carbon/art/controller/commod.svg") Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/theme.xml" could not find file "./art/logo/${system.theme}.svg" (which resolved to "/etc/emulationstation/themes/carbon/art/logo/commod.svg") Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/theme.xml" could not find file "./art/controller/${system.theme}.svg" (which resolved to "/etc/emulationstation/themes/carbon/art/controller/commod.svg") Jun 16 20:38:48 lvl1: Error - folder with path "/home/pi/RetroPie/roms/coleco" is not a directory! Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/colecovision/theme.xml" (from included file "/etc/emulationstation/themes/carbon/colecovision/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "coleco" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/fba/theme.xml" (from included file "/etc/emulationstation/themes/carbon/fba/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "fba" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/fds/theme.xml" (from included file "/etc/emulationstation/themes/carbon/fds/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "fds" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/gamegear/theme.xml" (from included file "/etc/emulationstation/themes/carbon/gamegear/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "gamegear" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/gb/theme.xml" (from included file "/etc/emulationstation/themes/carbon/gb/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "gb" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/gba/theme.xml" (from included file "/etc/emulationstation/themes/carbon/gba/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "gba" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/gbc/theme.xml" (from included file "/etc/emulationstation/themes/carbon/gbc/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "gbc" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/mame/theme.xml" (from included file "/etc/emulationstation/themes/carbon/mame/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "mame-libretro" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/mastersystem/theme.xml" (from included file "/etc/emulationstation/themes/carbon/mastersystem/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "mastersystem" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/megadrive/theme.xml" (from included file "/etc/emulationstation/themes/carbon/megadrive/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "megadrive" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Error - folder with path "/home/pi/RetroPie/roms/msx" is not a directory! Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/msx/theme.xml" (from included file "/etc/emulationstation/themes/carbon/msx/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "msx" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/n64/theme.xml" (from included file "/etc/emulationstation/themes/carbon/n64/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "n64" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/neogeo/theme.xml" (from included file "/etc/emulationstation/themes/carbon/neogeo/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "neogeo" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/nes/theme.xml" (from included file "/etc/emulationstation/themes/carbon/nes/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "nes" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/ngp/theme.xml" (from included file "/etc/emulationstation/themes/carbon/ngp/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "ngp" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/ngpc/theme.xml" (from included file "/etc/emulationstation/themes/carbon/ngpc/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "ngpc" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/pcengine/theme.xml" (from included file "/etc/emulationstation/themes/carbon/pcengine/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "pcengine" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/psx/theme.xml" (from included file "/etc/emulationstation/themes/carbon/psx/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "psx" has no games! Ignoring it. Jun 16 20:38:48 lvl2: Parsing XML file "/home/pi/.emulationstation/gamelists/retropie/gamelist.xml"... Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/retropie/theme.xml" (from included file "/etc/emulationstation/themes/carbon/retropie/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/sega32x/theme.xml" (from included file "/etc/emulationstation/themes/carbon/sega32x/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "sega32x" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/segacd/theme.xml" (from included file "/etc/emulationstation/themes/carbon/segacd/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "segacd" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/sg-1000/theme.xml" (from included file "/etc/emulationstation/themes/carbon/sg-1000/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "sg-1000" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/snes/theme.xml" (from included file "/etc/emulationstation/themes/carbon/snes/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "snes" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/vectrex/theme.xml" (from included file "/etc/emulationstation/themes/carbon/vectrex/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "vectrex" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/zxspectrum/theme.xml" (from included file "/etc/emulationstation/themes/carbon/zxspectrum/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: System "zxspectrum" has no games! Ignoring it. Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/auto-allgames/theme.xml" (from included file "/etc/emulationstation/themes/carbon/auto-allgames/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/auto-favorites/theme.xml" (from included file "/etc/emulationstation/themes/carbon/auto-favorites/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/auto-lastplayed/theme.xml" (from included file "/etc/emulationstation/themes/carbon/auto-lastplayed/../carbon.xml") could not find file "" Jun 16 20:38:48 lvl1: Warning from theme "/etc/emulationstation/themes/carbon/custom-collections/theme.xml" (from included file "/etc/emulationstation/themes/carbon/custom-collections/../carbon.xml") could not find file "" Jun 16 20:38:49 lvl3: SystemView::getViewElements() Jun 16 20:39:08 lvl3: UIModeController::logInput( Thrustmaster Thrustmaster analog gamepad ):Hat 0 right, isMappedTo= left, , value=2 Jun 16 20:39:08 lvl3: UIModeController::logInput( Thrustmaster Thrustmaster analog gamepad ):Hat 0 neutral?, isMappedTo= down, left, right, up, , value=0 Jun 16 20:39:09 lvl3: UIModeController::logInput( Thrustmaster Thrustmaster analog gamepad ):Hat 0 right, isMappedTo= left, , value=2 Jun 16 20:39:10 lvl3: UIModeController::logInput( Thrustmaster Thrustmaster analog gamepad ):Hat 0 neutral?, isMappedTo= down, left, right, up, , value=0 Jun 16 20:39:13 lvl3: UIModeController::logInput( Thrustmaster Thrustmaster analog gamepad ):Button 2, isMappedTo= a, , value=1 Segmentation fault
Now it throws a Segmentation fault! :(
-
@Tom74_swc64 said in Adding C128 emulator to ES did not work / ES crash on startup (Assertion):
Now it throws a Segmentation fault! :(
That's unusual. What games do you have in your
c128
(commond
) folder ? Do you have an existinggamelist.xml
there also ? -
So I have sorted some more issues with using proper naming.
Now I changed the name to commodore128.Now I have the the following error left in the log.
Jun 16 22:09:39 lvl1: Unknown platform for system "commodore128" (platform "commodore128" from list "commodore128")
How do I fix this?
What is the correct content for the sdl-vicerc file for the Commodore 128?
I copied the file from the c64 directory as reference.
[C64] Mouse=1 VICIIDoubleSize=0 VICIIDoubleScan=0 VICIIFilter=0 VICIIVideoCache=0 SDLWindowWidth=384 SDLWindowHeight=272 SidEngine=0 VICIIFullscreen=1
-
@Tom74_swc64 said in Adding C128 emulator to ES did not work / ES crash on startup (Assertion):
Jun 16 22:09:39 lvl1: Unknown platform for system "commodore128" (platform "commodore128" from list "commodore128")
How do I fix this?
That's internal to EmulationStation and cannot be solved without modifying the source and re-compiling. The
platform
tag is used for scraping, so you can just replace it withc64
in the.xml
file to get rid of the warning.What is the correct content for the sdl-vicerc file for the Commodore 128?
The section name
[C64]
is the name of the emulator, so I guess you can duplicate the section name with[C128]
. Adjust the settings in-game from Video and then save them, they should be added/saved in the configuration file. -
Thank you for the information.
There is still a little problem.
When I start the emulator a little screen is shown in the lower left corner.
How can I switch the emulated screen to fullscreen?
Or the screen centered with the original aspect ratio /resolution of the C128 only?
I have edited /opt/retropie/configs/commodore128/sdl-vicerc with
[C128] Mouse=1 VICIIDoubleSize=0 VICIIDoubleScan=0 VICIIFilter=0 VICIIVideoCache=0 SDLWindowWidth=1070 SDLWindowHeight=918 SidEngine=0 VICIIFullscreen=1
without any effect.
(edit: What about the files in ~/.vice [emulators.cfg, sdl-vicerc, vice.log] ?
C=64 & C=128 do have different configurations.
The files in the ~/.vice directory have set the c64 configuration.)Via the options menu I can switch to fullscreen but the setting is not saved.
Next time the emulation starts in the little window again (see also attached picture).*** VICE Version 3.4, rev 37670 *** Welcome to x128, the free portable C128 Emulator. SDLVideo: Available Renderers: opengl opengles2 opengles software SDLVideo: SDL2 renderer driver selected: opengl SDLVideo: VICII (active) 768x544 32bpp SDLVideo: VDC (inactive) 856x576 32bpp Main CPU: starting at ($FFFC). Main CPU: RESET. Drive 8: RESET. SDLVideo: Resolution anomaly leaving fullscreen: expected 719x544, got 3840x2160
-
@Tom74_swc64 said in Adding C128 emulator to ES did not work / ES crash on startup (Assertion):
Via the options menu I can switch to fullscreen but the setting is not saved.
Did you try to save the configuration through the emulator's menu ? It should save to the same file, so you don't have to guess what needs to entered tehre.
-
Great. That worked. The configuration has been saved to the file.
Regarding the theme for the Commodore 128...
I have found the Commodore 128 system logo from UDb23 (c128_ingo_udb.svg)
Is there also a keyboard image (red) for the C128 available like for the C64?
I haven't found anything yet.Then my system integration into ES is nearly perfect. :)
Thank you for the support again it was a great help to sort out the errors!
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.