http://bugs.winehq.org/show_bug.cgi?id=26564
--- Comment #1 from GyB gyebro69@gmail.com 2011-03-27 00:07:39 CDT --- Created an attachment (id=33823) --> (http://bugs.winehq.org/attachment.cgi?id=33823) +ddraw debug log
A +ddraw debug log. As the warning message suggests it might be a problem in the application as well.
I noticed that the stack overflow error is not present when you start the game the very first time. Every further attempt produces the error message on exit. On first launch the game creates certain registry keys under HKCU/Software/Opalium, they contain such things as Device, MemorySize, Revision, SubSystem, Vendor. If I remove the entire Opalium key from the registry, the error is not present on exit (but the registry key will be recreated on the next launch).