Opened 13 years ago

Closed 13 years ago

#26 closed defect (fixed)

Aven says "Bug in Program" on certain 3d files

Reported by: Mike Owned by: Olly Betts
Priority: minor Milestone: 1.2.2
Component: aven Version: 1.2.1
Keywords: Cc:

Description

Windows version of Aven 1.2.1 flags "Assertion Failed! ... file gfxcore.cc line 2233 Expression z<=z_ext" on certain .3d files. Pressing "Ignore" button, aven continue and produces a result but I haven't checked if it's correct! "Abort" goes to "Bug in program detected. Please report this to the authors".

On Ubuntu, the same 3d file also fails. There is no assertion failiure dialog box and it goes straight to the "Bug in program..." dialog.

Graham Mullan referred to the Asertion Failure on the Survex list but doesn't seem to have raised a ticket. I have not seen the problem on any of my "real" survey files but found it with the file cave.3d buried in the Therion samples/survex directory. I have reduced this to a single simple file, attached, which reproduces the problem. It's hard to say how serious this is.

Attachments (1)

crash.svx (303 bytes) - added by Mike 13 years ago.

Download all attachments as: .zip

Change History (2)

Changed 13 years ago by Mike

Attachment: crash.svx added

comment:1 Changed 13 years ago by Olly Betts

Milestone: 1.2.2
Resolution: fixed
Status: newclosed

Thanks. I strongly suspect this is the same issue Graham hit.

It looks to be just a rounding issue - if I print out z - z_ext it's 0.00000000000000710543 when the assertion fails. It's a new assertion in 1.2.1, and ignoring it should be fine when you're given the option to.

I've added a threshold to the assertion in r3841 which fixes this for me with crash.svx.

Note: See TracTickets for help on using tickets.