Skip to contentSkip to conversation

New: Amesia (closed source game) segfaults

Bug 33389 [email protected] 1 participant 13 messages Jan 23, 2011 – Jun 4, 2011

lore
Share & tools
lore
#0 lore raw

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

Summary: Amesia (closed source game) segfaults
Product: Mesa
Version: git
Platform: x86-64 (AMD64)
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/r600
AssignedTo: [email protected]
ReportedBy: [email protected]

When trying to run Amnesia (http://www.amnesiagame.com/#demo) on my system it gives me this output:
[1] 619 segmentation fault ./Amnesia.bin64

It runs fine until the loading screen and then crashes.

Steps to reproduce:
Run Amnesia with r600 driver

Additional information:
It doesn't crash if I'm using the llvm-pipe driver. I've tested it at the lowest possible graphics settings.

Backtrace:

#0 0x000000000082ab08 in hpl::iParticleEmitter::GetMaterial() ()
#1 0x0000000000805de2 in hpl::iRenderer::RenderObjectZAndAddToRenderList(hpl::iRenderable*) ()
#2 0x0000000000805e59 in hpl::iRenderer::RenderObjectZAndAddToRenderListStaticCallback(hpl::iRenderer*, hpl::iRenderable*) ()
#3 0x0000000000807d8f in hpl::iRenderer::RenderAndAddNodeObjects(hpl::iRenderableContainerNode*, bool (*)(hpl::iRenderer*, hpl::iRenderable*), unsigned int) ()
#4 0x000000000080808a in hpl::iRenderer::CheckForVisibleObjectsAddToListAndRenderZ(hpl::cVisibleRCNodeTracker*, unsigned int, unsigned int, bool, bool (*)(hpl::iRenderer*, hpl::iRenderable*)) ()
#5 0x00000000007e4841 in hpl::cRendererDeferred::RenderObjects() ()
#6 0x0000000000809334 in hpl::iRenderer::Render(float, hpl::cFrustum*, hpl::cWorld*, hpl::cRenderSettings*, hpl::cRenderTarget*, bool, std::list<hpl::iRendererCallback*, std::allocator<hpl::iRendererCallback*> >*) ()

#7  0x000000000082496d in hpl::cScene::Render(float, unsigned int) ()
#8  0x0000000000925423 in hpl::cEngine::Run() ()
#9  0x0000000000689890 in hplMain(std::basic_string<char,

std::char_traits<char>, std::allocator<char> > const&) () #10 0x000000000090ff29 in main ()

Version Information:
mesa: git 835c4ea1053730c8eea98337c9da1b14fcff6b5e OpenGL vendor string: X.Org
OpenGL renderer string: Gallium 0.4 on AMD RV770 OpenGL version string: 2.1 Mesa 7.11-devel OpenGL shading language version string: 1.20

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 33389] Amnesia (closed source game) segfaults

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

roughl <[email protected]> changed:

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

            Summary|Amesia (closed source game) |Amnesia (closed source
                   |segfaults                   |game) segfaults
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 33389] Amnesia (closed source game) segfaults

In reply to [email protected]

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

Sven Arvidsson <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Sven Arvidsson <[email protected]> 2011-01-23 15:13:18 PST --- Amnesia was only recently made playable with r300g, so it might be a bit early for r600g.

Anyway, the Amnesia devs have published a compatability test for the game called RendererFeatTest which is probably a good start for anyone working on supporting this:

http://frictionalgames.com/forum/thread-3656.html

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 33389] Amnesia (closed source game) segfaults

In reply to [email protected]

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

--- Comment #2 from roughl <[email protected]> 2011-01-31 13:06:50 PST --- (In reply to comment #1)

Quoted 8 lines

Amnesia was only recently made playable with r300g, so it might be a bit early for r600g.

Anyway, the Amnesia devs have published a compatability test for the game called RendererFeatTest which is probably a good start for anyone working on supporting this:

http://frictionalgames.com/forum/thread-3656.html

I've tested the compatibility test and it did run with a lot of errors:

$ grep ERROR render_test.log
ERROR: Could not create GL texture 
ERROR: Could not create GL texture 
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture
/home/roughl/Downloads/RendererFeatTest64/data/cubemap_evening.dds
ERROR: Couldn't load material
'H:/HPL_2/RendererFeatTest/data/test_refraction.mat'
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds
ERROR: Could not create GL texture cubemap_evening.dds

The cubemap_evening.dds erros have probably to do with missing S3TC functionality in the r600 driver.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 33389] Amnesia (closed source game) segfaults

In reply to [email protected]

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

