OpenMW 2023.04.10: crash on startup

Support for running, installing or compiling OpenMW

Before you submit a bug report for the first time, please read: Bug reporting guidelines
krogg
Posts: 30
Joined: 31 Mar 2020, 03:18

Re: OpenMW 2023.04.10: crash on startup

Post by krogg »

psi29a wrote: 02 May 2023, 11:09 Here is 0.48 RC9: viewtopic.php?p=73657#p73657

Just to verify that this works.

For your crashy set of files, can't you just clone the repo again and not nuke the .git directory? Then see what the last commit is?
Since my last attempt was on a directly-linked version, 0.48 RC9: viewtopic.php?p=73657#p73657 does the "the last commit" question still apply?
krogg
Posts: 30
Joined: 31 Mar 2020, 03:18

Re: OpenMW 2023.04.10: crash on startup

Post by krogg »

An update.

Now on a Linux From Scratch 11.3 system (before I was 11.2) I decided to fetch the stable pre-built binary and give that a try before I even think about compiling OpenMW. I used the 0.48 version referenced and linked in this thread.

On a different version & install of the OS and a different version of OpenMW, I still get a crash. Every time. The launcher works. The initial animation (with sound) plays. I can see the part where it loads the mods, then it crashes. Should I conclude that OpenMW and LFS just won't ever get along?

For what it's worth, the log:

Code: Select all

