Created attachment 123246 [details]
apitrace from the starting of the game until entering of a tactical mission and subsequent crash
X-Com Enemy Within from Steam crashes when entering a tactical mission. The globe part of the game works just fine. This happens with AMD Radeon R7 360 gpu which I just installed. I had previously HD5750 (Juniper) which ran the game just fine. The crash happens always when entering a tactical mission.
Apitrace and other logs are attached.
I'm running Gentoo.
Installed package versions:
Created attachment 123251 [details]
Created attachment 123252 [details]
Created attachment 123253 [details]
Created attachment 123254 [details]
Juho-Mikko, thank you for the report. Unfortunately, the apitrace you attached is of the pre-game launcher and not of the game itself. There should be a separate, much larger trace file of the game itself. It should be too large to attach in Bugzilla, use e.g. Google Drive.
That said, I can reproduce the crash here with my local copy of the game.
Created attachment 123257 [details] [review]
Fix a stack explosion
The attached patch should fix the problem. I'm just waiting on hearing back on another bug report that most likely has the same root cause.