This is the bug/patch tracker for Rockbox. Click here for more information.
Quick links: Bugs · Patches · Rockbox frontpage
FS#11524 - Simulator crashes on startup
Attached to Project:
Rockbox
Opened by Michael Chicoine (mc2739) - Sunday, 08 August 2010, 01:29 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Monday, 16 August 2010, 14:53 GMT+2
Opened by Michael Chicoine (mc2739) - Sunday, 08 August 2010, 01:29 GMT+2
Last edited by Jonathan Gordon (jdgordon) - Monday, 16 August 2010, 14:53 GMT+2
|
DetailsThe 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. |
This task depends upon
Closed by Jonathan Gordon (jdgordon)
Monday, 16 August 2010, 14:53 GMT+2
Reason for closing: Fixed
Additional comments about closing: r27829
Monday, 16 August 2010, 14:53 GMT+2
Reason for closing: Fixed
Additional comments about closing: r27829
./checkwps.sansae200 -vvv test.sbs
Checking test.sbs...
WPS parsed OK
[ Viewport
[ Logical line on line 1
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.