Crash handler installed
Loading config file: launcher.cfg
Loading config file: /home/bob/.config/openmw/launcher.cfg
Loading config file: /home/bob/.config/openmw/openmw.cfg
Loading config file: /home/bob/openmw_bin/openmw-0.48.0-Linux-64Bit/openmw.cfg
Loading config file: /home/bob/.config/openmw/openmw.cfg
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
Loading settings file: /home/bob/openmw_bin/openmw-0.48.0-Linux-64Bit/defaults.bin
Loading settings file: /home/bob/.config/openmw/settings.cfg
The current profile is:  "2023-10-16T18:24:40"
[ALSOFT] (WW) Failed to load libpulse.so.0
[ALSOFT] (WW) Failed to initialize backend "pulse"
Crash handler installed
Loading config file: /home/bob/openmw_bin/openmw-0.48.0-Linux-64Bit/openmw.cfg
Loading config file: /home/bob/.config/openmw/openmw.cfg
Logs dir: /home/bob/.config/openmw/
User data dir: /home/bob/.local/share/openmw/
Screenshots dir: /home/bob/.local/share/openmw/screenshots
Loading settings file: /home/bob/openmw_bin/openmw-0.48.0-Linux-64Bit/defaults.bin
Loading settings file: /home/bob/.config/openmw/settings.cfg
[18:29:35.062 I] OpenMW version 0.48.0
[18:29:35.062 I] Revision: 3b669c2b02
[18:29:35.062 I] Using default (English) font encoding.
[18:29:35.062 W] No such dir: "/home/bob/.local/share/openmw/data"
[18:29:35.062 I] OSG version: 3.6.5
[18:29:35.062 I] SDL version: 2.26.3
[18:29:35.062 I] Loading shader settings file: "/home/bob/.config/openmw/shaders.yaml"
[18:29:35.109 I] OpenGL Vendor: Intel
[18:29:35.109 I] OpenGL Renderer: Mesa Intel(R) HD Graphics 4600 (HSW GT2)
[18:29:35.109 I] OpenGL Version: 4.6 (Compatibility Profile) Mesa 22.3.5
[18:29:35.109 I] Using reverse-z depth buffer
[18:29:35.110 I] Adding BSA archive /home/bob/win_hold/proggy/Bethesda Softworks/Morrowind/Data Files/Morrowind.bsa
[18:29:35.111 I] Adding BSA archive /home/bob/win_hold/proggy/Bethesda Softworks/Morrowind/Data Files/Tribunal.bsa
[18:29:35.112 I] Adding BSA archive /home/bob/win_hold/proggy/Bethesda Softworks/Morrowind/Data Files/Bloodmoon.bsa
[18:29:35.112 I] Adding data directory /home/bob/openmw_bin/openmw-0.48.0-Linux-64Bit/./resources/vfs
[18:29:35.112 I] Adding data directory /home/bob/win_hold/proggy/Bethesda Softworks/Morrowind/Data Files
[18:29:35.200 I] Lua version: Lua 5.1.4 (LuaJIT 2.1.0-beta3)
[18:29:35.201 I] Loading font file magic_cards_regular.fnt
[18:29:35.208 I] Loading font file daedric_font.fnt
[18:29:35.214 I] Loading font file DejaVuLGCSansMono.omwfont
[18:29:35.237 I] Initializing OpenAL...
[ALSOFT] (WW) Failed to load libpulse.so.0
[ALSOFT] (WW) Failed to initialize backend "pulse"
[18:29:35.239 I] Opened "ALSA Default"
[18:29:35.239 I]   ALC Version: 1.1
[18:29:35.239 I]   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_DEDICATED ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context ALC_SOFT_device_clock ALC_SOFT_HRTF ALC_SOFT_loopback ALC_SOFT_loopback_bformat ALC_SOFT_output_limiter ALC_SOFT_output_mode ALC_SOFT_pause_device ALC_SOFT_reopen_device
[ALSOFT] (WW) pthread_setschedparam failed: Operation not permitted (1)
[ALSOFT] (WW) D-Bus not supported
[18:29:35.240 I]   Vendor: OpenAL Community
[18:29:35.240 I]   Renderer: OpenAL Soft
[18:29:35.240 I]   Version: 1.1 ALSOFT 1.23.0
[18:29:35.240 I]   Extensions: AL_EXT_ALAW AL_EXT_BFORMAT AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_BFORMAT AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_EXT_SOURCE_RADIUS AL_EXT_STEREO_ANGLES AL_LOKI_quadriphonic AL_SOFT_bformat_ex AL_SOFTX_bformat_hoa AL_SOFT_block_alignment AL_SOFT_callback_buffer AL_SOFTX_convolution_reverb AL_SOFT_deferred_updates AL_SOFT_direct_channels AL_SOFT_direct_channels_remix AL_SOFT_effect_target AL_SOFT_events AL_SOFT_gain_clamp_ex AL_SOFTX_hold_on_disconnect AL_SOFT_loop_points AL_SOFTX_map_buffer AL_SOFT_MSADPCM AL_SOFT_source_latency AL_SOFT_source_length AL_SOFT_source_resampler AL_SOFT_source_spatialize AL_SOFTX_source_start_delay AL_SOFT_UHJ
[18:29:35.240 I] HRTF disabled
[18:29:35.240 I] Allocated 256 sound sources
[18:29:35.240 I] Low-pass filter supported
[18:29:35.240 I] EAX Reverb supported
[18:29:35.241 I] Enumerated output devices:
[18:29:35.241 I]   ALSA Default  HDA Intel HDMI, HDMI 0 (CARD=HDMI,DEV=3)  HDA Intel HDMI, HDMI 1 (CARD=HDMI,DEV=7)  HDA Intel HDMI, HDMI 2 (CARD=HDMI,DEV=8)  HDA Intel HDMI, HDMI 3 (CARD=HDMI,DEV=9)  HDA Intel HDMI, HDMI 4 (CARD=HDMI,DEV=10)  HDA Intel PCH, CX20756 Analog (CARD=PCH,DEV=0)
[18:29:35.241 I] Enumerated HRTF names:
[18:29:35.241 I]   Built-In HRTF
Input #0, bink, from 'video\bethesda logo.bik':
  Duration: 00:00:16.00, start: 0.000000, bitrate: 2324 kb/s
    Stream #0:0[0x0]: Video: binkvideo (BIKi / 0x694B4942), yuv420p(tv), 640x480, 30.06 fps, 30.06 tbr, 30.06 tbn, 30.06 tbc
    Stream #0:1[0x0]: Audio: binkaudio_rdft, 44100 Hz, stereo, flt
