bugfluxus - Bugs: bug #29038, ode crash with double precision

 
 

bug #29038: ode crash with double precision

Submitted by:  gabor papp <gabor_papp>
Submitted on:  Tue 02 Mar 2010 09:43:37 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Wont Fix
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 14 Mar 2010 08:42:28 AM UTC, comment #2:

the problem is with build-sphere. it generates zero size triangles. the first triangle vertices are something like this, depending on the sphere resolution:

0.000 1.000 0.000
0.000 0.951 0.309
0.000 1.000 0.000

gabor papp <gabor_papp>
Project Member
Sun 14 Mar 2010 07:57:39 AM UTC, comment #1:

also crashes with ode 0.11 float on osx:

ODE Message 2: mass must be > 0 in dMassCheck() File mass.cpp Line 49

ODE INTERNAL ERROR 1: assertion "bNormalizationResult" failed in _dNormalize4() [../../include/ode/odemath.h]
Abort trap

gabor papp <gabor_papp>
Project Member
Tue 02 Mar 2010 09:43:37 AM UTC, original submission:

works with float, crashes with double precision:

(clear)
(hint-none)
(hint-wire)

(backfacecull 0)

(collisions 1)

(gravity #(0 0 0))
(let ([s (build-sphere 10 10)])
(with-primitive s
(for ([i (in-range (quotient (pdata-size) 3))])
(let* ([t (build-polygons 3 'triangle-list)]
[p0 (pdata-ref "p" (* i 3))]
[p1 (pdata-ref "p" (+ (* i 3) 1))]
[p2 (pdata-ref "p" (+ (* i 3) 2))])
(with-primitive t
(pdata-set "p" 0 p0)
(pdata-set "p" 1 p1)
(pdata-set "p" 2 p2))
(active-box t))))
(destroy s))

gabor papp <gabor_papp>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gabor_papp (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 14 Mar 2010 08:42:28 AM UTCgabor_pappStatusNone=>Wont Fix
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1