Comments (3)
I got it to reproduce when loading the save the second time, it happened during loading. Interestingly, it's trying to draw... z+14?
That's way out of bounds.
Looks like it continues the while-loop even after reaching Z+10. I'm guessing it doesn't crash all the time because of how the memory is aligned - it only sometimes manages to escape valid memory and trigger the segfault. Still it shouldn't try to read anything past max height, there's definitely nothing there and it could end up reading bad data.
from cataclysm-dda.
This should probably prevent the crash in the future, but the circumstances to trigger it aren't clear to me. I wasn't able to get it to crash more than the one time (with or without this patch).
index 0eaa347af9..c640f23c79 100644
--- a/src/cata_tiles.cpp
+++ b/src/cata_tiles.cpp
@@ -4049,6 +4049,9 @@ bool cata_tiles::draw_critter_above( const tripoint &p, lit_level ll, int &heigh
// Search for a creature above
while( pcritter == nullptr && !here.dont_draw_lower_floor( scan_p ) &&
scan_p.z - you.pos().z <= fov_3d_z_range ) {
+ if( scan_p.z >= OVERMAP_HEIGHT ) {
+ break;
+ }
pcritter = get_creature_tracker().creature_at( scan_p, true );
scan_p.z++;
}
from cataclysm-dda.
I've had this error a lot, i could not reproduce it properly, and it was almost completely gone when i changed my build from MSVC to other
from cataclysm-dda.
Related Issues (20)
- cooking oil should spawn in houses HOT 3
- Add explicit "roofs" to the nether monster corpse
- Nuclear power plant stairs are misaligned.
- Base camp missions - anvil not registering HOT 3
- Emergency recall on an upgrade mission does not remove terrain construction site markers
- Homemade napalm HOT 2
- "Polycarbonate chunk" is used in only one recipe.
- Common crafting queue for Characters
- Stop companions from hogging the vehicle driver's seat until they can actually drive. HOT 1
- Followers can be sent to hunt for mutagen samples HOT 2
- Starting equipment items missing, but still available for certain interactions HOT 3
- Broken Hub01 refugee center quest line?
- Error when MOM & Aftershock are used HOT 1
- Vehicle related EOCs HOT 1
- Condoms still spawn opened in most recent 0.H release candidate
- Attempting to cyclically nest a molle webbing belt and pouch causes both items to disappear.
- Cannot refill vehicle mounted 200L Steel Drum with clean water HOT 1
- Allow math to affect item statistics HOT 1
- Can't Plant Cattail Seeds? HOT 1
- Lockpick crafting uses lockpicking proficiency, but doesn't improve it HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cataclysm-dda.