• Welcome to SCdev.org. Please log in.

Welcome to the new SCdev forums!

Mysterious Moonshell crash? [Supercard DSOne]

Started by Zorlin, March 03, 2008, 09:29:45 AM

Previous topic - Next topic

Zorlin

Hey everyone.
I had just finished writing the "ZEP-1.03-RTM-test" Global.ini file, and lo and behold when I tried to test it out on my DSOne, MoonShell died with a blue screen. The debug text pointed to an error on line 81; however line 81 was an innocent line in comments, in fact appearing in the Supercard Team's global.ini file.

Just to make sure ZEP was at fault, I restored the global.ini file included with the Supercard DSOne. Suddenly Moonshell was working again. I put back the ZEP version, again, bluescreen.
After a bit of thinking, I started systematically sorting through the differences between the official and ZEP global.ini files: and I found the culprit.

A line in ZEP containing the following appears to have been causing the crash (from part of the reworded documentation for the YYYY/MM/DD etc section):

; , - . /

This was from the following block of text:
; Defines the layout used for displaying the date.
; Maximum allowed layout length is 32 characters.
; YYYY = Year [4 digits], YY = Year [Last 2 digits], MM = Month, DD = Day.
; You can use the following characters as seperators [not including ";" ]
, - . /

; In this example, if today was the 15th of December, 2001, the date would read 2001/12/15.
; I could also use YY.MM.DD, which would read as 01.12.15 :)
FormatDate=YYYY/MM/DD


I copied this line into a stock fresh firmware [3.0 SDHC SP2 (using a DSOne SDHC)] and then tried it. Blue. Screen.
I thought the cause might be to do with the fact that I had symbols in a comment, without any letters or numbers preceding the symbols. So I added the letter A at the very front and tried again.
Again I got a blue screen.
Finally, I tried removing the "tab" characters from that, making it
;  , - . /

and lo and behold it suddenly worked.


So, from this, it would appear that using the tab character causes a crash.
The interesting part is, even though this was in *comments* it still affected it.
Seeing as most documentation and comments would contain the tab character, can anyone try and explain why this is happening?

Side note: ZEP-1.03 is still suffering from some major problems. Unfortunately it will still be a little while before it's fully ready for release. All tasks are now *FINISHED*, I'm just working out an issue with Global.ini :(