flightlessmango / MangoHud

A Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more. Discord: https://discordapp.com/invite/Gj5YmBb
MIT License
6.49k stars 287 forks source link

Hearts of Iron 4 crash #141

Closed Buri closed 3 years ago

Buri commented 4 years ago

Log:

skipping config: /home/buri/.local/share/Steam/steamapps/common/Hearts of Iron IV/MangoHud.conf [ not found ]
skipping config: /home/buri/.config/MangoHud/hoi4.conf [ not found ]
parsing config: /home/buri/.config/MangoHud/MangoHud.conf [ ok ]
GL version: 4.6.0 NVIDIA 440.82
Version: 4.6
[S_API] SteamAPI_Init(): Loaded '/home/buri/.local/share/Steam/linux64/steamclient.so' OK.
Setting breakpad minidump AppID = 394360
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561198005085118 [API loaded no]
GL version: 4.6.0 NVIDIA 440.82
Version: 4.6
GL version: 4.6.0 NVIDIA 440.82
Version: 4.6
terminate called after throwing an instance of 'std::bad_cast'
  what():  std::bad_cast
Trying to Write minidump to dir: /home/buri/.local/share/Paradox Interactive/Hearts of Iron IV/crashes/hoi4_20200502_085845/
Created Minidump: /home/buri/.local/share/Paradox Interactive/Hearts of Iron IV/crashes/hoi4_20200502_085845//3e912bf5-dc47-6615-4aad1f95-708f3bd0.dmp

Mangohud.conf

################### File Generated by GOverlay ###################
fps_limit=165
cpu_stats
cpu_temp
core_load
cpu_color=2e97cb
gpu_stats
gpu_temp
gpu_core_clock
gpu_color=2e9762
ram
ram_color=c26693
vram
vram_color=ad64c1
io_read
io_write
io_color=a491d3
frame_timing=1
frametime_color=00ff00
time
crosshair_color=000000
crosshair_size=20
no_display
background_alpha=0.4
font_size=24
background_color=020202
position=top-left
text_color=ffffff
toggle_hud=F11
toggle_logging=F2
output_file=/home/buri/mangohud_log_ 
$ inxi -F
System:    Host: thebeast Kernel: 5.6.4-1-default x86_64 bits: 64 Desktop: KDE Plasma 5.18.4 
           Distro: openSUSE Tumbleweed 20200422 
Machine:   Type: Desktop Mobo: ASUSTeK model: ROG CROSSHAIR VIII HERO v: Rev X.0x serial: <superuser/root required> 
           UEFI: American Megatrends v: 1201 date: 11/18/2019 
CPU:       Topology: 8-Core model: AMD Ryzen 7 3800X bits: 64 type: MT MCP L2 cache: 4096 KiB 
           Speed: 2195 MHz min/max: 2200/3900 MHz Core speeds (MHz): 1: 2195 2: 2196 3: 2196 4: 2196 5: 1863 6: 1863 7: 2794 
           8: 2795 9: 2195 10: 2196 11: 1863 12: 1863 13: 2794 14: 2795 15: 2188 16: 2199 
Graphics:  Device-1: NVIDIA GP104 [GeForce GTX 1070] driver: nvidia v: 440.82 
           Display: x11 server: X.org 1.20.8 driver: nvidia resolution: <xdpyinfo missing> 
           OpenGL: renderer: GeForce GTX 1070/PCIe/SSE2 v: 4.6.0 NVIDIA 440.82 
Audio:     Device-1: NVIDIA GP104 High Definition Audio driver: snd_hda_intel 
           Device-2: Advanced Micro Devices [AMD] Starship/Matisse HD Audio driver: snd_hda_intel 
           Device-3: Razer USA type: USB driver: hid-generic,snd-usb-audio,usbhid 
           Sound Server: ALSA v: k5.6.4-1-default 
Network:   Device-1: Realtek RTL8125 2.5GbE driver: r8169 
           IF: enp5s0 state: down mac: 04:d9:f5:60:ec:15 
           Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi 
           IF: wlp6s0 state: up mac: 50:eb:71:f7:3f:9b 
           Device-3: Intel I211 Gigabit Network driver: igb 
           IF: enp7s0 state: down mac: 04:d9:f5:60:ec:14 
Drives:    Local Storage: total: 238.47 GiB used: 469.12 GiB (196.7%) 
           ID-1: /dev/nvme0n1 vendor: Seagate model: XPG GAMMIX S5 size: 476.94 GiB 
           ID-2: /dev/nvme1n1 vendor: Samsung model: SSD 970 EVO 500GB size: 465.76 GiB 
           ID-3: /dev/nvme2n1 vendor: Seagate model: XPG GAMMIX S11 Pro size: 238.47 GiB 
Partition: ID-1: / size: 474.45 GiB used: 469.09 GiB (98.9%) fs: btrfs dev: /dev/nvme0n1p2 
           ID-2: /home size: 474.45 GiB used: 469.09 GiB (98.9%) fs: btrfs dev: /dev/nvme0n1p2 
           ID-3: /opt size: 474.45 GiB used: 469.09 GiB (98.9%) fs: btrfs dev: /dev/nvme0n1p2 
           ID-4: /var size: 474.45 GiB used: 469.09 GiB (98.9%) fs: btrfs dev: /dev/nvme0n1p2 
           ID-5: swap-1 size: 2.00 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 62.2 C mobo: N/A gpu: nvidia temp: 52 C 
           Fan Speeds (RPM): N/A gpu: nvidia fan: 23% 
Info:      Processes: 397 Uptime: N/A Memory: 31.27 GiB used: 3.39 GiB (10.8%) Shell: zsh inxi: 3.0.38 

Running KDE 5.18 on x11

flightlessmango commented 4 years ago

If you could compile from develop and try again, there's a decent chance this has been fixed

Buri commented 4 years ago

I've rebuilt it from source using 3c15bc6045810a1f15f49d5b5c6739d1fb4e6f8e. Game doesn't crash anymore, but mangohud does not display at all. Tried remove config, use MANGOHUD_CONFIG=full, nothing seems to help. So, partial progress?

flightlessmango commented 4 years ago

Try MANGOHUD_DLSYM=1

Buri commented 4 years ago

This solved the general crashing problem. Now I've managed to narrow it down so it only crashes when core_load is enabled. This might not be relevant game itself maybe? If so, we might close this as resolved.

flightlessmango commented 4 years ago

if you can reproduce it in other games it deserves a new issue

Buri commented 4 years ago

It crashes also in Europa Universalis 4 (same engine), but seems to work in other games (Factorio, Transport Fever 2)

flightlessmango commented 4 years ago

and disabling core_load fixes it in Europa Universalis 4 as well?

Buri commented 4 years ago

Yes, correct

jackun commented 4 years ago

On going issue of libstdc++ conflict: missing facet. In this case using std::regex, somewhere down the line it fails to find std::collate<char> facet. Recompiling with or installing newer/older gcc can randomly fix it.

flightlessmango commented 3 years ago

Please reopen if this is still an issue in latest