widelands icon indicating copy to clipboard operation
widelands copied to clipboard

Crash while playing

Open bunnybot opened this issue 10 months ago • 4 comments

TomIMirrored from Codeberg Created on Tue Apr 23 18:48:35 CEST 2024 by TomI


Attached game crashes without any other actions 3 minutes after loading/starting.

Steps to reproduce the behavior:

  1. Start attached Game a06.wgf
  2. dont do anything - just wait --> crash after 3 min

Expected behavior :-) game should keep going

Crash log

Autogenerated crash report for 1 crash(es):

  • 2024-04-23T18.25.43.txt

Technical report:

Version: 1.2 Release
Operating System: Linux
Compiled with SDL version: 2.28.5
SDL video driver: x11
Locale: de_DE.UTF-8
Home Directory: /home/ti/.widelands
Configuration File: /home/ti/.widelands/config
Data Directory: /app/share/widelands
Locale Directory: /app/share/widelands/locale
Executable Directory: /app/bin/
Enabled Add-Ons: foreign_planet.wad
Inactive Installed Add-Ons:

crash/2024-04-23T18.25.43.txt

Crash report for Widelands 1.2 Release at 2024-04-23T18.25.43, signal 11 (Speicherzugriffsfehler)

**** BEGIN BACKTRACE ****
widelands(+0x43c95b)[0x563088ae595b]
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x3ee80)[0x7feb92b3de80]
widelands(_ZNK11MouseCursor10is_visibleEv+0x4)[0x563088bd3694]
widelands(_ZN17InteractivePlayer13draw_map_viewEP7MapViewP12RenderTarget+0x89a)[0x563088ddeeaa]
widelands(_ZN2UI5Panel13do_draw_innerER12RenderTarget+0x7a)[0x563088cf042a]
widelands(_ZN2UI5Panel7do_drawER12RenderTarget+0x15b)[0x563088cf026b]
widelands(_ZN2UI5Panel13do_redraw_nowEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x8a)[0x563088cf164a]
widelands(_ZN2UI5Panel6do_runEv+0x51f)[0x563088cf452f]
widelands(_ZN9Widelands4Game3runENS0_13StartGameTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_+0x70d)[0x563088c134ed]
widelands(_ZN9Widelands4Game13run_load_gameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_+0x5a1)[0x563088c148a1]
widelands(_ZN6FsMenu8LoadGame10clicked_okEv+0x41f)[0x563088d1cb4f]
widelands(_ZNK13Notifications6SignalIJEEclEv+0xde)[0x563088cd7ace]
widelands(_ZN2UI6Button19handle_mousereleaseEhii+0x84)[0x563088cd7874]
widelands(_ZN2UI5Panel15ui_mousereleaseEhii+0x7c)[0x563088cf105c]
widelands(_ZN13WLApplication12handle_inputEPK13InputCallback+0x37e)[0x563088aeeb0e]
widelands(_ZN2UI5Panel6do_runEv+0x4d3)[0x563088cf44e3]
widelands(_ZN6FsMenu8MainMenu9main_loopEv+0x32)[0x563088d2ca52]
widelands(_ZN13WLApplication3runEv+0x5c6)[0x563088af4986]
widelands(main+0xa2)[0x5630889d9732]
/usr/lib/x86_64-linux-gnu/libc.so.6(+0x2808a)[0x7feb92b2708a]
/usr/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x8b)[0x7feb92b2714b]
widelands(_start+0x25)[0x563088ae56f5]
**** END BACKTRACE ****

Version:

  • OS: openSuse ti@nr12l:/etc> cat /etc/os-release NAME="openSUSE Leap" VERSION="15.3" ID="opensuse-leap" ID_LIKE="suse opensuse" VERSION_ID="15.3" PRETTY_NAME="openSUSE Leap 15.3" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:15.3"

  • Widelands Version:

  1. Mär 15:49 Downloads/Widelands-1.2-x86_64.AppImage /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=widelands org.widelands.Widelands
  • Enabled Add-Ons: -->see Crash report

bunnybot avatar Apr 23 '24 16:04 bunnybot

tothxaMirrored from Codeberg On Tue Apr 23 23:47:25 CEST 2024, Tóth András (tothxa) wrote:


Crash is reproducible on antix/Debian buster etc. Logic thread backtrace looks more useful (re #6325):

##############################
FATAL ERROR: Received signal 11 (Szegmentálási hiba)
Backtrace:
widelands(+0x7c4bbb)[0x558a133f8bbb]
/lib/x86_64-linux-gnu/libc.so.6(+0x37970)[0x7fe7ce954970]
widelands(_ZN2AI9DefaultAI21expedition_managementERNS_12ShipObserverE+0x114)[0x558a12fe5d34]
widelands(_ZN2AI9DefaultAI11check_shipsERK4Time+0x495)[0x558a12fe6485]
widelands(_ZN2AI9DefaultAI5thinkEv+0xbab)[0x558a1301b05b]
widelands(_ZN26SinglePlayerGameController5thinkEv+0x113)[0x558a1332a8c3]
widelands(_ZN9Widelands4Game5thinkEv+0xdd)[0x558a1337017d]
widelands(_ZN15InteractiveBase16game_logic_thinkEv+0x163)[0x558a1325f183]
widelands(_ZN2UI5Panel12logic_threadEv+0x8b)[0x558a132d301b]
/lib/x86_64-linux-gnu/libstdc++.so.6(+0xbbb2f)[0x7fe7ced35b2f]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7fa3)[0x7fe7cee6cfa3]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7fe7cea1606f]