--- Comment #3 from roughl <[email protected]> 2011-01-31 13:07:48 PST --- Created an attachment (id=42774)
--> (https://bugs.freedesktop.org/attachment.cgi?id=42774)
render test logfile

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#5 lore raw

[Bug 33389] Amnesia (closed source game) segfaults

In reply to [email protected]

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

--- Comment #4 from roughl <[email protected]> 2011-01-31 13:16:46 PST --- if running the test with llvm-pipe most of the test's work, and I get less errors in the logfile:
egrep "(ERROR|WARNING)" render_test.log
ERROR: Frame buffer 'ShadowMap1024x1024_0_Buffer' is not complete! Format is unsupported!
ERROR: Frame buffer 'ShadowMap512x512_0_Buffer' is not complete! Format is unsupported!
ERROR: Frame buffer 'ShadowMap512x512_1_Buffer' is not complete! Format is unsupported!
ERROR: Frame buffer 'ShadowMap512x512_2_Buffer' is not complete! Format is unsupported!
ERROR: Frame buffer 'ShadowMap512x512_3_Buffer' is not complete! Format is unsupported!
ERROR: Frame buffer 'ShadowMap256x256_0_Buffer' is not complete! Format is unsupported!
ERROR: Frame buffer 'ShadowMap256x256_1_Buffer' is not complete! Format is unsupported!
ERROR: Frame buffer 'ShadowMap256x256_2_Buffer' is not complete! Format is unsupported!
ERROR: Frame buffer 'ShadowMap256x256_3_Buffer' is not complete! Format is unsupported!
ERROR: Frame buffer 'ShadowMap256x256_4_Buffer' is not complete! Format is unsupported!
ERROR: Frame buffer 'ShadowMap256x256_5_Buffer' is not complete! Format is unsupported!
WARNING: System does not support float textures! SSAO is disabled.
WARNING: System does not support float textures! Edge smooth is disabled.

test 7, 10 and 14 do look wrong. 15 and 16 have minor visual artefacts.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#6 lore raw

[Bug 33389] Amnesia (closed source game) segfaults

In reply to [email protected]

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

--- Comment #5 from roughl <[email protected]> 2011-01-31 13:17:52 PST --- Created an attachment (id=42776)
--> (https://bugs.freedesktop.org/attachment.cgi?id=42776)
render test logfile with llvm-pipe

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#7 lore raw

[Bug 33389] [RADEON:KMS:R600G] amnesia (closed source game) segfaults

In reply to [email protected]

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

Jerome Glisse <[email protected]> changed:

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

            Summary|Amnesia (closed source      |[RADEON:KMS:R600G] amnesia
                   |game) segfaults             |(closed source game)
                   |                            |segfaults

--- Comment #6 from Jerome Glisse <[email protected]> 2011-03-08 10:54:54 PST --- Does it works better with lastest mesa ?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 33389] [RADEON:KMS:R600G] amnesia (closed source game) segfaults

In reply to [email protected]

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

--- Comment #7 from Alexandre Demers <[email protected]> 2011-04-07 12:48:20 PDT --- Right now, the RendererFeatTest doesn't work properly at all if I enable the S3TC extension with mesa git version, libdrm git version and libtxc_dxtn git version.

Not forcing the S3TC extension, the first test shows corruption on text (written on top left corner) while the i915 doesn't. All the test fails to show the background which is probably related to a texture not loaded because of missing S3TC extension or because of float textures not supported. SSAO (used in test 10) and Edge smooth (used in test 14) are disabled because of float textures not supported.

Should we report problem with RendererTestFeat in different bugs (listing each problem as a different bug, i.e. S3TC and Float Textures)?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#9 lore raw

[Bug 33389] [RADEON:KMS:R600G] amnesia (closed source game) segfaults

In reply to [email protected]

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

--- Comment #8 from Sven Arvidsson <[email protected]> 2011-04-07 13:28:21 PDT --- (In reply to comment #7)

Quoted 11 lines

Right now, the RendererFeatTest doesn't work properly at all if I enable the S3TC extension with mesa git version, libdrm git version and libtxc_dxtn git version.

Not forcing the S3TC extension, the first test shows corruption on text (written on top left corner) while the i915 doesn't. All the test fails to show the background which is probably related to a texture not loaded because of missing S3TC extension or because of float textures not supported. SSAO (used in test 10) and Edge smooth (used in test 14) are disabled because of float textures not supported.

Quoted 2 lines

Should we report problem with RendererTestFeat in different bugs (listing each problem as a different bug, i.e. S3TC and Float Textures)?

Does S3TC work in other games? If not, it's a more general problem. (I'm not sure if S3TC works equally well for all r600g hardware, or only on Evergreen?)

Float textures only exist in marek's branch, and only for r300g, so it's probably a bit premature to file bugs about this. Amensia works without it, you're just missing out on a couple of effects.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 33389] [RADEON:KMS:R600G] amnesia (closed source game) segfaults

In reply to [email protected]

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

--- Comment #9 from Sven Arvidsson <[email protected]> 2011-05-01 12:23:56 PDT --- Have you had a chance to retry Amnesia? With r600g on a HD5670 both the RenderTest and the game itself is working.

There's still a few rendering issues though, the game itself has black bars which make it seem like it was letterboxed.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#11 lore raw

[Bug 33389] [RADEON:KMS:R600G] amnesia (closed source game) segfaults

In reply to [email protected]

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

roughl <[email protected]> changed:

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

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #10 from roughl <[email protected]> 2011-06-04 15:25:14 PDT --- With kernel 2.6.39 and a recent 7.11-devel mesa it does not crash anymore. Although there are some visual glitches with the lights in the game (see atached picture). But I fill separate bugs for these issues.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 33389] [RADEON:KMS:R600G] amnesia (closed source game) segfaults

In reply to [email protected]

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

--- Comment #11 from Sven Arvidsson <[email protected]> 2011-06-04 16:18:52 PDT --- (In reply to comment #10)

Quoted 2 lines

Although there are some visual glitches with the lights in the game (see atached picture). But I fill separate bugs for these issues.

Already being tracked in bug 37028.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.