[18:29:36.728 I] Loading content file builtin.omwscripts
[18:29:36.730 I] Loading content file Morrowind.esm
[18:29:37.029 I] Loading content file Theurgist_cleaned.esp
[18:29:37.030 I] Loading content file entertainers.esp
[18:29:37.031 I] Loading content file LeFemmArmor.esp
[18:29:37.031 I] Loading content file no_damn_birds.esp
[18:29:37.031 I] Loading content file bcsounds.esp
[18:29:37.032 I] Loading content file master_index.esp
[18:29:37.032 I] Loading content file Siege at Firemoth.esp
[18:29:37.033 I] Loading content file pcc_imp_glass_shield.esp
[18:29:37.033 I] Loading content file fix_grey_room.esp
[18:29:37.033 I] Loading content file pcc_serlyn_cheat.esp
[18:29:37.033 I] Loading content file pcc_my_house_03.esp
[18:29:37.034 I] Loading content file word_use_fix.esp
[18:29:37.034 I] Loading content file The  Undead Dungeons.esp
[18:29:37.040 I] Loading content file pcc_tirfar_02.esp
[18:29:37.041 I] Loading content file pcc_tgorvaz_06.esp
[18:29:37.042 I] Loading content file pcc_sotha_house_03.esp
[18:29:37.042 I] Loading content file Clean Dibella.esp
[18:29:37.042 I] Loading content file Tribunal.esm
[18:29:37.066 I] Loading content file Bloodmoon.esm
[18:29:37.095 I] Loading content file pcc_Xindaz_Veft_05.esp
[18:29:37.096 I] Loading content file pcc_sotha_sound.esp
[18:29:37.097 I] Loading content file bm_dwemer_additions_16.esp
[18:29:37.097 I] Loading content file Clean TRIB_witchgirladvent1.esp
[18:29:37.100 I] Loading content file pcc_bilocation_06.esp
[18:29:37.100 I] Loading content file pcc_bm_r_blade_02.esp
[18:29:37.100 I] Loading content file Aard_Vetooch_20.esp
[18:29:37.107 I] Loading content file pcc_caldera_cave_spot_02.esp
[18:29:37.107 I] Loading content file pcc_emma_lostheir_02.esp
[18:29:37.115 I] Loading content file Haldenshore_1.2.esp
[18:29:37.119 I] Loading content file pcc_tribunal_main.esp
[18:29:37.119 I] Loading content file pcc_Bloodmoonfixes_LD.esp
[18:29:37.119 I] Loading content file pcc_smeradon_17.esp
[18:29:37.119 I] Loading content file PCC_Knaarus_02.esp
[18:29:37.120 I] Loading content file pcc_dunzar_02.esp
[18:29:37.121 I] Loading content file pcc_femguards_tribunal_01.esp
[18:29:37.121 I] Loading content file pcc_femguards_BM_03.esp
[18:29:37.121 I] Loading content file Clean Dark Club Mod 1.0.esp
[18:29:37.121 I] Loading content file Clean WizBang's Clothing Randomizer.esp
[18:29:37.130 I] Loading content file pcc_breton_black_hair_02.esp
[18:29:37.131 I] Loading content file femguards.esp
[18:29:37.131 I] Loading content file pcc_dark_elf_m_afro_02.esp
[18:29:37.131 I] Loading content file pcc_glass_iron_spear_04.esp
[18:29:37.131 I] Loading content file Juxtor's Nude Mod.esp
[18:29:37.131 I] Loading content file pcc_karl_shortsword_02.esp
[18:29:37.131 I] Loading content file pcc_dungeon_island_19.esp
[18:29:37.138 I] Loading content file pcc_d_island_2_xindaz_02.esp
[18:29:37.139 I] Loading content file pcc_smeradon_patch_04.esp
[18:29:37.139 I] Loading content file pcc_undead_vetooch_10.esp
[18:29:37.139 I] Loading content file pcc_more_undead_vetooch.esp
[18:29:37.139 I] Loading content file pcc_more_word_use_fix_02.esp
[18:29:37.139 I] Loading content file Havish.esm
[18:29:37.151 I] Loading content file pcc_tr_bm_ingredients_01.esp
[18:29:37.151 I] Loading content file pcc_heads_06.esp
[18:29:37.151 I] Loading content file pcc_Almilia's_daughters_3.5p01.esp
[18:29:37.152 I] Loading content file pcc_extended_smeradon_21.esp
[18:29:37.154 I] Loading content file pcc_a_thosa.esp
[18:29:37.154 I] Loading content file pcc_old_vorga.esp
[18:29:37.154 I] Loading content file Clean ModTown_2004_v1.3_Final.esp
[18:29:37.158 I] Loading content file pcc_further_ext_smer_20.esp
[18:29:37.160 I] Loading content file Heavenly_Pleasures_pcc2.esp
[18:29:37.161 I] Loading content file pcc_northern_bridges_06.esp
[18:29:37.161 I] Loading content file pcc_south_dunzar_01.esp
[18:29:37.162 I] Loading content file pcc_breton_sbh_01.esp
[18:29:37.162 I] Loading content file pcc_tr_f_assasins_02.esp
[18:29:37.162 I] Loading content file Cleaner Dwemer Tunnels and Coprusarium Cavern.esp
[18:29:37.163 I] Loading content file Booty_nomusic.esp
[18:29:37.169 I] Loading content file pcc_smeradon2DT_07.esp
[18:29:37.170 I] Loading content file Clean Northern Winds V1.1.esp
[18:29:37.171 I] Loading content file Laura_craft_v2_2_pcc_hair.esp
[18:29:37.175 I] Loading content file pcc_trylo_daedra_manor.esp
[18:29:37.177 I] Loading content file pcc_further_ext_FIX_01.esp
[18:29:37.178 I] Loading content file ExoticsBoutiqueNoMusic.esp
[18:29:37.181 I] Loading content file pcc_ebony_changer_11.esp
[18:29:37.181 I] Loading content file pcc_east_knaarus_28.esp
[18:29:37.183 I] Loading content file constance1_0_pcc03.esp
[18:29:37.189 I] Loading content file pcc_female_fargoth_03.esp
[18:29:37.189 I] Loading content file darkelf_sbh_05.esp
[18:29:37.189 I] Loading content file pcc_bis_04.esp
[18:29:37.190 I] Loading content file pcc_lob_knaarus_option.esp
[18:29:37.190 I] Loading content file pcc_lob_xindaz_option.esp
[18:29:37.190 I] Loading content file martistans_castle_moved.esp
[18:29:37.191 I] Loading content file pcc_lob_shephli_66.esp
[18:29:37.195 I] Loading content file e_e_excuse_me_01.esp
[18:29:37.195 I] Loading content file pcc_taylin_ice_curias_f_01.esp
[18:29:37.195 I] Loading content file Clean Clean ModTown2006.esp
[18:29:37.198 I] Loading content file pcc_strip_for_me_03.esp
[18:29:37.198 I] Loading content file pcc_dagoth_eng_fix_02.esp
[18:29:37.198 I] Loading content file pcc_thoogera_30.esp
[18:29:37.203 I] Loading content file pcc_thoogera_lob_07.esp
[18:29:37.203 I] Loading content file pcc_thoogera_knaarus_07.esp
[18:29:37.203 I] Loading content file pcc_thoogera_esmer_03.esp
[18:29:37.203 I] Loading content file pcc_nez_s_shirts_04.esp
[18:29:37.204 I] Loading content file BT_Whitewolf_2_0.esm
[18:29:37.217 I] Loading content file pcc_smer_fix_2012.esp
[18:29:37.217 I] Loading content file Clean Give your orders v13.esp
[18:29:37.262 V] NPC 'order_decius' (Decius Mus) has nonexistent faction 'order', ignoring it.
[18:29:37.262 V] NPC 'order_decius' (Decius Mus) has nonexistent class 'no one important', using 'warrior' class as replacement.
[18:29:37.263 V] NPC 'zh_c_helmrich_d' (Helmrich) has nonexistent faction 'Ventringoth Trade Corporation', ignoring it.
[18:29:37.263 V] NPC 'zh_c_sarivild' (Sarivild) has nonexistent faction 'Ventringoth Trade Corporation', ignoring it.
[18:29:37.264 V] NPC 'plant 06' (Amethyst) has nonexistent class 'Lounge Player', using 'warrior' class as replacement.
[18:29:37.264 V] NPC 'plant 05' (Sapphire) has nonexistent class 'Lounge Player', using 'warrior' class as replacement.
[18:29:37.266 V] NPC 'zh_c_eigar_d' (Eigar) has nonexistent faction 'Ventringoth Trade Corporation', ignoring it.
[18:29:37.266 V] NPC 'zh_c_helmrich_n' (Helmrich) has nonexistent faction 'Ventringoth Trade Corporation', ignoring it.
[18:29:37.266 V] NPC 'plant 01' (Ruby) has nonexistent class 'Lounge Player', using 'warrior' class as replacement.
[18:29:37.266 V] NPC 'zh_c_eigar_n' (Eigar) has nonexistent faction 'Ventringoth Trade Corporation', ignoring it.
[18:29:37.266 V] NPC 'zh_c_almina humios' (Almina Humios) has nonexistent faction 'Ventringoth Trade Corporation', ignoring it.
[18:29:37.267 V] NPC 'plant 02' (Coral) has nonexistent class 'Lounge Player', using 'warrior' class as replacement.
[18:29:37.267 V] NPC 'plant 03' (Topaz) has nonexistent class 'Lounge Player', using 'warrior' class as replacement.
[18:29:37.267 V] NPC 'plant 04' (Emerald) has nonexistent class 'Lounge Player', using 'warrior' class as replacement.
[18:29:37.708 I] Using 1 async physics threads
[18:29:37.708 V] Using idle priority for thread=140581337536192
[18:29:37.709 V] Disabling Multiview (disabled by config)
[18:29:37.725 I] Preferred locales: en
[18:29:37.806 V] Fallback locale: en
[18:29:37.811 V] Language file "l10n/SettingsMenu/en.yaml" is enabled
[18:29:37.849 V] Fallback locale: en
[18:29:37.849 V] Language file "l10n/DebugMenu/en.yaml" is enabled
[18:29:37.851 V] Fallback locale: en
[18:29:37.851 V] Language file "l10n/PostProcessing/en.yaml" is enabled
[18:29:37.858 V] Lua scripts configuration (8 scripts):
[18:29:37.858 V] #0 PLAYER : scripts/omw/mwui/init.lua
[18:29:37.858 V] #1 GLOBAL : scripts/omw/settings/global.lua
[18:29:37.858 V] #2 PLAYER : scripts/omw/settings/player.lua
[18:29:37.858 V] #3 PLAYER : scripts/omw/camera/camera.lua
[18:29:37.858 V] #4 NPC CREATURE : scripts/omw/ai.lua
[18:29:37.858 V] #5 PLAYER : scripts/omw/console/player.lua
[18:29:37.858 V] #6 GLOBAL : scripts/omw/console/global.lua
[18:29:37.858 V] #7 CUSTOM : scripts/omw/console/local.lua
[18:29:37.860 I] Playing music/special/morrowind title.mp3


