Closed S74HK9hV closed 1 year ago
I've had similar consistent crashes back on 1.47.0 but it hasn't happened to me in a while. Is your image up to date, 1.49.0?
Maybe there's something in the Zwift logs, too.
I've had similar consistent crashes back on 1.47.0 but it hasn't happened to me in a while. Is your image up to date, 1.49.0?
yes, it's up to date. i saw that it downloaded a new image today when i ran the script. but i was also having the same problem last week on the older version of zwift
Maybe there's something in the Zwift logs, too.
i don't see anything strange in the zwift logs... the only thing weird is that the timestamps are in a different time zone. 4 hours ahead of me...
I Would monitor the resource consumption while running the application, maybe there is a memory leak with system ram or gpu? Especially since you state that its fairly reproducible at 25 minutes. Something is probably hitting the roof.
Would also try to tweak the graphics setting, and maybe setting resolution and quality way down to see if it has any effect on when it crashes.
I've seen my system crash when running to many instances of zwift at once, (once had 4 running simultaneously) but that was due to out of memory on the graphics card.
Maybe this will provide some insight? https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dcom/4383e2aa-ae3c-4da6-a094-30233ac4b285
And are you running docker or podman?
And are you running docker or podman?
podman.
I Would monitor the resource consumption while running the application, maybe there is a memory leak with system ram or gpu? Especially since you state that its fairly reproducible at 25 minutes. Something is probably hitting the roof.
i will try to watch this. but i used to run zwift on a laptop with integrated graphics... so i assume my system well above the minimum requirements
thanks
If everything still fails with podman, i'd try docker as a last resort.
Here the same. I suspect it has something to do with resolution. The higher, the faster the container crashes. I couldn't find any clues in the journal. I get error messages from the wine64-preloader at irregular intervals while Zwift is running. Here are the last entries in the container log:
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] ERROR LEVEL: VIDEO_CAPTURE : WindowsFailure, 31442 of 10, reasons=["EncoderClip: CreateSinkWriter failed, hr=-2147467263", "Encoder: clip failed, clipIndex=0", "VCW_StateMachine: Encoder failed"]
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] ERROR LEVEL: VIDEO_CAPTURE : WindowsFailure, 31443 of 10, reasons=["EncoderClip: CreateSinkWriter failed, hr=-2147467263", "Encoder: clip failed, clipIndex=0", "VCW_StateMachine: Encoder failed"]
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] ERROR: ZwiftApp Crashed
Here the same. I suspect it has something to do with resolution. The higher, the faster the container crashes. I couldn't find any clues in the journal. I get error messages from the wine64-preloader at irregular intervals while Zwift is running. Here are the last entries in the container log:
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200 [17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200 [17:44:25] ERROR LEVEL: VIDEO_CAPTURE : WindowsFailure, 31442 of 10, reasons=["EncoderClip: CreateSinkWriter failed, hr=-2147467263", "Encoder: clip failed, clipIndex=0", "VCW_StateMachine: Encoder failed"] [17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200 [17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200 [17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200 [17:44:25] ERROR LEVEL: VIDEO_CAPTURE : WindowsFailure, 31443 of 10, reasons=["EncoderClip: CreateSinkWriter failed, hr=-2147467263", "Encoder: clip failed, clipIndex=0", "VCW_StateMachine: Encoder failed"] [17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200 [17:44:25] ERROR: ZwiftApp Crashed
making progress... i did 2 tests today:
next test is to actually do a long ride and see if it crashes... but seems like i made some progress. thanks to everyone who chimed into this thread with ideas.
CC: @netbrain
tweaks to test failures like this.
On Thu, Oct 5, 2023, 06:29 S74HK9hV @.***> wrote:
Here the same. I suspect it has something to do with resolution. The higher, the faster the container crashes. I couldn't find any clues in the journal. I get error messages from the wine64-preloader at irregular intervals while Zwift is running. Here are the last entries in the container log:
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] ERROR LEVEL: VIDEO_CAPTURE : WindowsFailure, 31442 of 10, reasons=["EncoderClip: CreateSinkWriter failed, hr=-2147467263", "Encoder: clip failed, clipIndex=0", "VCW_StateMachine: Encoder failed"]
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] ERROR LEVEL: VIDEO_CAPTURE : WindowsFailure, 31443 of 10, reasons=["EncoderClip: CreateSinkWriter failed, hr=-2147467263", "Encoder: clip failed, clipIndex=0", "VCW_StateMachine: Encoder failed"]
[17:44:25] INFO LEVEL: VIDEO_CAPTURE : Allocating pixel buffer, w=1920, h=1200
[17:44:25] ERROR: ZwiftApp Crashed
making progress... i did 2 tests today:
- i opened the game and just let it sit while i did something else. i noticed that that the VIRT memory column in top kept going up.... it was at 21G at one point.... after around 25mins, it crashed as usual
- i opened up the game and disabled the "video screenshots" option in settings. all of the "Allocating pixel buffer..... Encoder failed" messages disappeared from the log, and the VIRT memory use in top seems to have stabilized. i left the game open for over an hour and it didn't crash.
next test is to actually do a long ride and see if it crashes... but seems like i made some progress. thanks to everyone who chimed into this thread with ideas.
CC: @netbrain https://github.com/netbrain
— Reply to this email directly, view it on GitHub https://github.com/netbrain/zwift/issues/26#issuecomment-1748014643, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTNC7SQYOHJFVLWZN2ZUDX5YZTDAVCNFSM6AAAAAA5QEPSCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYGAYTINRUGM . You are receiving this because you were mentioned.Message ID: @.***>
Not the first time I read that video screenshots cause crashes, even on the Zwift forums there are mentions of it. I've always had it disabled personally.
- i opened the game and just let it sit while i did something else. i noticed that that the VIRT memory column in top kept going up.... it was at 21G at one point.... after around 25mins, it crashed as usual
- i opened up the game and disabled the "video screenshots" option in settings. all of the "Allocating pixel buffer..... Encoder failed" messages disappeared from the log, and the VIRT memory use in top seems to have stabilized at around 6G. i left the game open for over an hour and it didn't crash.
@S74HK9hV I was able to reproduce your experience. After the container had consumed around 50GB of virtual memory, it was terminated. Turning off the “Video Screenshot” function also solves the problem for me. The virtual memory consumption has remained constant for 2.5 hours now and Zwift is running without any problems. It is a perfect workaround :)
Would be interesting to see at which version this started to happen. Unfortunately I have removed old versions from docker hub. So I don't think we have a lot to go on. Most likely Zwift has changed something in how they record screenshots that is only affecting wine users. Or wine users of a certain version and/or hardware spec.
On Thu, Oct 5, 2023, 15:47 Stefan Soldan @.***> wrote:
- i opened the game and just let it sit while i did something else. i noticed that that the VIRT memory column in top kept going up.... it was at 21G at one point.... after around 25mins, it crashed as usual
- i opened up the game and disabled the "video screenshots" option in settings. all of the "Allocating pixel buffer..... Encoder failed" messages disappeared from the log, and the VIRT memory use in top seems to have stabilized at around 6G. i left the game open for over an hour and it didn't crash.
@S74HK9hV https://github.com/S74HK9hV I was able to reproduce your experience. After the container had consumed around 50GB of virtual memory, it was terminated. Turning off the “Video Screenshot” function also solves the problem for me. The virtual memory consumption has remained constant for 2.5 hours now and Zwift is running without any problems. It is a
— Reply to this email directly, view it on GitHub https://github.com/netbrain/zwift/issues/26#issuecomment-1748936607, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTNCZVAVB4X4SZR3MZCJ3X52257AVCNFSM6AAAAAA5QEPSCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBYHEZTMNRQG4 . You are receiving this because you were mentioned.Message ID: @.***>
Would be interesting to see at which version this started to happen.
looks like the "Video Screenshot" feature was released on PC July 26th, 2023 https://forums.zwift.com/t/video-screenshots-windows-release-july-2023/609842
it was a server side change. dev claims that there was no special client version update needed: https://forums.zwift.com/t/video-screenshots-windows-release-july-2023/609842/4
Well, that can't be true
On Fri, Oct 6, 2023, 01:57 S74HK9hV @.***> wrote:
Would be interesting to see at which version this started to happen.
looks like the "Video Screenshot" feature was released on PC July 26th
https://forums.zwift.com/t/video-screenshots-windows-release-july-2023/609842
it was a server side change. dev claims that there was no special client version update needed:
https://forums.zwift.com/t/video-screenshots-windows-release-july-2023/609842/4
— Reply to this email directly, view it on GitHub https://github.com/netbrain/zwift/issues/26#issuecomment-1749808424, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACTNC7YJQH6PN34MMHH5FTX55CNRAVCNFSM6AAAAAA5QEPSCOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBZHAYDQNBSGQ . You are receiving this because you were mentioned.Message ID: @.***>
SOLVED:
The "Video Screenshots" feature in the game setting was causing the game to use up more and more memory until the game crashed. Disable this feature
Thanks everyone who helped with this
Hello,
firstly, thanks for all your work on this. I've been a Zwift user since beta and it's a dream come true to finally be able to run on linux.
i've run the game 3 times now, and each time, it crashes around the 25 minutes into the ride. any ideas on how to troubleshoot this issue?
here's a chunk of my journal log just before the crash
OS: Debian sid CPU: AMD ryzen 5600 RAM: 32GB GPU: AMD RX580
thanks in advance