Try / OpenGothic

Reimplementation of Gothic 2 Notr
MIT License
1.07k stars 78 forks source link

Crash in Game #619

Open versable opened 1 week ago

versable commented 1 week ago

I am VERY glad and thankful this project has gotten so far along. RESPECT.

Sadly, I can't play this on a Thinkpad X1 Carbon 11th Gen

The game compiles and runs fine, but after a couple of seconds, sometimes minutes, the game inexplicably crashes.

Following relevant Hardware: Intel Corporation Raptor Lake-P [Iris Xe Graphics] (rev 04)

Might be something similar to #243?

Here is the console output… Couldn't run valgrind, it was way to slow to debug with it:

OpenGothic v1.0 dev                                                                                                                                                          19:26:21 [52/6447]
no "SystemPack.ini" file in path - using default settings
GPU = Intel(R) Graphics (RPL-P)
Depth format = Depth32F Shadow format = Depth16               
[zenkit] Parsing object [MeshAndBsp % 0 0]                                                                                                                                                     
[zenkit] Parsing chunk c000                                                                    
[zenkit] Parsing chunk c010
[zenkit] Parsing chunk c040                                                                    
[zenkit] Parsing chunk c045    
[zenkit] Parsing chunk c050                                                                    
[zenkit] Parsing chunk c0ff               
[zenkit] 1 bytes remaining in section b020
[zenkit] Parsing object [VobTree % 0 0]
[zenkit] Parsing object [WayNet % 0 0]
[zenkit] Parsing object [EndMarker % 0 0]
invalid particle system: "INVISIBLE_VOBBOX.3DS" 
unable to load sound fx: ENV_NIGHT_TONSOFINSECTS
unable to load sound fx: OW_BIRD11        
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590                                                    
[zenkit] 1 bytes overflowed in section f590                                                    
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] Unexpected value for MdsEventType: "           "
[zenkit] 4 bytes remaining in section f5a3 
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590                                                    
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590
[zenkit] 1 bytes overflowed in section f590

---crashlog(std::terminate)---             
GPU: Intel(R) Graphics (RPL-P)             
#1: std::unexpected() - /lib/x86_64-linux-gnu/libstdc++.so.6(_ZSt10unexpectedv+0) [0x74c6a80a5a49]
#2: std::unexpected() - /lib/x86_64-linux-gnu/libstdc++.so.6(+0xbb128) [0x74c6a80bb128]
#3: Tempest::Detail::vkAssert(VkResult) - /home/versable/Documents/git/OpenGothic/build/opengothic/libTempest.so(_ZN7Tempest6Detail8vkAssertE8VkResult+0x101) [0x74c6a85132a1]
#4: Tempest::Detail::VFence::wait(unsigned long) - /home/versable/Documents/git/OpenGothic/build/opengothic/libTempest.so(_ZN7Tempest6Detail6VFence4waitEm+0x4a) [0x74c6a851885a]
#5: MainWindow::render() - /home/versable/Documents/git/OpenGothic/build/opengothic/Gothic2Notr(_ZN10MainWindow6renderEv+0xad) [0x563a917e7dbd]
#6: Tempest::X11Api::implProcessEvents(Tempest::SystemApi::AppCallBack&) - /home/versable/Documents/git/OpenGothic/build/opengothic/libTempest.so(_ZN7Tempest6X11Api17implProcessEventsERNS_9Sy
stemApi11AppCallBackE+0x66) [0x74c6a8536846]
#7: Tempest::X11Api::implExec(Tempest::SystemApi::AppCallBack&) - /home/versable/Documents/git/OpenGothic/build/opengothic/libTempest.so(_ZN7Tempest6X11Api8implExecERNS_9SystemApi11AppCallBac
kE+0x23) [0x74c6a8536f93]
#8: main - /home/versable/Documents/git/OpenGothic/build/opengothic/Gothic2Notr(main+0x22f) [0x563a9167b10f]

And some extra GDB output

Thread 1 "Main thread" received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:44
warning: 44     ./nptl/pthread_kill.c: No such file or directory

Keep on rocking!

versable commented 1 week ago

After turning off every setting in the menu, the game runs stable. Must be a shader problem or something akin to it.

Try commented 1 week ago

Hi, @versable !

This is an device-lost exception. Basically, if anything goes wrong on GPU: bug in shader code or bug in driver, or simply timeout, in such case Vulkan has only one error code. This error then propagated by engine to C++ exception.

Unfortunately there is no good diagnostic tools in graphics api, only thing we know - something went wrong in during frame rendering.

After turning off every setting in the menu, the game runs stable.

Glad to hear that! Would it be possible for you to narrow, what graphics option might be a problematic one? My best best would be "Cloud shadows", "Radial fog", "Reflections" - those are demanding and complex most effects in rendering