Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#29 closed defect (fixed)

Assertion failed gfxcore.cc line 2232

Reported by: Duncan Collis Owned by: Olly Betts
Priority: minor Milestone: 1.2.2
Component: aven Version: 1.2.1
Keywords: aven tubes assertion gfxcore Cc:

Description

On clicking 'show passage tubes' for the attached 3d file I get the following error message (which, incidentally, I can't copy + paste, which is unhelpful)

Microsoft Visual C++ Runtime Library

Assertion failed!

Program: C:\Program Files\Survex\aven.exe File: gfxcore.cc Line: 2232

Expression: z >=0.0

Attachments (1)

48H-I12-144-liangfeng.3d (2.4 KB) - added by Duncan Collis 13 years ago.

Download all attachments as: .zip

Change History (3)

Changed 13 years ago by Duncan Collis

Attachment: 48H-I12-144-liangfeng.3d added

comment:1 Changed 13 years ago by Olly Betts

Milestone: 1.2.2
Resolution: fixed
Status: newclosed

This is almost certainly the same sort of rounding issue as #26. The example doesn't actually fail for me, but that's probably a CPU difference (I'm running x86-64, whereas you're presumably 32 bit). I've fixed it not to fail on that in r3845.

The error dialog actually comes from the Microsoft C++ runtime, so we can't do much about it not allowing copy and paste.

It seems from Mike's report that you get the option to "Ignore", which it should be safe to do as a workaround.

comment:2 Changed 13 years ago by Olly Betts

Ah, I missed the "show passage tubes" part before, but just noticed it now.

Yes, I can reproduce with the issue with that. The change in r3845 helps, but it then fails on the next assertion. These assertions are just not correct with tubes, as the tubes can stick out above the highest survey station or below the lowest, so in r3846 I've changed it to clamp the value used to calculate the colour in these cases, like we already do elsewhere.

Note: See TracTickets for help on using tickets.