Please report this problem to help us improve Widelands, and provide the complete output.
##############################
The crash report was also saved to /home/proba/.widelands/crash/2024-04-23T23.39.54.txt

end of stdout with --verbose:

[05:29:05.395 game] DEBUG: Player: 6; Jobs: 2; delay: 2236; gamespeed: 4000 
[05:29:05.395 game] DEBUG: AI 6: Warship Bärenmarder is looking for assignment.
[05:29:05.395 game] DEBUG: AI 6: Port Lar’nskog has 2 ships assigned
[05:29:05.395 game] DEBUG: AI 6: Port Suldal has 1 ships assigned
[05:29:05.395 game] DEBUG: AI 6: Assigning warship Bärenmarder to port Suldal
[05:29:05.395 game] INFO: Increasing a PlayerCommand's duetime from 19745395 to 19745396 (delta 1)
[05:29:05.395 game] DEBUG: AI 6: Warship Thron is looking for assignment.
[05:29:05.395 game] DEBUG: AI 6: Port Lar’nskog has 2 ships assigned
[05:29:05.395 game] DEBUG: AI 6: Port Suldal has 2 ships assigned
[05:29:05.395 game] DEBUG: AI 6: all ports have enough guard ships, warship Thron retreats to Lar’nskog
[05:29:05.395 game] INFO: Increasing a PlayerCommand's duetime from 19745395 to 19745396 (delta 1)
[05:29:05.395 game] DEBUG: 6: Odin at 246x239: explore uphold, visited first time

bunnybot avatar Apr 23 '24 21:04 bunnybot

tothxaMirrored from Codeberg On Wed Apr 24 00:19:54 CEST 2024, Tóth András (tothxa) wrote:


By watching the game, it looks like the problem is due to the ship Odin being refitted to transport ship, so by the time the AI processes the waiting for command notification, the ship is no longer a warship. Either the accounting in ShipObserver or the condition in DefaultAI::check_ships() at defaultai_seafaring.cc:535 should be fixed.

(though I don't quite get which access in expedition_management() is causing the segfault with this output and backtrace...)

bunnybot avatar Apr 23 '24 22:04 bunnybot

Assigned to tothxa

bunnybot avatar Apr 23 '24 22:04 bunnybot

HeHaMirrored from Codeberg On Wed Apr 24 15:27:59 CEST 2024, HeHa wrote:


Autogenerated crash report for 1 crash(es):

  • 2024-04-24T15.15.11.txt

Technical report:

Version: 1.2 Release
Operating System: Linux
Compiled with SDL version: 2.0.20
SDL video driver: x11
Locale: de_DE.utf-8
Home Directory: /home/Helmut_Rudolf_Haßfurther/.widelands
Configuration File: /home/Helmut_Rudolf_Haßfurther/.widelands/config
Data Directory: /usr/share/games/widelands/data
Locale Directory: /usr/share/games/widelands/data/locale
Executable Directory: /usr/games/
Enabled Add-Ons: frisians-economy-ultra.wad, artifacts-extendable.wad, europeans_tribe.wad
Inactive Installed Add-Ons: boss-village.wad, royal.wad, pioneer-post.wad, stronger-trading-outpost.wad, first_heroes_win.wad, explorer-wins.wad, WideGreen.wad, Silberberg.wad, basic-outpost.wad, auto_soldiers_cs.wad, fishy.wad, tropics.wad, impassable_water.wad, europeans_food_production.wad, europeans_map_modified.wad, enhanced_debug_scripts.wad

crash/2024-04-24T15.15.11.txt

Crash report for Widelands 1.2 Release at 2024-04-24T15.15.11, signal 11 (Speicherzugriffsfehler)

**** BEGIN BACKTRACE ****
widelands(+0x2f928e)[0x555b182ff28e]
/lib/x86_64-linux-gnu/libc.so.6(+0x42520)[0x7f3ea0e4d520]
widelands(_ZN2UI5Panel13do_redraw_nowEbRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x153)[0x555b18464443]
widelands(_ZN2UI5Panel6do_runEv+0x7d1)[0x555b18464e91]
widelands(_ZN9Widelands4Game3runENS0_13StartGameTypeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES9_+0x53c)[0x555b183d1c7c]
widelands(_ZN9Widelands4Game13run_load_gameERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES8_+0x6c4)[0x555b183c6814]
widelands(_ZN6FsMenu8MainMenu6actionENS_10MenuTargetE+0x25b)[0x555b1849e24b]
widelands(+0x3595fe)[0x555b1835f5fe]
widelands(+0x45dce9)[0x555b18463ce9]
widelands(+0x3595fe)[0x555b1835f5fe]
widelands(_ZN2UI14BaseListselect17handle_mousepressEhii+0x14d)[0x555b1845e17d]
widelands(+0x465a03)[0x555b1846ba03]
widelands(_ZN2UI5Panel13ui_mousepressEhii+0xeb)[0x555b1846bbbb]
widelands(_ZN13WLApplication12handle_inputEPK13InputCallback+0x28e)[0x555b1830396e]
widelands(_ZN2UI5Panel6do_runEv+0x775)[0x555b18464e35]
widelands(_ZN6FsMenu8MainMenu9main_loopEv+0x4d)[0x555b184934dd]
widelands(_ZN13WLApplication3runEv+0x5f9)[0x555b1830b899]
widelands(main+0xbb)[0x555b182393db]
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7f3ea0e34d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7f3ea0e34e40]
widelands(_start+0x25)[0x555b182fe1f5]
**** END BACKTRACE ****

Auch bei mir, nach 6 Stunden Seekrieg aktiviert, spiele europäer

bunnybot avatar Apr 24 '24 13:04 bunnybot