*** Fatal Error ***
Address not mapped to object (signal 11)
Address: (nil)

Generating /tmp/openmw-crash.log and killing process 1904, please wait... warning: File "/usr/lib/libstdc++.so.6.0.30-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
./openmw: line 31:  1904 Killed                  ./openmw.x86_64 "$@"
User avatar
AnyOldName3
Posts: 2661
Joined: 26 Nov 2015, 03:25

Re: OpenMW 2023.04.10: crash on startup

Post by AnyOldName3 »

If you can figure out how to get rid of the error about GDB, then we could at least look at the crash log. Without it, there's no way to know what caused the problem.
krogg
Posts: 30
Joined: 31 Mar 2020, 03:18

Re: OpenMW 2023.04.10: crash on startup

Post by krogg »

AnyOldName3 wrote: 07 Nov 2023, 11:25 If you can figure out how to get rid of the error about GDB, then we could at least look at the crash log. Without it, there's no way to know what caused the problem.
What I posted was not the crash log? :?:
User avatar
psi29a
Posts: 5355
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: OpenMW 2023.04.10: crash on startup

Post by psi29a »

Was misspoken, that was the crash log. What he meant with GDB was a stack-trace.

Since you're running the generic build, it might take some doing... however, just give:

`gdb ./openmw` a try and see what happens. Since it's a script, it might not give us what we want... as the script does some magic to make sure that openmw.x86_64 runs with the libraries it needs.

