Terrain - crash on collision (breve 2.4b - Feb 26 version)
My main project now crashes when I try to use a terrain with custom height points. :( Also, a built in demo that does this crashes as well, Terrain-Wave.tz, under the Demos>Terrain-Demos menu.
It also crashes in any of these cases (but unlike the custom height, not on every run):
- If I use the regular fractal terrain (*) and later try to move the terrain with "floor move to (0.0,-2.0,0.0)." (where floor is a Terrain object).
- If I use the regular fractal terrain and later try to apply a custom texture
The crash is not always immediate, it seems to happen when the first object collides with the terrain. A default fractal terrain with a default texture and position works, but any changes to height points, texture or position causes a crash whenever a collision occurs.
Both my simulation and the Terrain-Wave.tz work as expected on the older version of breve I downloaded earlier this month (2.4b - Feb 12 version - OS X dmg)
(*) This is what I'm using:
floor = new Terrain. floor generate with-ruggedness .4 with-height 15.

Terrain - crash on collision (breve 2.4b - Feb 26 version)
Here is the relevant part of the crash report:
(breve's 2.4b version still says 2.3 on the Info.plist file, so it shows up as 2.3 in the crash report - this was the 2.4b from Feb 26, Mac OS X dmg)
Terrain - crash on collision (breve 2.4b - Feb 26 version)
The demo terrain.waves works on my machine...(feb 12 version)
IIRC, it now has a different texture, but for the rest seems identical...
I didn't change anything in the demo, not sure I got the gist of your message on that one correct, though.
Terrain - crash on collision (breve 2.4b - Feb 26 version)
Downloading feb 26 now, see if it'll make a difference...
Terrain - crash on collision (breve 2.4b - Feb 26 version)
Indeed, it crashes. After a short while. Console says: Signal 10 detected -- attempting steve stack trace:
Quote:breve engine tack trace:
0) TerrainWave (0x5652540) iterate (line 39 of "/Applications/breve/breve.app/Contents/Resources/demos/Terrain-Demos/TerrainWave.tz")
1) TerrainWave (0x5652540) iterate (line 560 of "Control.tz")
Terrain - crash on collision (breve 2.4b - Feb 26 version)
Thanks -- I've fixed the problem. I'm out of town right now and cannot update the beta, but I'll upload a new beta in the next day or two.
- jon
Terrain - crash on collision (breve 2.4b - Feb 26 version)
It's ok, I still have a copy of the older version so I'm using it in the meantime. Thanks!