Skip to contentSkip to conversation

New: Display freeze when starting League of Legends (Wine)

Bug 90567 [email protected] 1 participant 27 messages May 21, 2015 – Dec 4, 2019 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=90567

Bug ID: 90567
Summary: Display freeze when starting League of Legends (Wine)
Product: xorg
Version: 7.6 (2010.12)
Hardware: Other
OS: All
Status: NEW
Severity: normal
Priority: medium
Component: Driver/nouveau
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 115953
--> https://bugs.freedesktop.org/attachment.cgi?id=115953&action=edit
Nouveau error log - 1

Up until recently, I was able to play League of Legends on Linux with Wine, using the open source driver nouveau. And that was with great performances.

Since an upgrade of the game (I cannot go back to the old version though), everytime the game starts, The display freezes (sometimes after up to 5 seconds but it always does).

The cursor is still moving but typing commands blindly doesn't seem to work.

The network and SSH deamon being still running, I was able to collect some Kernel logs. I attach them.

I also tried to go back to an older version of the Kernel in case the problem was in there but that did not help (So I can't bissect the kernel to find the possible bug)

I am not sure if the game is doing something nasty or if there is a bug in the opensource driver.

Logs show all kind of error messages I could find.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

A message that is not in the archive (sent off-list or not yet received): bug-90567-8800-V0hAGp6uBxMKqLRl/[email protected]/

#2 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #1 from Detlev Casanova <[email protected]> --- Created attachment 115954
--> https://bugs.freedesktop.org/attachment.cgi?id=115954&action=edit
Nouveau error log - 2

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#3 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #2 from Detlev Casanova <[email protected]> --- Created attachment 115955
--> https://bugs.freedesktop.org/attachment.cgi?id=115955&action=edit
Nouveau error log - 3

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#4 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #3 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- The first error messages are the most informative. Can you provide a full dmesg log from boot until some of those errors happen?

Also, what version of mesa are you using? If not the latest, please try with the latest.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#5 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #4 from Detlev Casanova <[email protected]> --- Hello, thanks for your response.

The version of mesa was just updated by my distro (archlinux) to version :
OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.5.6 OpenGL version string: 3.0 Mesa 10.5.6
OpenGL ES profile version string: OpenGL ES 3.0 Mesa 10.5.6

I'll attach a log that shows the journal when the game freezes. I just realized that only the game freezes. Once it's been killed by SSH, I get the control of the system back.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#6 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #5 from Detlev Casanova <[email protected]> --- Created attachment 116019
--> https://bugs.freedesktop.org/attachment.cgi?id=116019&action=edit
Nouveau log from beginning

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#7 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #6 from Samuel Pitoiset <[email protected]> --- Created attachment 116021
--> https://bugs.freedesktop.org/attachment.cgi?id=116021&action=edit
0001-nvc0-prevent-using-unvalidated-vertex-programs.patch

Hello Detlev,

Did you test with mesa git?
In any cases, could you please try this attached patch ?

I'm absolutely not sure it will fix your issue but let's try. :-)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#8 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #7 from Detlev Casanova <[email protected]> --- Mesa git won't solve the issue. I'm trying the patch as soon as possible :)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#9 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #8 from Detlev Casanova <[email protected]> --- Unfortunately, the patch did not fix the problem. Though now, I can Alt-Tab to switch to other windows and even kill the app with Ctrl-Alt-Esc.

I attach the log for the start of the game.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#10 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #9 from Detlev Casanova <[email protected]> --- Created attachment 116032
--> https://bugs.freedesktop.org/attachment.cgi?id=116032&action=edit
begining of errors with mesa git and nvc0 shader validation patch

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#11 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #10 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Are you using libdrm 2.4.60? If so, don't. Either use 2.4.59 or 2.4.61.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#12 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #11 from Detlev Casanova <[email protected]> --- No, this is libdrm 2.4.61, the latest version in archlinux.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#13 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #12 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- OK, well this is phenomenally bad then:

nouveau E[League of Legen[1565]] Unknown handle 0x00000017 nouveau E[League of Legen[1565]] validate_init nouveau E[League of Legen[1565]] validate: -2

And in your earlier logs:

nouveau E[League of Legen[2046]] Unknown handle 0x0000020e nouveau E[League of Legen[2046]] validate_init
nouveau E[League of Legen[2046]] validate: -2
nouveau E[League of Legen[2046]] multiple instances of buffer 3 on validation list
nouveau E[League of Legen[2046]] validate_init
nouveau E[League of Legen[2046]] validate: -22

I guess the earlier log may have happened with 2.4.60 -- that one would trigger the "multiple instances" error. Unknown handle is really really bad though.

Ben (or anyone)? I don't see how this can happen... Are we not holding on to some buffer that we should be? Should pushbuf_refn take a ref on the bo?

Detlev, could you create an apitrace that reproduces the issue? I think that could ease debugging. (https://github.com/apitrace/apitrace)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#14 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #13 from Detlev Casanova <[email protected]> --- I'll get that in place tomorrow.

Note that the first bug could have been reported using 2.4.60, I upgrade packages almost everyday.

For the rest, this is out of my comprehension scope :) I'll do my best to give you all you need :)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#15 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #14 from Detlev Casanova <[email protected]> --- I am not sure I will be able to get a trace, the game automatically starts different programs when setting up the game in wine.

The behavior today is quite random:
* Sometimes the game crashes
* Sometimes it freezes while loading
* Sometimes it freeze when the game starts
* Sometimes I loose control (keyboard and GUI not responding but mouse still
moving)