The idea is, when it does crash... the backtrace that gdb provides can help pinpoint where the crash happened in code.

@k1ll would it be possible to modify the openmw script to add a --debug,-d flag that allows us to run with gdb if available? :)
User avatar
AnyOldName3
Posts: 2661
Joined: 26 Nov 2015, 03:25

Re: OpenMW 2023.04.10: crash on startup

Post by AnyOldName3 »

The regular openmw.log ends with

Code: Select all

Generating /tmp/openmw-crash.log and killing process 1904, please wait... warning: File "/usr/lib/libstdc++.so.6.0.30-gdb.py" auto-loading has been declined by your `auto-load safe-path' set to "$debugdir:$datadir/auto-load".
./openmw: line 31:  1904 Killed                  ./openmw.x86_64 "$@"
which I believe means we're not going to have an openmw-crash.log, and if we do, that it'll probably be missing important stuff. If we can get post-mortem debugging working, we don't necessarily need to run OpenMW with a debugger attached.
K1ll
Posts: 184
Joined: 06 Aug 2011, 21:54

Re: OpenMW 2023.04.10: crash on startup

Post by K1ll »

All the script does is setting LD_LIBRARY_PATH to the included lib directory and then execute the real executable openmw.x86_64. So to run the generic openmw binary with gdb you just need to

Code: Select all

export LD_LIBRARY_PATH="./lib"
gdb ./openmw.x86_64
The binaries and libraries do not contain debug symbols though.
psi29a wrote: 08 Nov 2023, 09:37 ...
@k1ll would it be possible to modify the openmw script to add a --debug,-d flag that allows us to run with gdb if available? :)
Yeah I could add that or check if an environment variable is set so something like

Code: Select all

DEBUG=1 ./openmw
would run openmw under gdb.

Edit: Setting the DEBUG environment variable to run with gdb now works in the generic targz nightly builds. Not just for openmw but for all scripts. When using the launcher to start openmw (or navmeshtool or the install wizard) gdb will keep the launcher open (unresponsive as it is halted) but switch the debug session to the new process. The launcher will close when you exit gdb or you can continue the halted processes with

Code: Select all

inferior 2
continue
inferior 1
continue
Post Reply