[Bugs] #3361 Physics UNSP: Physics: grab objects crashes the activity

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Sat May 12 12:54:55 EDT 2012


#3361: Physics: grab objects crashes the activity
------------------------------------------+---------------------------------
    Reporter:  manuq                      |          Owner:  garycmartin                
        Type:  defect                     |         Status:  new                        
    Priority:  Unspecified by Maintainer  |      Milestone:  Unspecified by Release Team
   Component:  Physics                    |        Version:  Git as of bugdate          
    Severity:  Unspecified                |       Keywords:  12.1.0                     
Distribution:  Unspecified                |   Status_field:  Unconfirmed                
------------------------------------------+---------------------------------
Changes (by dsd):

 * cc: dsd (added)


Comment:

 The Box2D egg in lib/ is not used, since recent OLPC builds include the
 pybox2d package in /usr/lib/python2.7/site-packages.

 The Box2D egg was built using SWIG 1.x, whereas the one in site-packages
 was built with SWIG 2.x.

 Elements calls into Box2D and is sensitive to the API generated by SWIG.
 The Elements egg in Physics seems to depend on the SWIG 1.x API, but since
 we're using the box2d from SWIG 2.x, we get this crash.

 Elements upstream seems to be dead (http://elements.linuxuser.at/ doesn't
 load).

 The above patch (removing .getAsType() call) is correct here.

 This will break compatibility with older Box2D versions. I suggest
 removing the one in lib/.

-- 
Ticket URL: <http://bugs.sugarlabs.org/ticket/3361#comment:18>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list