I haven't been able to reproduce the bug with Wine running through apitrace. I'll try again.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#16 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #15 from Detlev Casanova <[email protected]> --- First of all, that trace program is awesome !
I did some testing and couldn't fine the trace file. I then realized that it
was located in the folder of the executable.

So, I now have a 65MB trace file. I suppose that only the end is interresting but I'm not even sure that this is true. Is there any official way to give you that file ? If not, I will uploaded to my google drive and make it available to you.

Thanks in advance :)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#17 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #16 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- (In reply to Detlev Casanova from comment #15)

Quoted 10 lines

First of all, that trace program is awesome !
I did some testing and couldn't fine the trace file. I then realized that it was located in the folder of the executable.

So, I now have a 65MB trace file. I suppose that only the end is interresting but I'm not even sure that this is true. Is there any official way to give you that file ? If not, I will uploaded to my google drive and make it available to you.

Thanks in advance :)

Does replaying that trace ('glretrace $file') cause the issues to occur? If so, xz -9 the trace, and make it available somehow. Google drive is a common such mechanism. Just make it readable by anyone.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#18 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #17 from Detlev Casanova <[email protected]> --- The bug doesn't seem to be logged in the journal and the screen doesnt freeze
whet replayed.

though some messages like:
91596 @1 glXSwapIntervalMESA(interval = 1) = 0
91596: warning: unsupported glXSwapIntervalMESA call
107191: message: api issue 1: FBO incomplete: driver marked FBO as incomplete [-1]
[repeated]

are shown.

anyway, if it helps, here is the compressed trace:
https://drive.google.com/folderview?id=0B9ElNtcsRXKbfk1zZ0N0cDdPQW1ZRnRmR1NHdnRIMldQUjBQdkhUdHRtaGxGX082dXA5NkE&usp=sharing#list

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#19 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #18 from Samuel Pitoiset <[email protected]> --- Thanks for the trace, but we can't reproduce the issue. That's strange.

Could you try to generate a new trace and make sure the issue occurs when you replay it, please?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#20 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #19 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- By the way I just noticed that League of Legends is a free game, so I'm going to check it out tonight.

Detlev, I've never played this game -- what do I need to do in order to make the freeze occur?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#21 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #20 from Detlev Casanova <[email protected]> --- I'm not sure you can do it with a new account, the game is very restrictive.
The bug occurs with every type of game. To avoid being banned for leaving an actual game (that's not fair because i would leave a team with 4 against 5), I create a custom game with bots:

Launch -> login -> play -> select Custom -> Normal -> Create game -> Team size:
1 -> Create game -> Add Bot in team 2 -> Start game -> click yes -> select a champion -> Lock In -> Wait for freeze.

To generate the trace, I ran playonlinux within apitrace32. I recommand installing league of legends from playonlinux.

I'll try to generate a new trace tonight.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#22 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #21 from Detlev Casanova <[email protected]> --- I haven't been able to reproduce the issue with a trace, I tried multiple ones.

I realized that when retracing, with verbose output, I get this in the end:

451252 @0 glEnable(cap = GL_BLEND) // incomplete
453956 @1 glFenceSync(condition = GL_SYNC_GPU_COMMANDS_COMPLETE, flags = 0) // incomplete
apitrace: warning: caught signal 11
453956: error: caught an unhandled exception
glretrace+0x2a637c
/usr/lib/libpthread.so.0+0x1065f
glretrace+0x217db2
glretrace+0xf363
glretrace+0xb2d5
glretrace+0xb8eb
/usr/lib/libpthread.so.0+0x7353
/usr/lib/libc.so.6: clone+0x6c
?
apitrace: info: taking default action for signal 11
Erreur de segmentation (core dumped)

The last 2 calls seem incomplete (not completely traced by apitrace ?) and then, glretrace crashes.

Is there a way to end apitrace32 to properly generate the end of the trace ?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#23 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #22 from Samuel Pitoiset <[email protected]> --- What version of apitrace do you use?
If you use the archlinux package, you should perhaps try to build your own apitrace from the repo.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#24 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #23 from Detlev Casanova <[email protected]> --- Archlinux ships apitrace version 6.1.

With the latest git version, it doesn't seem to segfault but the kernel errors are not reproducible...

I don't know what else I can do :/

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#25 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #24 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- Quick update. I didn't get to this last night, and won't be able to look at it until mid to late June. (Doesn't mean someone else can't look at it though.)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#26 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

--- Comment #25 from Ilia Mirkin <imirkin-FrUbXkNCsVf2fBVCVOL8/[email protected]> --- (In reply to Detlev Casanova from comment #21)

Quoted 8 lines

I haven't been able to reproduce the issue with a trace, I tried multiple ones.

I realized that when retracing, with verbose output, I get this in the end:

451252 @0 glEnable(cap = GL_BLEND) // incomplete
453956 @1 glFenceSync(condition = GL_SYNC_GPU_COMMANDS_COMPLETE, flags = 0) // incomplete

This is the same issue that supertuxkart 0.9 was having, it'd die in a glFenceSync. I believe I tracked down the underlying issue and sent a patch to fix it:

http://patchwork.freedesktop.org/patch/52425/

Please try applying that patch to your mesa build and see if it helps.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/nouveau

#27 lore raw

[Bug 90567] Display freeze when starting League of Legends (Wine)

In reply to a message not in the archive

https://bugs.freedesktop.org/show_bug.cgi?id=90567

Martin Peres <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |MOVED

--- Comment #26 from Martin Peres <[email protected]> --- -- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance:
https://gitlab.freedesktop.org/xorg/driver/xf86-video-nouveau/issues/192.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
Nouveau mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/nouveau