<div dir="ltr"><div><div>Hi,<br><br></div>It seems there is a type conversion issue in sem_GetTicks. tv_sec is only "long", and on i386-linux the long arithmetic makes the function return a very large value after ~2148 seconds.<br>
After that it appears the frame rate limiting code just keeps calling SDL_SemPost, until it gets to MAX_INT and hangs.<br><br></div><div>You can systematically add 2140 to now.tv_sec in sem_GetTicks to reproduce the bug without waiting 35mn.<br>
</div><div><br></div><div>I generated a patch using the Ubuntu (14.04) package sources, as that's what I have, but the issue comes from one of the debian patches, and I think it should apply cleanly.<br><br></div><div>
Regards,<br></div><div>--<br></div><div>Cédric<br></div></div>