Bug 103769 - Unity based games do not start
Summary: Unity based games do not start
Status: NEW
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/Gallium/radeonsi (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Linux (All)
: medium major
Assignee: Default DRI bug account
QA Contact: Default DRI bug account
URL:
Whiteboard:
Keywords:
: 100990 103850 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-11-15 18:06 UTC by bartos.petr
Modified: 2018-04-26 08:23 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Crash of Layers of Fear (33.94 KB, text/plain)
2017-11-15 18:06 UTC, bartos.petr
Details
Crash of Oddworld (20.49 KB, text/plain)
2017-11-15 18:07 UTC, bartos.petr
Details
Crash of Rochard (20.11 KB, text/plain)
2017-11-15 18:07 UTC, bartos.petr
Details
oxygen not included - bt (4.12 KB, text/plain)
2018-01-02 20:45 UTC, yunta83
Details
oxygen not included - bt full (12.14 KB, text/plain)
2018-01-02 20:46 UTC, yunta83
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bartos.petr 2017-11-15 18:06:44 UTC
Created attachment 135499 [details]
Crash of Layers of Fear

Hi,
It seems there is some problem with mesa git (in combination with llvm git) and Unity based games. They are crashing at start.
I've already mentioned it here https://bugs.freedesktop.org/show_bug.cgi?id=103389 , but recently I have found that also Oddworld: New 'n' Tasty is crashing. Out of curiosity I've installed also Rochard (which is older but also Unity based) and it is also crashing.
Reverting back to older version of mesa (and llvm 4.0), all three games are working.
Comment 1 bartos.petr 2017-11-15 18:07:10 UTC
Created attachment 135500 [details]
Crash of Oddworld
Comment 2 bartos.petr 2017-11-15 18:07:28 UTC
Created attachment 135501 [details]
Crash of Rochard
Comment 3 bartos.petr 2017-11-17 20:51:15 UTC
For additional info, I've compiled latest mesa git with llvm 4.0 (stock version of Fedora 26) and Unity games are working.
But I've no idea whether the problem is in llvm 6.0 itself, or how mesa is using newest llvm library.
Comment 4 Nicolai Hähnle 2017-11-27 10:27:38 UTC
Thanks for the report. Is this still an issue? The traces look subtly different...

Do you have backtraces with symbols? Make sure you compile Mesa with debug symbols enabled.
Comment 5 lethalwp 2017-12-06 17:51:20 UTC
other unity games affected:
candle
silence
grow home
pulse
mousecraft
wasteland 2
broforce
habitat
munin
the last tinker
agatha christie the abc murders
plague inc evolved
pillars of eternity
monochroma
foosball
superhot
layers of fear
glare
space hilk ascension
hitmango
leisure suit larry reloaded
action henk
never alone kisima ingitchuna
interplanetary
cities skylines
cities skylines snowfall
cities in motion 2
star horizon
oddworld




I tried to env variable: 
R600_DEBUG=vs,tcs,tes,gs,ps,cs ./SUPERHOT.x86_64
but there was no debug output (not like the variable with glxgears...)
Comment 6 bartos.petr 2017-12-06 19:25:12 UTC
Yes, the problem is still there, tested with mesa git 9f9177d, llvm git e58aca6 (and clang 9f9177d).
Unfortunately I am unable to provide backtrace with symbols now since I've upgraded to Fedora 27 and have problems with building debuginfo package.
Comment 7 Nannerpuss 2018-01-02 11:04:38 UTC
(In reply to lethalwp from comment #5)
> other unity games affected:
> candle
> silence
> grow home
> pulse
> mousecraft
> wasteland 2
> broforce
> habitat
> munin
> the last tinker
> agatha christie the abc murders
> plague inc evolved
> pillars of eternity
> monochroma
> foosball
> superhot
> layers of fear
> glare
> space hilk ascension
> hitmango
> leisure suit larry reloaded
> action henk
> never alone kisima ingitchuna
> interplanetary
> cities skylines
> cities skylines snowfall
> cities in motion 2
> star horizon
> oddworld
> 
> 
> 
> 
> I tried to env variable: 
> R600_DEBUG=vs,tcs,tes,gs,ps,cs ./SUPERHOT.x86_64
> but there was no debug output (not like the variable with glxgears...)

I wanted to add The Longest Dark to your list as this seems very close to the issues I'm having with it on Arch Linux. The strange thing is I'm experiencing other, random OpenGL and radeon errors and bugs, with Unity x64 binaries being the only ones that will no longer load, period. We have both a runtime and native steam client on Arch and the 32bit blob for TLD does work after a very slow start and long error output.

 Here's some basic system info:

OpenGL vendor string: X.Org
OpenGL renderer string: AMD CAPE VERDE (DRM 2.50.0 / 4.14.10-1-ARCH, LLVM 5.0.1)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 17.3.1
OpenGL core profile shading language version string: 4.50
Comment 8 yunta83 2018-01-02 20:18:20 UTC
*** Bug 103850 has been marked as a duplicate of this bug. ***
Comment 9 yunta83 2018-01-02 20:45:00 UTC
"Oxygen Not Included" also crashes on startup. Backtraces attached.
Comment 10 yunta83 2018-01-02 20:45:40 UTC
Created attachment 136505 [details]
oxygen not included - bt
Comment 11 yunta83 2018-01-02 20:46:04 UTC
Created attachment 136506 [details]
oxygen not included - bt full
Comment 12 lethalwp 2018-02-18 10:46:52 UTC
bug still present with versions:
mesa-filesystem-18.1.0-0.2.gita5053ba.fc27.x86_64
llvm-libs-7.0.0-0.1.r323994.fc27.x86_64
clang-7.0.0-0.1.r324055.fc27.x86_64

always segfaulting.
Comment 13 Timothy Arceri 2018-04-02 10:50:20 UTC
*** Bug 100990 has been marked as a duplicate of this bug. ***
Comment 14 lethalwp 2018-04-23 13:31:58 UTC
still segfaulting regularily or have weird outputs (flickering screen)

with f28, 4.17rc1 (amdgpu)

    Device: Radeon RX Vega (VEGA10, DRM 3.25.0, 4.17.0-0.rc1.git3.1.fc29.x86_64, LLVM 7.0.0) (0x687f)
mesa-libGL-18.1.0-0.40.git52e93e3.fc28.i686


could be related to the vsync: when the game does start but flickers, when i change the vsync on and off a couple of time, sometimes it gets normal. Still segfaulting on the exit of the game
Comment 15 lethalwp 2018-04-23 13:35:18 UTC
it seems the segfaults have improved lately... Much less, the games do start more often
Comment 16 lethalwp 2018-04-26 08:23:38 UTC
I've done some more tests,  the games all start more or less correctly on fedora 28. Still several "display bugs" like flickering screen or so, but they do start. Even it segfaults at the end, it's better than before when it segfaulted when opening the screen.

So this bug is kind of fixed for me in fc28
mesa:
mesa-libGL-18.0.1-1.fc28.x86_64

llvm:
llvm-6.0.0-11.fc28.x86_64


and it improves even more with the copr build of che


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.