We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 3451

Summary: Raspberry Pi Raspbian SDL_assert triggered sometimes at RPI_WarpMouseGlobal
Product: SDL Reporter: Eric wing <ewmailing>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: 2.0.4   
Hardware: ARM   
OS: Linux   

Description Eric wing 2016-10-13 05:19:44 UTC
Sometimes an SDL_assert triggers at RPI_WarpMouseGlobal
src/video/raspberry/SDL_rpimouse.c:232 'update'.

Seen just before the 2.0.4 release, but forgot to file a bug. (Did report on mailing list.)

It doesn't always reproduce, but it seems to happen when you really bog down the system and the event loop can't update for awhile.


The first time I hit this, I wasn't even using the mouse. I don't call any warp mouse functions either.


I can usually reproduce with a simple program that runs an expensive blocking CPU series of functions which blocks the main loop until complete (can be up to 10 seconds).

Sometimes this assertion gets triggered after that. I'm not sure if
they are related or coincidental.


Disabling the SDL_asserts when compiling SDL will avoid this problem. I actually haven't seen any problems with the mouse when I do this. 

On a Raspberry Pi 2 running Raspbian Jessie.
Comment 1 Sam Lantinga 2016-10-13 19:43:36 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL/rev/9e549b5e0f44