[openal] EINVAL when creating thread on ubuntu 14.04 64bit
timon at egosoft.com
timon at egosoft.com
Thu Sep 8 07:41:28 EDT 2016
Hello,
I'm running into this error: AL lib: (EE) ALCplaybackAlsa_start: Could not create playback thread
On ubuntu 14.04 64bit, this started happening probably around 6months ago I just didn't have the time to investigate and can't really pinpoint why it started happening (whether it was a system update, some configuration change or whatever).
I can however say that pthread_create returns EINVAL and it's due to THREAD_STACK_SIZE being 1mb, everything's fine if it's e.g. 2mb or more or not specified.
So I'd like to suggest making the code a bit more robust, and when pthread_create returns EINVAL there could be a small loop trying 2x, 4x, 8x the THREAD_STACK_SIZE, and as a last resort just the default stack size.
-Timon
--
timon at egosoft.com <timon at egosoft.com>
More information about the openal
mailing list