takashi
Member
|
Crash on EE::Decompress from an thread
Hi,
My game crashed while sound thread is trying to read a file. EE::file::read() calls EE::Decompress. Crash happens when it calles EE::File::decUIntV().
I confirmed the file UID is correct. The possible cause is it is called not from main thread. Is it safe to call EE::file::read() from another thread?
Thanks in advance,
Takashi
|
|
07-01-2016 03:20 AM |
|
Esenthel
Administrator
|
RE: Crash on EE::Decompress from an thread
Hi,
Yes it's safe to play sounds on other threads, use File.read and call Decompress.
Can you try doing a clean rebuild on the engine source code, and on the game source code.
Is it your custom Thread, or the Sound Thread completely managed by the Engine?
Attaching a callstack with screen from Visual Studio or Xcode would help.
I've tried playing sounds right now, but all works as expected.
(Windows Platform, 64-bit, DX11, Project Compression set to LZ4)
Are you using latest source code for both Editor and the Engine?
What happens at the crash? is it an exception, or does the Engine call Exit with an error message?
On what platform does this occur?
Please make sure to use latest Engine Source code.
|
|
07-01-2016 04:06 AM |
|