Aloshi / EmulationStation

A flexible emulator front-end supporting keyboardless navigation and custom system themes.
MIT License
2.08k stars 905 forks source link

Bug ES2 with Dgen 1.33 #298

Closed ian57 closed 9 years ago

ian57 commented 10 years ago

Hi Aloshi, thanks for your amazing software, it helps me to build my own arcade distro on Pi here https://sourceforge.net/projects/raspicade/

Actually I have an issue using ES2 (stable and unstable from github) with Dgen 1.33 (last release)

When quitting a game from Dgen, Raspicade freezes... with the error (dmesg command) :

[   74.341949] bcm2835_audio_set_ctls:558  Controls set for stream 0
[   75.384679] bcm2835_audio_set_ctls:558  Controls set for stream 0
[   75.784440] bcm2835_audio_set_ctls:558  Controls set for stream 0
[   77.375660] Unable to handle kernel paging request at virtual address da7eb000
[   77.375666] pgd = d6344000
[   77.375677] [da7eb000] *pgd=162f1811, *pte=00000000, *ppte=00000000
[   77.375687] Internal error: Oops: 807 [#1] PREEMPT ARM
[   77.375799] Unable to handle kernel paging request at virtual address da7eb000
[   77.375802] pgd = d6344000
[   77.375810] [da7eb000] *pgd=162f1811, *pte=00000000, *ppte=00000000
[   77.375816] Internal error: Oops: 807 [#2] PREEMPT ARM
[   77.375890] KGDB: re-enter exception: ALL breakpoints killed
[   77.375898] ---[ end trace e0a85f88f87742ff ]---
[   77.375910] note: dgen[2331] exited with preempt_count 5

This issue does not appear with Picodrive with ES2, or using Dgen 1.33 with ES1.

Thanks again for your amazing work

GM-Script-Writer-62850 commented 10 years ago

does the emulationstation applications output provide anything

ian57 commented 10 years ago

In fact raspicade does not freeze I can work through ssh, only ES2 graphical gui is freezing. Will check the log...

pi@raspicade ~/.emulationstation $ more es_log.txt 
lvl2:   EmulationStation - v2.0.0-rc1, built Sep  9 2014 - 21:18:27
lvl2:   Creating surface...
lvl2:   Created window successfully.
lvl2:   Added known joystick THT THT Arcade console 2P USB Player (instance ID: 0, device index: 0)
lvl2:   Checking available OpenGL extensions...
lvl2:    ARB_texture_non_power_of_two: MISSING
lvl2:   Loading system config file /home/pi/.emulationstation/es_systems.cfg...
lvl1:     Unknown platform for system "mame" (platform "mame" from list "mame")
lvl2:   Parsing XML file "/home/pi/mame4all-pi/roms/gamelist.xml"...
lvl2:   Parsing XML file "/home/pi/.emulationstation/gamelists/Stella/gamelist.xml"...
lvl2:   Parsing XML file "/home/pi/pifba/roms/gamelist.xml"...
lvl2:   Parsing XML file "/home/pi/gngeo-pi/roms/gamelist.xml"...
lvl2:   Parsing XML file "/home/pi/pisnes/roms/gamelist.xml"...
lvl2:   Parsing XML file "/home/pi/PicoDrive/romfelix/gamelist.xml"...
lvl2:   Parsing XML file "/home/pi/PicoDrive/roms/gamelist.xml"...
lvl2:    req sound [detailed.launch]
lvl2:      (missing)

that's all

and dmesg error

[   85.011419] Unable to handle kernel paging request at virtual address da6eb000
[   85.011426] pgd = d5e7c000
[   85.011436] [da6eb000] *pgd=1733f811, *pte=00000000, *ppte=00000000
[   85.011445] Internal error: Oops: 807 [#1] PREEMPT ARM
[   85.011548] Unable to handle kernel paging request at virtual address da6eb000
[   85.011552] pgd = d5e7c000
[   85.011559] [da6eb000] *pgd=1733f811, *pte=00000000, *ppte=00000000
[   85.011563] Internal error: Oops: 807 [#2] PREEMPT ARM
[   85.011619] KGDB: re-enter exception: ALL breakpoints killed
[   85.011629] ---[ end trace 273565acf73adc73 ]---
[   85.011638] note: dgen[2267] exited with preempt_count 5
[  106.050740] INFO: rcu_preempt detected stalls on CPUs/tasks: {} (detected by 0, t=2102 jiffies, g=2203, c=2202, q=163)
[  106.050744] INFO: Stall ended before state dump start
GM-Script-Writer-62850 commented 10 years ago

why/how are your gamelist in your roms folder and not in ~/.emulationstation/gamelists/$SYSTEM/gamelist.xml

GM-Script-Writer-62850 commented 10 years ago

are you sure the emulator is exiting?

ian57 commented 10 years ago

Because I use them with ES1 too. Will check for the emu

Dgen is quitting when using it in console mode. but When quitting ES2 to console I need to type CTRL-C to get the console... seems to be stuck on something

Aloshi commented 9 years ago

Another thing to check: are you sure your version of the Raspberry Pi firmware is up-to-date? This sounds like a problem with DGen or maybe even SDL2, which is unfortunately not something ES can fix.

ian57 commented 9 years ago

Ok thanks, I've done that yesterday and I had another problem (last kernel 3.12.33+ + firmware), with the joystick configurator. When pressing joystick button to configure, the configuration window appreared behind the very first windows asking for pressing to configure. The configuration works, but I needed to make it in "blind".

I recompiled SDL 2.01, and after last release of ES2 (from git pull) with the new firmware, It seems to fix the the "configuration problem". I did not already test this with DGEN. Will make a try and let you know. Another question : when getting back to ES2 from a game, the time is longer than ES1 and we have the "console view" with linux text, is it possible to have the black screen with the white point to mask this? Again thanks for your amazing software.

GM-Script-Writer-62850 commented 9 years ago

in the part where you have ES startup run the clear command before starting ES and start es like this clear;emulationstation > /dev/null 2>&1 all output will be nullified making debugging it very hard, but ti will leaves solid black screen when you start/exit a emulator on retropie i believe es is started from /etc/.profile on the last list, might be ~/.bashrc

ian57 commented 9 years ago

Thanks a lot for the tip. Will try that quickly. But most of the time, the console text comes from the emulators themselves... Will make that to emulators run commands too.

ian57 commented 9 years ago

Hi,

The compilation of SDL 2.01, and after last release of ES2 (from git pull) with the new firmware fix the config program problem I had.

This manipulation fixes the DGEN problem too. Thanks a lot.

The tip given by GM-Script-Writer-62850 is working quite good. I added my quiet mode to this and it is now perfect, no more text on my console during the way back to ES quitting a game, no blincking ...

to get ultra quiet boot add this line in cmdline.txt... now linux boot log are send to tty2 and you're watching tty1 :)

## Quiet Boot Without Prompt Cursor
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty2 loglevel=3 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline nortc waitusb=5 rootwait logo.nologo vt.global_cursor_default=0 quiet