FS#7051 - JPEG viewer crashes simulator

Attached to Project: Rockbox
Opened by Steve Bavin (pondlife) - Thursday, 19 April 2007, 08:30 GMT
Last edited by Steve Bavin (pondlife) - Wednesday, 01 August 2007, 09:12 GMT
Task Type Bugs
Category Simulator
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


Recipe, for the H300 simulator:

1) Start playback from the file viewer.
2) Press SELECT to go from the WPS to the file viewer.
3) Select a JPG file.

If this doesn't crash, exit the JPG viewer, press PLAY to resume then try again.

Totally reproducible here - GDB gives the following:

Program received signal SIGSEGV, Segmentation fault.
[Switching to thread 2264.0x91c]
SDL_mutexP (mutex=???) at SDL_sysmutex.c:90
90 SDL_sysmutex.c: No such file or directory.
in SDL_sysmutex.c
(gdb) bt
#0 SDL_mutexP (mutex=???) at SDL_sysmutex.c:90

This task depends upon

Closed by  Steve Bavin (pondlife)
Wednesday, 01 August 2007, 09:12 GMT
Reason for closing:  Fixed
Comment by Peter D'Hoye (petur) - Thursday, 19 April 2007, 22:43 GMT
Tried with an 1.1MB JPEG (3 megapixel) and could not reproduce. How big is your JPEG file?
Comment by Steve Bavin (pondlife) - Friday, 20 April 2007, 06:13 GMT
32K - I've attached an example, and my config. Like I said, it doesn't do it first time every time, so keep quitting the JPEG viewer, resume playback and try again.
Comment by Peter D'Hoye (petur) - Tuesday, 01 May 2007, 21:19 GMT
I really am unable to reproduce this at all. Music just stops because of the buffer being taken.
fyi, maybe it's because I'm using a song of Björk playing during the test ;)
Comment by Steve Bavin (pondlife) - Wednesday, 02 May 2007, 10:04 GMT
I'm also playing Björk - as you probably guessed from the cover. Here's the exact steps I'm taking.. I modified the above config to start at Main Menu first.

1) Start simulator, select Files, press RIGHT.
2) Select Björk (note that this root directory contains 500 subdirectories), press RIGHT.
3) Select Post, press RIGHT.
4) Select 07 Isobel.mp3, press RIGHT. Playback begins.
5) Allow it to play for 1 minute. Press SELECT. Select cover.jpg (I note the icon appears to be corrupt, didn't notice this before though), press RIGHT.

CRASH! This happens first time most times, if not I exit the JPEG viewer and repeat step 5 from the WPS, it has always happened second time.

I attach my wps and icons directories in case they are relevant. I certainly suspect the icon code... (11.4 KiB) (278.6 KiB)
Comment by Steve Bavin (pondlife) - Wednesday, 02 May 2007, 10:08 GMT
Follow up - it still crashes with default config (although I do have to do a bit more navigating to cover.jpg as "follow playlist" is disabled).