MLXProjects / libaroma

an embedded ui toolkit
Apache License 2.0
12 stars 4 forks source link

[SDL/Win32] drawing text may throw Illegal Instruction on release builds #5

Closed MLXProjects closed 1 year ago

MLXProjects commented 1 year ago

Platform: SDL, Windows 8.1 x86 Compiler: mingw32 gcc 8.1 (dwarf, posix threads variant) Additional info: Freetype 2.10.4 Description: Drawing text may throw Illegal Instruction, crashing the entire program. Weird enough it doesn't happen if freetype is built with debug symbols, even if not ran using a debugger. Will upload a backtrace soon.

MLXProjects commented 1 year ago

Seems that it was caused by a combination of my hardware (intel core duo T2050) and build misconfiguration (enabled SSSE3 which was generating code not supported by my cpu). Fixed with latest commit on 1.2-wip branch, which lowered optimization requirements to SSE2.