Opened 11 years ago
Closed 10 years ago
#2050 closed defect (worksforme)
Atlas crashes when modifying terrain elevation
Reported by: | michael | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | |
Component: | Atlas editor | Keywords: | Atlas |
Cc: | Patch: |
Description
Atlas will freeze, then crash if I use the modify terrain elevation tool to change the terrain height on a map. This prevents me from modifying and creating maps.
Attachments (2)
Change History (21)
by , 11 years ago
Attachment: | mainlog.html added |
---|
by , 11 years ago
Attachment: | system_info.txt added |
---|
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Not reproducible here, on XP with integrated (non-shader) Intel graphics. If you start with a blank map in Atlas, it crashes as soon as you use the terrain elevation tools? Do the crashes go away if you remove the fancy graphics settings from your local.cfg
? What is displayed when Atlas crashes, any error dialog?
comment:3 by , 11 years ago
No error dialog, sadly. Atlas stops working, the UI goes blank, I see the "Not Responding" text at the top, I have to 'X' out multiple times before the Windows crash dialog appears ("pyrogenesis.exe has stopped working...").
Luckily, this time the mainlog generated a slew of warnings at the bottom:
Info when linking program 'shaders/glsl/model_common.vs'+'shaders/glsl/solid_tex.fs': Vertex info ----------- 0(115) : warning C7050: "cosVec.w" might be used before being initialized
Info when linking program 'shaders/glsl/model_common.vs'+'shaders/glsl/model_common.fs': Vertex info ----------- 0(115) : warning C7050: "cosVec.w" might be used before being initialized
Oddly enough, the game did not find these warnings to be interesting enough to add to the interestinglog.
Removing everything from local.cfg does not fix the problem.
comment:6 by , 11 years ago
Was discussed on IRC 2013-08-06 from 19:44. May be heap corruption based on the call stacks, if someone else can test Atlas on Windows 8 that would be good, and running valgrind's memcheck on Atlas might uncover something.
comment:7 by , 11 years ago
Crash occurs when editing the terrain textures as well.
Debug output for this crash here:
comment:8 by , 11 years ago
Michael, can you check if you have the latest graphics drivers?
Also test if it helps to put novbo=true
in your local.cfg
.
comment:9 by , 11 years ago
Others are reporting a crash in Atlas related to terrain modification, see IRC logs from 2013-08-19 starting at 15:35 (independent of r13714 which is a fix for another crash). I still cannot reproduce an Atlas crash and valgrind is telling me nothing.
comment:10 by , 11 years ago
novbo=true Seems to help for now. I'll report back if I get another crash.
comment:11 by , 11 years ago
novbo=true Gives bad artifacts with sheep, Cretan Date Palms, Mauryan civ center, and other meshes. However, it does seem to help prevent Atlas crashes so far.
comment:12 by , 11 years ago
Yeah, it's only meant for testing purposes :) But now we know there's a workaround for your crash - and more importantly, it's related to vertex buffers.
As for the artifacts you're seeing with novbo, Philip has found the likely cause of that (incorrect range being passed to glDrawRangeElements
in model rendering), so we'll fix that first. It might solve your original crash, if not, at least you'll have a workaround for using Atlas until it does get fixed.
comment:14 by , 11 years ago
Ok, the latest autobuild has Philip's fix. Can you try Atlas without novbo=true
to see if it still crashes?
comment:15 by , 11 years ago
novbo=false gives a crash within minutes of elevating the terrain. Crash happens as I am modifying/elevating the terrain and moving the camera (the camera bit may be superfluous).
novbo=true still seems to prevent any crash.
comment:16 by , 11 years ago
Ok, we may need to do more in depth debugging of this after A14 release. It's probably not worth blocking the release for Atlas, and it's not an easy problem to reproduce :(
comment:17 by , 11 years ago
Milestone: | Alpha 14 → Alpha 15 |
---|---|
Priority: | Release Blocker → Must Have |
This and #2081 are so far only reported by Michael.
comment:18 by , 10 years ago
Milestone: | Alpha 15 → Alpha 16 |
---|
I'd venture and say it's probably linked to drivers...
comment:19 by , 10 years ago
Milestone: | Alpha 16 |
---|---|
Resolution: | → worksforme |
Status: | new → closed |
Reported by Michael in IRC that Atlas doesn't crash now, and is fairly stable. So I will close the ticket as "works for me". If the problem comes back, please reopen.
Unfortunately, the Atlas crash does not create a crashlog.