Bug#983493: aborts on physics levels due to assertion failure
John Scott
jscott at posteo.net
Thu Feb 25 02:25:04 GMT 2021
Package: xmoto
Version: 0.6.1+repack-3
Severity: normal
I'm not sure if this bug lies in XMoto or Chipmunk, but I can reproduce
it by starting XMoto, navigating to the physics levels, pressing
'Randomize' and playing the top one.
On the command-line, Chipmunk prints
Initializing cpSpace - Chipmunk v7.0.3 (Debug Enabled)
Compile with -DNDEBUG defined to disable debug mode and runtime assertion checks
Aborting due to Chipmunk error: Mass must be positive and finite.
Failed condition: 0.0f <= mass && mass < INFINITY
Source:/build/chipmunk-ZdE9zg/chipmunk-7.0.3/src/cpBody.c:257
Here's the backtrace in XMoto:
#0 __GI_raise (sig=sig at entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1 0x00007ffff7323537 in __GI_abort () at abort.c:79
#2 0x00007ffff7f5f0df in cpBodySetMass (body=body at entry=0x5555565ac420, mass=mass at entry=inf) at ./src/cpBody.c:257
#3 0x00007ffff7f5fa25 in cpBodyInit (body=0x5555565ac420, mass=mass at entry=inf, moment=moment at entry=inf) at ./src/cpBody.c:61
#4 0x00007ffff7f5fa7b in cpBodyNew (mass=mass at entry=inf, moment=moment at entry=inf) at ./src/cpBody.c:71
#5 0x000055555583e9d2 in ChipmunkWorld::initPhysics(PhysicsSettings*, Level*) (
this=this at entry=0x5555565b0a80, i_physicsSettings=0x555556587290, i_level=0x555556582150) at ./src/xmscene/ChipmunkWorld.cpp:57
#6 0x000055555583eade in ChipmunkWorld::ChipmunkWorld(PhysicsSettings*, Level*)
(this=0x5555565b0a80, i_physicsSettings=<optimized out>, i_level=<optimized out>) at ./src/xmscene/ChipmunkWorld.cpp:33
#7 0x000055555585c1bb in Scene::prePlayLevel(DBuffer*, bool, bool, bool)
(this=this at entry=0x5555565814e0, i_recorder=0x0, i_playEvents=i_playEvents at entry=true, i_loadMainLayerOnly=i_loadMainLayerOnly at entry=false, i_loadBSP=i_loadBSP at entry=true) at ./src/xmscene/Scene.cpp:634
#8 0x0000555555794b27 in StatePreplayingGame::preloadLevels() (this=0x555556000080) at ./src/states/StatePreplayingGame.cpp:51
#9 0x0000555555793d72 in StatePreplaying::enter() (this=0x555556000080) at ./src/states/StatePreplaying.cpp:141
#10 0x0000555555768c47 in StateManager::pushState(GameState*) () at ./src/states/StateManager.cpp:185
#11 0x0000555555752c29 in StateLevelPackViewer::checkEvents() (this=0x55555619e310) at ./src/states/StateLevelPackViewer.cpp:126
#12 0x000055555576d0ad in StateMenu::xmKey(InputEventType, XMKey const&) (this=0x55555619e310, i_type=INPUT_UP, i_xmkey=...)
at ./src/states/StateMenu.cpp:140
#13 0x00005555557d4c7e in GameApp::manageEvent(SDL_Event*) () at ./src/xmoto/GameInit.cpp:783
#14 0x00005555557d59ab in GameApp::run_loop() () at ./src/xmoto/GameInit.cpp:875
#15 0x00005555557da355 in GameApp::run(int, char**) () at ./src/xmoto/GameInit.cpp:159
#16 0x0000555555652b0e in main () at ./src/xmoto/GameInit.cpp:117
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing'), (2, 'unstable'), (1, 'testing-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-3-amd64 (SMP w/2 CPU threads)
Kernel taint flags: TAINT_USER, TAINT_FIRMWARE_WORKAROUND
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages xmoto depends on:
ii libbz2-1.0 1.0.8-4
ii libc6 2.31-9
ii libchipmunk7 7.0.3-3
ii libcurl3-gnutls 7.74.0-1.1
ii libgcc-s1 10.2.1-6
ii libglu1-mesa [libglu1] 9.0.1-1
ii libjpeg62-turbo 1:2.0.5-2
ii liblua5.1-0 5.1.5-8.1+b3
ii libode8 2:0.16.2-1
ii libpng16-16 1.6.37-3
ii libsdl-mixer1.2 1.2.12-16+b1
ii libsdl-net1.2 1.2.8-6+b1
ii libsdl-ttf2.0-0 2.0.11-6
ii libsdl1.2debian 1.2.15+dfsg2-5
ii libsqlite3-0 3.34.1-2
ii libstdc++6 10.2.1-6
ii libxdg-basedir1 1.2.0-2+b1
ii libxml2 2.9.10+dfsg-6.3+b1
ii xmoto-data 0.6.1+repack-3
ii zlib1g 1:1.2.11.dfsg-2
xmoto recommends no packages.
xmoto suggests no packages.
-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/pkg-games-devel/attachments/20210224/d23e5fd5/attachment.sig>
More information about the Pkg-games-devel
mailing list