- Status Closed
- Percent Complete
- Task Type Bugs
- Category User Interface → Simulator
- Assigned To No-one
- Operating System All players
- Severity Low
- Priority Very Low
- Reported Version Daily build (which?)
- Due in Version Undecided
-
Due Date
Undecided
- Votes
- Private
FS#11524 - Simulator crashes on startup
The simulator will crash on start when it loads a theme which contains an SBS that has a comment line prior to the %Vi line and additional viewport definitions after the %Vi line. The same theme loaded after the simulator has successfully started does not cause a crash and operates properly.
This failure started with r27665. A simulator built with r27664 does not crash.
Tested on e200 v1/v2 linux/win32 simulators. The linux version spits out a bunch of "SDL_WaitEvent() error" messages and then gets a Segmentation fault. The windows version just shuts down the window. If run with –debugwps, in each case the "Loading '/.rockbox/wps/foo.sbs'" message is displayed before the crash. The similar messages for
the WPS and FMS are not displayed.
This simple SBS will cause the crash:
#
%Vi(-,0,0,176,194,-)
%V(0,194,-,-,-)
TEST
Substituting the %V with %Vd/%Vl as below will also cause the same crash:
#
%Vi(-,0,0,176,194,-)
%Vd(a)
%Vl(a,0,194,-,-,-)
TEST
Removing the comment line in each case will allow the simulator to start properly.
2010-08-16 12:53
Reason for closing: Fixed
Additional comments about closing: Warning: Undefined array key "typography" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 371 Warning: Undefined array key "camelcase" in /home/rockbox/flyspray/plugins/dokuwiki/inc/parserutils.php on line 407
r27829
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Here is the test theme I used.
Running the test.sbs file attached above through checkwps with -vvv option causes a seg fault. This failure also corresponds to the changes made in r27665. Checkwps built from r27664 does not fail.
./checkwps.sansae200 -vvv test.sbs
Checking test.sbs… WPS parsed OK
[ Viewport
Segmentation fault
Removing the comment on line one and running checkwps again causes it to seg fault on the next comment line. If all comments are removed, checkwps runs properly.
I'm not sure if this is right but it seems to fix the problem. I just added a check for NULL input in find_viewport().