From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Sun, 27 Mar 2016 20:13:46 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0475500341==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 0E8366E331 for ; Sun, 27 Mar 2016 20:13:46 +0000 (UTC) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0475500341== Content-Type: multipart/alternative; boundary="14591096260.4BaB9.6289"; charset="UTF-8" --14591096260.4BaB9.6289 Date: Sun, 27 Mar 2016 20:13:46 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 Bug ID: 94726 Summary: [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: Linux (All) Status: NEW Severity: normal Priority: medium Component: Drivers/Gallium/radeonsi Assignee: dri-devel@lists.freedesktop.org Reporter: thomas.rinsch@arcor.de QA Contact: dri-devel@lists.freedesktop.org Created attachment 122589 --> https://bugs.freedesktop.org/attachment.cgi?id=122589&action=edit gdb logfile ARK: Survival Evolved crashes when I try to load my singleplayer game. Occurs only on my R9 380 with amdgpu/radeonsi. Loading the game with LIBGL_ALWAYS_SOFTWARE works Joining a server or starting a new game works with radeonsi as well. Mesa is todays git, but problem exists with earlier versions as well. llvm is yesterdays git. It seems to be a memory allocation issue: When I start the game with apitrace, my console is spammed with Mesa: User error: GL_OUT_OF_MEMORY in glBufferData Mesa: User error: GL_INVALID_VALUE in glBufferSubData(offset 0 + size 432 > buffer size 0) amdgpu: Failed to allocate a buffer: amdgpu: size : 4096 bytes amdgpu: alignment : 4096 bytes amdgpu: domains : 4 amdgpu: Failed to allocate a buffer: amdgpu: size : 4096 bytes amdgpu: alignment : 4096 bytes amdgpu: domains : 4 just before the crash. However system monitor shows ~75% of System memory is free. Attached the logfile from running the game with gdb, though it doesn't really say much. -- You are receiving this mail because: You are the assignee for the bug. --14591096260.4BaB9.6289 Date: Sun, 27 Mar 2016 20:13:46 +0000 MIME-Version: 1.0 Content-Type: text/html
Bug ID 94726
Summary [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory
Product Mesa
Version git
Hardware x86-64 (AMD64)
OS Linux (All)
Status NEW
Severity normal
Priority medium
Component Drivers/Gallium/radeonsi
Assignee dri-devel@lists.freedesktop.org
Reporter thomas.rinsch@arcor.de
QA Contact dri-devel@lists.freedesktop.org

Created attachment 122589 [details]
gdb logfile

ARK: Survival Evolved crashes when I try to load my singleplayer game.

Occurs only on my R9 380 with amdgpu/radeonsi.
Loading the game with LIBGL_ALWAYS_SOFTWARE works

Joining a server or starting a new game works with radeonsi as well.

Mesa is todays git, but problem exists with earlier versions as well.
llvm is yesterdays git.

It seems to be a memory allocation issue:
When I start the game with apitrace, my console is spammed with Mesa:

User error: GL_OUT_OF_MEMORY in glBufferData
Mesa: User error: GL_INVALID_VALUE in glBufferSubData(offset 0 + size 432 >
buffer size 0)
amdgpu: Failed to allocate a buffer:
amdgpu:    size      : 4096 bytes
amdgpu:    alignment : 4096 bytes
amdgpu:    domains   : 4
amdgpu: Failed to allocate a buffer:
amdgpu:    size      : 4096 bytes
amdgpu:    alignment : 4096 bytes
amdgpu:    domains   : 4

just before the crash.
However system monitor shows ~75% of System memory is free.

Attached the logfile from running the game with gdb, though it doesn't really
say much.


You are receiving this mail because:
  • You are the assignee for the bug.
--14591096260.4BaB9.6289-- --===============0475500341== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0475500341==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Sun, 27 Mar 2016 20:26:12 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1308953415==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 6AEC56E333 for ; Sun, 27 Mar 2016 20:26:12 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1308953415== Content-Type: multipart/alternative; boundary="14591103720.1Bbeb.8040"; charset="UTF-8" --14591103720.1Bbeb.8040 Date: Sun, 27 Mar 2016 20:26:12 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 --- Comment #1 from thomas.rinsch@arcor.de --- The game crashes just before leaving the load screen by the way. I would like to provide the apitrace, however even if compressed it is 230MB in size, containing 605 frames. Can I just upload that here? The last frame alone is 87MB according to qapitrace. I'm new to reporting bugs here, so please be forgiving if I did anything wrong. Tell me if I can deliver any additional info. -- You are receiving this mail because: You are the assignee for the bug. --14591103720.1Bbeb.8040 Date: Sun, 27 Mar 2016 20:26:12 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 1 on bug 94726 from
The game crashes just before leaving the load screen by the way.

I would like to provide the apitrace, however even if compressed it is 230MB in
size, containing 605 frames. Can I just upload that here?

The last frame alone is 87MB according to qapitrace.

I'm new to reporting bugs here, so please be forgiving if I did anything wrong.
Tell me if I can deliver any additional info.


You are receiving this mail because:
  • You are the assignee for the bug.
--14591103720.1Bbeb.8040-- --===============1308953415== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1308953415==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Mon, 28 Mar 2016 07:48:31 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1911555274==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id C74946E394 for ; Mon, 28 Mar 2016 07:48:31 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1911555274== Content-Type: multipart/alternative; boundary="14591513111.2E4Faf7E.27543"; charset="UTF-8" --14591513111.2E4Faf7E.27543 Date: Mon, 28 Mar 2016 07:48:31 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 --- Comment #2 from Michel Dänzer --- (In reply to thomas.rinsch from comment #0) > Attached the logfile from running the game with gdb, though it doesn't > really say much. Please run "thread apply all bt full" at the gdb prompt after the SIGSEGVs and the SIGABRT. (In reply to thomas.rinsch from comment #1) > I would like to provide the apitrace, however even if compressed it is 230MB > in size, containing 605 frames. Can I just upload that here? No, attachments here are limited to 32MB. apitraces are usually uploaded to file sharing services such as Dropbox or Google Drive. -- You are receiving this mail because: You are the assignee for the bug. --14591513111.2E4Faf7E.27543 Date: Mon, 28 Mar 2016 07:48:31 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 2 on bug 94726 from
(In reply to thomas.rinsch from comment #0)
> Attached the logfile from running the game with gdb, though it doesn't
> really say much.

Please run "thread apply all bt full" at the gdb prompt after the SIGSEGVs and
the SIGABRT.

(In reply to thomas.rinsch from comment #1)
> I would like to provide the apitrace, however even if compressed it is 230MB
> in size, containing 605 frames. Can I just upload that here?

No, attachments here are limited to 32MB. apitraces are usually uploaded to
file sharing services such as Dropbox or Google Drive.


You are receiving this mail because:
  • You are the assignee for the bug.
--14591513111.2E4Faf7E.27543-- --===============1911555274== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1911555274==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Mon, 28 Mar 2016 11:13:10 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1623526677==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id E3E406E05D for ; Mon, 28 Mar 2016 11:13:09 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1623526677== Content-Type: multipart/alternative; boundary="14591635890.aDBEf77.16198"; charset="UTF-8" --14591635890.aDBEf77.16198 Date: Mon, 28 Mar 2016 11:13:09 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 thomas.rinsch@arcor.de changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #122589|0 |1 is obsolete| | --- Comment #3 from thomas.rinsch@arcor.de --- Created attachment 122595 --> https://bugs.freedesktop.org/attachment.cgi?id=122595&action=edit gdb log with backtrace (In reply to Michel Dänzer from comment #2) Thanks a lot Michael, > Please run "thread apply all bt full" at the gdb prompt after the SIGSEGVs > and the SIGABRT. I attached the new log here. > No, attachments here are limited to 32MB. apitraces are usually uploaded to > file sharing services such as Dropbox or Google Drive. Uploaded the Apitrace to Google Drive: https://drive.google.com/open?id=0BwKS4-SC1bfybjRPTVVBbVh0YnM -- You are receiving this mail because: You are the assignee for the bug. --14591635890.aDBEf77.16198 Date: Mon, 28 Mar 2016 11:13:09 +0000 MIME-Version: 1.0 Content-Type: text/html changed bug 94726
What Removed Added
Attachment #122589 is obsolete   1

Comment # 3 on bug 94726 from
Created attachment 122595 [details]
gdb log with backtrace

(In reply to Michel Dänzer from comment #2)

Thanks a lot Michael,

> Please run "thread apply all bt full" at the gdb prompt after the SIGSEGVs
> and the SIGABRT.

I attached the new log here.

> No, attachments here are limited to 32MB. apitraces are usually uploaded to
> file sharing services such as Dropbox or Google Drive.

Uploaded the Apitrace to Google Drive:
https://drive.google.com/open?id=0BwKS4-SC1bfybjRPTVVBbVh0YnM


You are receiving this mail because:
  • You are the assignee for the bug.
--14591635890.aDBEf77.16198-- --===============1623526677== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1623526677==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Sat, 09 Apr 2016 17:56:03 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0642540710==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id CF4596E22F for ; Sat, 9 Apr 2016 17:56:02 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0642540710== Content-Type: multipart/alternative; boundary="14602245620.6B7AC.17225"; charset="UTF-8" --14602245620.6B7AC.17225 Date: Sat, 9 Apr 2016 17:56:02 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 --- Comment #4 from thomas.rinsch@arcor.de --- Created attachment 122837 --> https://bugs.freedesktop.org/attachment.cgi?id=122837&action=edit ARK gdb log on TURKS -- You are receiving this mail because: You are the assignee for the bug. --14602245620.6B7AC.17225 Date: Sat, 9 Apr 2016 17:56:02 +0000 MIME-Version: 1.0 Content-Type: text/html


You are receiving this mail because:
  • You are the assignee for the bug.
--14602245620.6B7AC.17225-- --===============0642540710== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0642540710==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Sat, 09 Apr 2016 17:57:47 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0037905254==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id AC5BB6E235 for ; Sat, 9 Apr 2016 17:57:46 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0037905254== Content-Type: multipart/alternative; boundary="14602246660.ce4DbB.18314"; charset="UTF-8" --14602246660.ce4DbB.18314 Date: Sat, 9 Apr 2016 17:57:46 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 --- Comment #5 from thomas.rinsch@arcor.de --- Tried to load the save on my laptop and realized it showed the same behaviour on my Turks (HD6770M) after all. Attached the gdb log. llvmpipe works on the laptop as well. -- You are receiving this mail because: You are the assignee for the bug. --14602246660.ce4DbB.18314 Date: Sat, 9 Apr 2016 17:57:46 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 5 on bug 94726 from
Tried to load the save on my laptop and realized it showed the same behaviour
on my Turks (HD6770M) after all. Attached the gdb log.
llvmpipe works on the laptop as well.


You are receiving this mail because:
  • You are the assignee for the bug.
--14602246660.ce4DbB.18314-- --===============0037905254== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0037905254==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Wed, 13 Apr 2016 16:04:35 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0304682925==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 397856E926 for ; Wed, 13 Apr 2016 16:04:35 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0304682925== Content-Type: multipart/alternative; boundary="14605634751.918a7F94.28039"; charset="UTF-8" --14605634751.918a7F94.28039 Date: Wed, 13 Apr 2016 16:04:35 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 --- Comment #6 from Nicolai Hähnle --- Created attachment 122899 --> https://bugs.freedesktop.org/attachment.cgi?id=122899&action=edit Workaround patch: unmap buffers as soon as possible Hi Thomas, thanks for your report. This game is really stressing our buffer handling :) The problem is that it tries to create more than 64k buffers, and we keep all of them mapped, and it looks like we're running into some kind of kernel limit. The attached patch should help you run the game for now, but it's not a proper solution because it can degrade performance quite significantly. -- You are receiving this mail because: You are the assignee for the bug. --14605634751.918a7F94.28039 Date: Wed, 13 Apr 2016 16:04:35 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 6 on bug 94726 from
Created attachment 122899 [details] [review]
Workaround patch: unmap buffers as soon as possible

Hi Thomas, thanks for your report. This game is really stressing our buffer
handling :)

The problem is that it tries to create more than 64k buffers, and we keep all
of them mapped, and it looks like we're running into some kind of kernel limit.

The attached patch should help you run the game for now, but it's not a proper
solution because it can degrade performance quite significantly.


You are receiving this mail because:
  • You are the assignee for the bug.
--14605634751.918a7F94.28039-- --===============0304682925== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0304682925==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Thu, 14 Apr 2016 20:40:13 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1327559147==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 6098E6EB07 for ; Thu, 14 Apr 2016 20:40:13 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1327559147== Content-Type: multipart/alternative; boundary="14606664130.82e4c.6936"; charset="UTF-8" --14606664130.82e4c.6936 Date: Thu, 14 Apr 2016 20:40:13 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 --- Comment #7 from thomas.rinsch@arcor.de --- (In reply to Nicolai Hähnle from comment #6) Thanks a lot Nicolai, I applied the patch and unfortunately all that has changed is that ARK needs longer to crash now. In addition it tends to freeze the whole system, or at least crash the DE panel and itself. As a result I wasn't able to get a new backtrace (application already exited). The apitrace is twice as big now, but judging from a comparison the only difference is that it contains more frames from loading longer. During one attempt I also got spammed by the User error: GL_OUT_OF_MEMORY in glBufferData Mesa: User error: GL_INVALID_VALUE in glBufferSubData(offset 0 + size 432 > buffer size 0) amdgpu: Failed to allocate a buffer: amdgpu: size : 4096 bytes amdgpu: alignment : 4096 bytes amdgpu: domains : 4 amdgpu: Failed to allocate a buffer: amdgpu: size : 4096 bytes amdgpu: alignment : 4096 bytes amdgpu: domains : 4 again. Interestingly it seems to behave slightly different on every try now. It is nice to know you have a clue what the root of the problem is. :) I can imagine ARK is behaving a bit odd. It worked with fglrx and obviously llvmpipe somehow, though. I also noticed I spelled Michels name wrong in a previous comment. Apologies for that. -- You are receiving this mail because: You are the assignee for the bug. --14606664130.82e4c.6936 Date: Thu, 14 Apr 2016 20:40:13 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 7 on bug 94726 from
(In reply to Nicolai Hähnle from comment #6)

Thanks a lot Nicolai,

I applied the patch and unfortunately all that has changed is that ARK needs
longer to crash now. In addition it tends to freeze the whole system, or at
least crash the DE panel and itself.

As a result I wasn't able to get a new backtrace (application already exited).
The apitrace is twice as big now, but judging from a comparison the only
difference is that it contains more frames from loading longer.

During one attempt I also got spammed by the 

User error: GL_OUT_OF_MEMORY in glBufferData
Mesa: User error: GL_INVALID_VALUE in glBufferSubData(offset 0 + size 432 >
buffer size 0)
amdgpu: Failed to allocate a buffer:
amdgpu:    size      : 4096 bytes
amdgpu:    alignment : 4096 bytes
amdgpu:    domains   : 4
amdgpu: Failed to allocate a buffer:
amdgpu:    size      : 4096 bytes
amdgpu:    alignment : 4096 bytes
amdgpu:    domains   : 4
again. Interestingly it seems to behave slightly different on every try now.

It is nice to know you have a clue what the root of the problem is. :)
I can imagine ARK is behaving a bit odd. It worked with fglrx and obviously
llvmpipe somehow, though.

I also noticed I spelled Michels name wrong in a previous comment. Apologies
for that.


You are receiving this mail because:
  • You are the assignee for the bug.
--14606664130.82e4c.6936-- --===============1327559147== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1327559147==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Fri, 15 Apr 2016 00:09:09 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0971872242==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id 35B546EB4A for ; Fri, 15 Apr 2016 00:09:09 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0971872242== Content-Type: multipart/alternative; boundary="14606789490.f8A9e.15377"; charset="UTF-8" --14606789490.f8A9e.15377 Date: Fri, 15 Apr 2016 00:09:09 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 --- Comment #8 from Nicolai Hähnle --- Thanks for testing, and sorry to hear that. Is there anything in the dmesg? Would you mind uploading another apitrace? -- You are receiving this mail because: You are the assignee for the bug. --14606789490.f8A9e.15377 Date: Fri, 15 Apr 2016 00:09:09 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 8 on bug 94726 from
Thanks for testing, and sorry to hear that.

Is there anything in the dmesg? Would you mind uploading another apitrace?


You are receiving this mail because:
  • You are the assignee for the bug.
--14606789490.f8A9e.15377-- --===============0971872242== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0971872242==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Fri, 15 Apr 2016 18:11:21 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0680979925==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 0066C6ECDF for ; Fri, 15 Apr 2016 18:11:21 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0680979925== Content-Type: multipart/alternative; boundary="14607438800.cc2C.21347"; charset="UTF-8" --14607438800.cc2C.21347 Date: Fri, 15 Apr 2016 18:11:20 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 --- Comment #9 from thomas.rinsch@arcor.de --- (In reply to Nicolai Hähnle from comment #8) > Thanks for testing, and sorry to hear that. > > Is there anything in the dmesg? Would you mind uploading another apitrace? Of course, here is a new API trace: https://drive.google.com/file/d/0BwKS4-SC1bfyQlM4dDNkNTNIOUE/view?usp=sharing Nothing in dmesg or /var/log/messages However obviously I can't get the dmesg when the system is frozen. Any way to automatically log it on change? I just noticed that the system gets extremely unresponsive shortly before freezing completely if that is of any help. System Monitor shows normal CPU and Memory usage until the end, so I would imagine it's gpu related. (max 5.2GB used). Btw. this might be very good to improve the driver. However if you find this to be an error on the application side, notice that the developer has announced a major rework of the OpenGL renderer. Best regards and many thanks again. -- You are receiving this mail because: You are the assignee for the bug. --14607438800.cc2C.21347 Date: Fri, 15 Apr 2016 18:11:20 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 9 on bug 94726 from
(In reply to Nicolai Hähnle from comment #8)
> Thanks for testing, and sorry to hear that.
> 
> Is there anything in the dmesg? Would you mind uploading another apitrace?

Of course, here is a new API trace:
https://drive.google.com/file/d/0BwKS4-SC1bfyQlM4dDNkNTNIOUE/view?usp=sharing

Nothing in dmesg or /var/log/messages
However obviously I can't get the dmesg when the system is frozen. Any way to
automatically log it on change?

I just noticed that the system gets extremely unresponsive shortly before
freezing completely if that is of any help.

System Monitor shows normal CPU and Memory usage until the end, so I would
imagine it's gpu related. (max 5.2GB used).

Btw. this might be very good to improve the driver. However if you find this to
be an error on the application side, notice that the developer has announced a
major rework of the OpenGL renderer.

Best regards and many thanks again.


You are receiving this mail because:
  • You are the assignee for the bug.
--14607438800.cc2C.21347-- --===============0680979925== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0680979925==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Mon, 25 Apr 2016 08:46:31 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1091272128==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id 538B26E52F for ; Mon, 25 Apr 2016 08:46:31 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1091272128== Content-Type: multipart/alternative; boundary="14615739910.4eD8e69.20616"; charset="UTF-8" --14615739910.4eD8e69.20616 Date: Mon, 25 Apr 2016 08:46:31 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 --- Comment #10 from Grigori Goronzy --- Maybe I'm naive here, but shouldn't it be possible to detect when we reach the limit? Then we could unmap some buffers (preferably ones that haven't been accessed for some time) only when it's needed. -- You are receiving this mail because: You are the assignee for the bug. --14615739910.4eD8e69.20616 Date: Mon, 25 Apr 2016 08:46:31 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 10 on bug 94726 from
Maybe I'm naive here, but shouldn't it be possible to detect when we reach the
limit? Then we could unmap some buffers (preferably ones that haven't been
accessed for some time) only when it's needed.


You are receiving this mail because:
  • You are the assignee for the bug.
--14615739910.4eD8e69.20616-- --===============1091272128== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1091272128==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Mon, 25 Apr 2016 17:22:19 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0577217601==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [IPv6:2610:10:20:722:a800:ff:fe98:4b55]) by gabe.freedesktop.org (Postfix) with ESMTP id AE7206E68E for ; Mon, 25 Apr 2016 17:22:18 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0577217601== Content-Type: multipart/alternative; boundary="14616049381.cE0978a.12536"; charset="UTF-8" --14616049381.cE0978a.12536 Date: Mon, 25 Apr 2016 17:22:18 +0000 MIME-Version: 1.0 Content-Type: text/plain https://bugs.freedesktop.org/show_bug.cgi?id=94726 --- Comment #11 from Nicolai Hähnle --- Well, you can open /proc/$pid/maps and read it, but that is inefficient and hackish. I don't know of a nice way to determine the total number of open mmaps in a process. One possible approach we'd discussed is indeed to maintain a LRU list of open mappings and close the oldest one when a certain threshold number is reached. This might be the easiest way to avoid the crashes, but some applications might be hurt in terms of performance, if they expect to be able to update those small buffers often. -- You are receiving this mail because: You are the assignee for the bug. --14616049381.cE0978a.12536 Date: Mon, 25 Apr 2016 17:22:18 +0000 MIME-Version: 1.0 Content-Type: text/html

Comment # 11 on bug 94726 from
Well, you can open /proc/$pid/maps and read it, but that is inefficient and
hackish. I don't know of a nice way to determine the total number of open mmaps
in a process.

One possible approach we'd discussed is indeed to maintain a LRU list of open
mappings and close the oldest one when a certain threshold number is reached.
This might be the easiest way to avoid the crashes, but some applications might
be hurt in terms of performance, if they expect to be able to update those
small buffers often.


You are receiving this mail because:
  • You are the assignee for the bug.
--14616049381.cE0978a.12536-- --===============0577217601== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0577217601==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Fri, 07 Oct 2016 19:11:50 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1824512926==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id B61AF6EC33 for ; Fri, 7 Oct 2016 19:11:50 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1824512926== Content-Type: multipart/alternative; boundary="14758675100.Dcc73e65a.27723"; charset="UTF-8" --14758675100.Dcc73e65a.27723 Date: Fri, 7 Oct 2016 19:11:50 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D94726 --- Comment #12 from thomas.rinsch@arcor.de --- I kept trying to load the savegame occasionally and today it worked again. Haven't tried it in a while, so I don't know if it was an application side change or a mesa change. --=20 You are receiving this mail because: You are the assignee for the bug.= --14758675100.Dcc73e65a.27723 Date: Fri, 7 Oct 2016 19:11:50 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated

Commen= t # 12 on bug 94726<= /a> from thomas.rin= sch@arcor.de
I kept trying to load the savegame occasionally and today it w=
orked again.

Haven't tried it in a while, so I don't know if it was an application side
change or a mesa change.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14758675100.Dcc73e65a.27723-- --===============1824512926== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1824512926==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: bugzilla-daemon@freedesktop.org Subject: [Bug 94726] [Tonga] ARK: Survival Evolved crashes on savegame load. Out of Memory Date: Tue, 11 Oct 2016 01:11:45 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0657185210==" Return-path: Received: from culpepper.freedesktop.org (culpepper.freedesktop.org [131.252.210.165]) by gabe.freedesktop.org (Postfix) with ESMTP id AF9056E2C4 for ; Tue, 11 Oct 2016 01:11:45 +0000 (UTC) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============0657185210== Content-Type: multipart/alternative; boundary="14761483051.5e16c.6043"; charset="UTF-8" --14761483051.5e16c.6043 Date: Tue, 11 Oct 2016 01:11:45 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated https://bugs.freedesktop.org/show_bug.cgi?id=3D94726 Michel D=C3=A4nzer changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #13 from Michel D=C3=A4nzer --- (In reply to thomas.rinsch from comment #12) > I kept trying to load the savegame occasionally and today it worked again. Glad to hear that. > Haven't tried it in a while, so I don't know if it was an application side > change or a mesa change. I'd say it's most likely one of Nicolai's recent Mesa changes. --=20 You are receiving this mail because: You are the assignee for the bug.= --14761483051.5e16c.6043 Date: Tue, 11 Oct 2016 01:11:45 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.freedesktop.org/ Auto-Submitted: auto-generated = Michel D=C3=A4nzer changed bug 94726<= /a>
What Removed Added
Resolution --- FIXED
Status NEW RESOLVED

Commen= t # 13 on bug 94726<= /a> from Michel D=C3=A4nzer
(In reply to thomas.rinsch from comment #12)
> I kept trying to load the savegame occasionally =
and today it worked again.

Glad to hear that.

> Haven't tried it in a while, so I don't know if =
it was an application side
> change or a mesa change.

I'd say it's most likely one of Nicolai's recent Mesa changes.


You are receiving this mail because:
  • You are the assignee for the bug.
= --14761483051.5e16c.6043-- --===============0657185210== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============0657185210==--