Opened 3 years ago
Closed 2 years ago
#6268 closed defect (fixed)
Crash on MacOs related to rendering
Reported by: | seb | Owned by: | |
---|---|---|---|
Priority: | Should Have | Milestone: | Alpha 26 |
Component: | Core engine | Keywords: | |
Cc: | Patch: | Phab:D4363 |
Description (last modified by )
When playing the Game with 7 AI players the games crashes after about 10 minutes on Alpha 24. (0.0.24b) Relevant trace:
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 com.apple.AMDRadeonX4000GLDriver 0x000000011bf84e30 glrATI_SI_LoadHwShaderCommon + 166 1 com.apple.AMDRadeonX4000GLDriver 0x000000011bf361cb glrATI_SI_LoadHwVertexShader + 42 2 com.apple.AMDRadeonX4000GLDriver 0x000000011bf82a3b glrATI_SI_ValidatePipelinePrograms + 3694 3 com.apple.AMDRadeonX4000GLDriver 0x000000011bf27daf glrATI_SI_UpdateHardwareState + 727 4 com.apple.AMDRadeonX4000GLDriver 0x000000011bf22a8c gldUpdateDispatch + 2731 5 GLEngine 0x00007fff6be8bb5b gleDoDrawDispatchCore + 674 6 GLEngine 0x00007fff6be6af55 glDrawElements_ACC_Exec + 306 7 com.wildfiregames.0ad 0x000000010bf4ab9b CPatchRData::RenderBlends(std::__1::vector<CPatchRData*, std::__1::allocator<CPatchRData*> > const&, CShaderDefines const&, ShadowMap*) + 4091 8 com.wildfiregames.0ad 0x000000010bf76de0 TerrainRenderer::RenderTerrainShader(CShaderDefines const&, int, ShadowMap*) + 560 9 com.wildfiregames.0ad 0x000000010bf5b15b CRenderer::RenderPatches(CShaderDefines const&, int) + 331 10 com.wildfiregames.0ad 0x000000010bf5c24c CRenderer::RenderReflections(CShaderDefines const&, CBoundingBoxAligned const&) + 796 11 com.wildfiregames.0ad 0x000000010bf5d44e CRenderer::RenderSubmissions(CBoundingBoxAligned const&) + 878 12 com.wildfiregames.0ad 0x000000010bf5eaa7 CRenderer::RenderScene(Scene&) + 791 13 com.wildfiregames.0ad 0x000000010bdcce42 Render() + 434 14 com.wildfiregames.0ad 0x000000010bbbb4ab RunGameOrAtlas(int, char const**) + 9051 15 com.wildfiregames.0ad 0x000000010bbb9076 main + 54 16 libdyld.dylib 0x00007fff204b2f3d start + 1}}}
Attachments (3)
Change History (16)
by , 3 years ago
Attachment: | system_info.txt added |
---|
by , 3 years ago
Attachment: | crashlog.txt added |
---|
comment:3 by , 3 years ago
You could also take a screenshot Shift+cmd+4
of your options and attach it here. Also you could test an upcoming A25 version (Fifth RC - Revision 25848) and see if the problem can be repeated there.
PS: You have got an 2018 '15inch Macbook Pro can you see the polygon (see #6113)?
comment:5 by , 3 years ago
follow-up: 7 comment:6 by , 3 years ago
Grafic settings are default. Version 25 crashes even faster. Same stacktrace with the CRenderer. It happens on the map egypt 3x3.
I can see the polygon though :-)
comment:7 by , 3 years ago
Check this ticket answers regularly, maybe vladislavbelov has some questions or even a solution for you to answer/check.
Replying to seb:
I can see the polygon though :-)
Thanks for testing.
comment:8 by , 3 years ago
I can also reproduce the problem. The map crashes in A24b and works in A23b. Both times I used the default graphics settings
.
PS: The removed visibility of all shorelines is not a bug, but was actively removed with patch [24687] (18/Jan/21).
by , 3 years ago
Attachment: | 6268_a23b_a24b_crash.jpg added |
---|
comment:9 by , 3 years ago
When running lldb
I get this for the SVN version [25848] when crashing:
(lldb) bt * thread #1, name = 'main', queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0) * frame #0: 0x00000001010ac6e0 pyrogenesis`::mozalloc_abort(msg=<unavailable>) at mozalloc_abort.cpp:33:3 [opt] frame #1: 0x0000000101ab48fd pyrogenesis`::abort() at mozalloc_abort.cpp:82:3 [opt] frame #2: 0x0000000100504a76 pyrogenesis`sys_display_error(text=<unavailable>, flags=6) at unix.cpp:268:4 [opt] frame #3: 0x00000001004dcd68 pyrogenesis`debug_DisplayError(wchar_t const*, unsigned long, void*, wchar_t const*, wchar_t const*, int, char const*, long volatile*) [inlined] CallDisplayError(text=L"Assertion failed: \"(m_StreamFlags & ~m_ValidStreams) == 0\"\r\nLocation: ShaderProgram.cpp:942 (AssertPointersBound)\r\n\r\nCall stack:\r\n\r\n(error while dumping stack: Function not supported)\r\nerrno = 60 (?)\r\nOS error = ?\r\n", flags=6) at debug.cpp:374:8 [opt] frame #4: 0x00000001004dcd4b pyrogenesis`debug_DisplayError(description=<unavailable>, flags=6, context=0x00007ffeefbfe230, lastFuncToSkip=<no summary available>, pathname=<no summary available>, line=<no summary available>, func=<no value available>, suppress=<no summary available>) at debug.cpp:462 [opt] frame #5: 0x00000001004dd5fe pyrogenesis`debug_OnAssertionFailure(expr=<no summary available>, suppress=<no summary available>, file=<no summary available>, line=<no summary available>, func=<no value available>) at debug.cpp:549:9 [opt] frame #6: 0x0000000100342016 pyrogenesis`CShaderProgram::AssertPointersBound(this=<unavailable>) at ShaderProgram.cpp:942:2 [opt] frame #7: 0x00000001003b3339 pyrogenesis`CPatchRData::RenderBlends(patches=<unavailable>, context=<no summary available>, shadow=<no summary available>) at PatchRData.cpp:1002:14 [opt] frame #8: 0x00000001003e73be pyrogenesis`TerrainRenderer::RenderTerrainShader(this=<no summary available>, context=<no summary available>, cullGroup=<no summary available>, shadow=<no summary available>) at TerrainRenderer.cpp:296:2 [opt] frame #9: 0x00000001003c210a pyrogenesis`CRenderer::RenderPatches(this=<unavailable>, context=<no summary available>, cullGroup=<no summary available>) at Renderer.cpp:747:21 [opt] frame #10: 0x00000001003c3cbc pyrogenesis`CRenderer::RenderRefractions(this=<unavailable>, context=<no summary available>, scissor=<no summary available>) at Renderer.cpp:1109:2 [opt] frame #11: 0x00000001003c4618 pyrogenesis`CRenderer::RenderSubmissions(this=<unavailable>, waterScissor=<no summary available>) at Renderer.cpp:1296:5 [opt] frame #12: 0x00000001003c5cc9 pyrogenesis`CRenderer::RenderScene(this=<unavailable>, scene=<unavailable>) at Renderer.cpp:1694:2 [opt] frame #13: 0x0000000100204b0f pyrogenesis`Render() at GameSetup.cpp:238:22 [opt] frame #14: 0x0000000100003b33 pyrogenesis`RunGameOrAtlas(int, char const**) [inlined] Frame() at main.cpp:448:3 [opt] frame #15: 0x00000001000032a0 pyrogenesis`RunGameOrAtlas(argc=<no summary available>, argv=<no summary available>) at main.cpp:691 [opt] frame #16: 0x0000000100001a76 pyrogenesis`main(argc=<no summary available>, argv=<no summary available>) at main.cpp:743:2 [opt] frame #17: 0x00007fff6efd4cc9 libdyld.dylib`start + 1
The crash happens for me as soon as I move the camera towards 5 o'clock, if I don't move the camera at all it doesn't crash.
comment:10 by , 3 years ago
Description: | modified (diff) |
---|
comment:11 by , 3 years ago
I have disabled all graphics setting (general+advanced)
one by one and restarted the map each time, but the crash never stops. It always happens as soon as I move the camera towards 5 o'clock.
comment:12 by , 3 years ago
Good IRC 0ad-dev (5/Aug/21) conversation:
17:48 < Langbart> Stan I never had "GLSL" enabled because I started with the default settings and then started disabling stuff. When I turn on GLSL, I no longer crash.
18:07 < Vladislav> Ok, I got it.
18:07 < Vladislav> Might be fixed in A26 or just forgotten.
18:07 < Vladislav> ARB shouldn't be.
comment:13 by , 2 years ago
Patch: | → Phab:D4363 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
With Alpha 26, this problem should no longer occur.
In [26069]:
(14/Dec/21)
Replaces unclear PreferGLSL by direct renderer backend choice.
Can you attach the logs and your system info, please? wiki:GameDataPaths