I've noticed a freeze issue too. I suspect something in my raycasting code is causing it to get stuck forever.
It's incredibly annoying.
Maren at
Re: Voxed (version 04/20/2008) crashes when I move
When did it start happening?
Awesoken at
I always remember there being a rare crash or freeze - rare being on the order of once per hour. The fact that it happens so rarely and randomly for me makes it very hard to find. If you can tell me how to reproduce it easily, I suppose I can take a look at it. Another suggestion would be to compare the source code changes between the old and new versions. Test if each block of code that changed affects things.
ConsistentCallsign at
The old version crashes too.
I will use the process of elimination to find out what exactly makes the program crash.
ConsistentCallsign at
Now it won't crash no matter how hard I try, it's weird.
Yesterday, Voxed version x/x/2005 crashed, so I downloaded the new version (04/20/2008) and that also crashed, but I did not restart my computer after I had replaced the old Voxed with the new Voxed, so maybe a part of the old version was still my computer's cache somewhere, making my computer crash! :o :P
So far, I haven't had any crashes after restarting my computer, and I hope it stays that way :D
Edited by ConsistentCallsign at
hansk at
Sounds like it's reading something from uninitialized memory. I will look into it if I can get it to happen.
ConsistentCallsign at
Here's the map that makes Voxed crash: http://rapidshare.com/files/112044252/untitled.zip
There are no .kv6 sprites in the map. There is just a very rough surface. Voxed tends to crash when I fly around the map, it crashes when I fly fast by holding the shift key down and it also crashes when I fly slow too.
hansk at
ConsistentCallsign said at
Here's the map that makes Voxed crash: http://rapidshare.com/files/112044252/untitled.zip
There are no .kv6 sprites in the map. There is just a very rough surface. Voxed tends to crash when I fly around the map, it crashes when I fly fast by holding the shift key down and it also crashes when I fly slow too.
Looks like there is at least one "hole" in the map. It's rendered as a yellow dot. I can't get it to freeze myself, but that could be the cause..
ConsistentCallsign at
hansk said at
I can't get it to freeze myself
Try strafing fast while looking down at the map, and it will crash after like 10 seconds :D
It's trying to read from 0x038efe04 when vbuf is 0x038f0040. Registers: eax = 0xffffff1a ecx = 0x00000001 edi = 0x038f019c
This happens when you move the camera somewhere near 100,100 and look down while moving up/down. I'm not sure how to properly fix this, any help would be appreciated Ken :)
EDIT: It definitely has something to do with that map, clearing the voxels in the corner will fix the crash.
Also, is sethollowfill() meant to fix holes? It clears the yellow dot I mentioned before, but doesn't fix the crash.
Edited by hansk at
Awesoken at
The access violation there is where it's reading the next color for a ceiling slab. A ceiling slab is a list of colors that has a transparent voxel below it. More common is a floor slab, which is a list of colors that has a transparent voxel above it. All VXL maps must have at least 1024^2 floor slabs. Ceiling slabs occur for any column where there are 2 or more air gaps. They can also occur if there's only 1 air gap, when a neighboring column exposes a lower part of the slab. This doesn't really say much, other than the fact that your map is corrupt. This bug is either the result of a faulty Voxed tool, or a rare bug in my RLE compiler. I suppose the challenge now is to reproduce the problem from a blank starting map. ; )
As for sethollowfill(): imagine you filled the map with water, using every voxel at the top of the map (x,y,z=0) as a starting point. Some surface voxels would never touch water because they are buried inside the map. Sethollowfill() removes these areas. The reason sethollowfill() doesn't fix your map is because it is optimized to only fill in the parts it needs to, using the insslab() function. I suppose it could be rewritten to rewrite the entire map from the bit array (vbit), but then it would probably run slower.
Maren at
This reminds me, globe.exe always freezes when I look up.
ConsistentCallsign at
hansk said at
It definitely has something to do with that map, clearing the voxels in the corner will fix the crash.
Deleting the voxels in the corner, will stop the crash. The crash also stops if you fill the "gaps" or "hollow" voxels with solid voxels, but I do not want an empty void or a big block of voxels there, so I replaced the old vegetation in the corner with new vegetation and saved the map, but it still continued to crash.. It only happens in that corner, which is odd, because I used the same grass tile in the other corners too..
Awesoken said at
map is corrupt.
Is it easy to repair a corrupted map?
ConsistentCallsign at
I managed to reproduce the error on my new computer: I downloaded a fresh copy of http://www.advsys.net/ken/voxlap/voxlap_src.zip and unzipped it to my desktop. Then I used the new, unzipped voxed.exe to delete everything in the new, unzipped .vxl map and saved it as empty.vxl. Then I inserted/melted some .kv6 sprites into the corner of the map (coordinates: 0,0,255) and it still continued to crash.
The error occurs on all .vxl maps where there are hollow/ceiling slab voxels in the 0,0,255 corner. If my .vxl maps are corrupted, then the .vxl file in http://www.advsys.net/ken/voxlap/voxlap_src.zip must be damaged.
Edited by ConsistentCallsign at
Awesoken at
I got it to suddenly quit a few times when doing home and end in that corner, but it happened at random times, and at a rate of about once per minute. A 100% reproducible crash would really be helpful in finding this problem.
ConsistentCallsign at
I narrowed it down a little. The corrupted/weird voxels are somewhere in this thing: http://i225.photobucket.com/albums/dd202/highwingx3/error.png
If I insert a ceiling over that thing or if I insert a flat floor under it, it stops crashing! If I then save the map with the newly inserted platform/floor/ceiling, it will continue to crash the next time I load the map.. :(