DraStic Crash Log: Help?
-
Hi all.
I've been playing Pokemon Platinum lately and really enjoying it with the Drastic emulator, however my ROMs have been randomly crashing. I'll post the output of /dev/shm/runcommand.log below:
Parameters: Executing: xinit /dev/shm/retropie_xinitrc -- vt1 -keeptty X.Org X Server 1.20.4 X Protocol Version 11, Revision 0 Build Operating System: Linux 5.10.17-v8+ aarch64 Raspbian Current Operating System: Linux retropie 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 2021 armv7l Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 video=HDMI-A-1:800x480M@59 smsc95xx.macaddr=E4:5F:01:64:97:B3 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 console=ttyS0,115200 console=tty1 root=PARTUUID=a48955e9-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait loglevel=3 consoleblank=0 plymouth.enable=0 Build Date: 19 April 2021 03:23:36PM xorg-server 2:1.20.4-1+rpt3+deb10u3 (https://www.debian.org/support) Current version of pixman: 0.36.0 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/home/pi/.local/share/xorg/Xorg.0.log", Time: Sun Jan 2 22:42:50 2022 (==) Using system config directory "/usr/share/X11/xorg.conf.d" (II) modeset(0): Initializing kms color map for depth 24, 8 bpc. xrandr: cannot find mode 800x480 Set mode 800x480@59Hz on HDMI-1 Executing (via xinit): /opt/retropie/emulators/drastic/drastic.sh /home/pi/RetroPie/roms/nds/Pokemon - Platinum Version (Rev 10).nds /opt/retropie/configs/nds/drastic ~ matchbox-wm: X error warning (0x60000e): BadWindow (invalid Window parameter) (opcode: 18) matchbox-wm: X error warning (0x60000e): BadWindow (invalid Window parameter) (opcode: 12) Starting DraStic (version r2.5.0.4) Checking directory /opt/retropie/configs/nds/drastic/backup: It's there. Checking directory /opt/retropie/configs/nds/drastic/savestates: It's there. Checking directory /opt/retropie/configs/nds/drastic/config: It's there. Checking directory /opt/retropie/configs/nds/drastic/profiles: It's there. Checking directory /opt/retropie/configs/nds/drastic/unzip_cache: It's there. Checking directory /opt/retropie/configs/nds/drastic/system: It's there. Checking directory /opt/retropie/configs/nds/drastic/input_record: It's there. Checking directory /opt/retropie/configs/nds/drastic/cheats: It's there. Checking directory /opt/retropie/configs/nds/drastic/slot2: It's there. Checking directory /opt/retropie/configs/nds/drastic/scripts: It's there. Setting default configuration. SDL input: Setting default controls for Generic X-Box Pad Loading directory config file /opt/retropie/configs/nds/drastic/config/drastic.cf2 Loading config file /opt/retropie/configs/nds/drastic/config/drastic.cfg 2 joystick(s) found. Got memory mapped buffer at 0xb0d85000 (drastic_mapped_memory.dat) Using memory map offset 0 Direct mapping main RAM to 2000000 Direct mapping main RAM to 2400000 Direct mapping main RAM to 2800000 Direct mapping main RAM to 2c00000 Initializing ARM9 bus-level memory map. Initializing ARM7 bus-level memory map. Initializing CP15. Initializing DMA. video_3d render targets: 0xad3fcc0 0xad63d80 0xad87e40 0xadabf00 ALSA output: requested rate of 44100, got 44100. ALSA output: requested buffer size of 8192, got 8192. ALSA output: requested period size of 2048, got 2048. ALSA output: Using synchronous engine. 1524.326172 cycles per output sample (0.000656 samples per cycle) Loaded 6722 games in database file /opt/retropie/configs/nds/drastic/game_database.xml. Loaded cheat directory from database file /opt/retropie/configs/nds/drastic/usrcheat.dat. Loaded 3204 games. Processing command line options. Loading gamecard file /home/pi/RetroPie/roms/nds/Pokemon - Platinum Version (Rev 10).nds. Attempting to load lua script /opt/retropie/configs/nds/drastic/scripts/Pokemon - Platinum Version (Rev 10).lua Attempting to load lua script /opt/retropie/configs/nds/drastic/scripts/default.lua Initializing screen: scale 1 orientation 0 depth 32 Loading config file /opt/retropie/configs/nds/drastic/config/drastic.cfg Loading config file /opt/retropie/configs/nds/drastic/config/Pokemon - Platinum Version (Rev 10).cfg Config file /opt/retropie/configs/nds/drastic/config/Pokemon - Platinum Version (Rev 10).cfg does not exist. Setting up ARM9 memory map. Setting up ARM7 memory map. Remapping ITCM limit from 0 to 0 Remapping DTCM from 0, 0 to 0, 0 Remapping DTCM from 0, 0 to 27e0000, 4000 Remapping ITCM limit from 0 to 2000000 2 joystick(s) found. Initializing screen: scale 2 orientation 3 depth 32 Gamecard title: 'POKEMON PL' Game code: 45555043 Maker code: 3130 Unit code: 0 Chip size: 131072KB ROM version: 10 Autostart: 0 ROMCTRL 00416657 ARM9 ROM offset: 4000 ARM9 entry PC: 2000800 ARM9 RAM offset: 2000000 ARM9 size: 1023f8 ARM7 ROM offset: 409800 ARM7 entry PC: 2380000 ARM7 RAM offset: 2380000 ARM7 size: 277fc Found game in database: titled Pokemon - Platinum Version (v10). Flash backup: 80000 bytes, ID 00204013 Loading backup file /opt/retropie/configs/nds/drastic/backup/Pokemon - Platinum Version (Rev 10).dsv, 524410 bytes No custom cheat file at /opt/retropie/configs/nds/drastic/cheats/Pokemon - Platinum Version (Rev 10).cht. Checking cycle hacks for gamecode 45555043 Performing recompiler base block translation (2000800 2380000). Calling recompiler event update handler (@ 0x847f130). Remapping ITCM limit from 2000000 to 2000000 Remapping DTCM from 27e0000, 4000 to 27e0000, 4000 DTCM moved off of main RAM, remapping main RAM to it. DMA from gamecard modified code. DMA from gamecard modified code. DMA from gamecard modified code. DMA from gamecard modified code. DMA from gamecard modified code. DMA from gamecard modified code. DMA from/opt/retropie/emulators/drastic/drastic.sh: line 3: 1213 Segmentation fault /opt/retropie/emulators/drastic/drastic "$1" ~ xinit: connection to X server lost waiting for X server to shut down wm_set_cursor_visibility: hidden using XCreatePixmapCursor (II) Server terminated successfully (0). Closing log file.
Does anyone know how to resolve this/stop these random crashes? Is 2GB not enough RAM to run Drastic? I'm using a CM4.
Kind regards,
Ben -
Here’s a link to the video showing the issue. I know it’s probably impossible to fix right now, since DraStic isn’t open source (been taking forever for this to happen…) but this doesn’t happen on other libretro core based emulators. Definitely makes me think it’s related to the sound configuration/ALSA/whatever sound system DrAstic uses.
-
@StonedEdge hi there
can you share the arm64 binary to test?
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.