GithubHelp home page GithubHelp logo

Comments (5)

cgutman avatar cgutman commented on June 3, 2024 1

Thanks. As I suspected, AMD encoder is crashing when we're trying to test for working encoders.

0:000> k
 # Child-SP          RetAddr               Call Site
00 000000ce`437fe7a0 00007ffe`82f052f9     amfrt64+0x11eaba
01 000000ce`437fe860 00007ffe`82f63a87     amfrt64+0x1152f9
02 000000ce`437febb0 00007ffe`82e48fae     amfrt64+0x173a87
03 000000ce`437ff260 00007ff6`ec549993     amfrt64+0x58fae
04 000000ce`437ff3c0 00007ff6`ec53dc95     sunshine!ff_amf_receive_packet+0x933 [D:\a\build-deps\build-deps\ffmpeg_sources\ffmpeg\libavcodec\amfenc.c @ 814] 
05 000000ce`437ff4f0 00007ff6`ec53e4e9     sunshine!encode_receive_packet_internal+0x4e5 [D:\a\build-deps\build-deps\ffmpeg_sources\ffmpeg\libavcodec\encode.c @ 295] 
06 000000ce`437ff590 00007ff6`ec4a6506     sunshine!avcodec_send_frame+0xb9 [D:\a\build-deps\build-deps\ffmpeg_sources\ffmpeg\libavcodec\encode.c @ 381] 
07 000000ce`437ff600 00007ff6`ec4abf96     sunshine!encode+0x36 [D:\a\Sunshine\Sunshine\src\video.cpp @ 1006] 
08 000000ce`437ff720 00007ff6`ec4ac813     sunshine!validate_config+0x3e6 [D:\a\Sunshine\Sunshine\src\video.cpp @ 1836] 
09 000000ce`437ff890 00007ff6`ec4ad53f     sunshine!validate_encoder+0x723 [D:\a\_temp\msys64\mingw64\include\c++\13.1.0\bitset @ 425] 
0a 000000ce`437ff9c0 00007ff6`edab6a28     sunshine!probe_encoders+0xaaf [D:\a\Sunshine\Sunshine\src\video.cpp @ 2049] 
0b 000000ce`437ffa80 00007ff6`ec4512ee     sunshine!main+0x828 [D:\a\Sunshine\Sunshine\src\main.cpp @ 624] 
0c 000000ce`437ffc50 00007ff6`ec451406     sunshine!__tmainCRTStartup+0x16e [C:\M\B\src\mingw-w64\mingw-w64-crt\crt\crtexe.c @ 273] 
0d 000000ce`437ffca0 00007ffe`eb2f26ad     sunshine!mainCRTStartup+0x16 [C:\M\B\src\mingw-w64\mingw-w64-crt\crt\crtexe.c @ 195] 
0e 000000ce`437ffcd0 00007ffe`ec40aa68     kernel32!BaseThreadInitThunk+0x1d
0f 000000ce`437ffd00 00000000`00000000     ntdll!RtlUserThreadStart+0x28

It looks like it's happening during HEVC Main10 encoder tests which old hardware like this doesn't even support, so I made a possible fix to avoid probing HEVC Main10 on older drivers.

Please try this build https://github.com/LizardByte/Sunshine/suites/14970304158/artifacts/854085489 (need to be signed in with your GitHub account for the link to work). If this build doesn't work, please attach new logs and a new dump file.

from sunshine.

cgutman avatar cgutman commented on June 3, 2024

Usually these are display driver bugs, but we'll need a memory dump to know for sure.

To collect a memory dump:

  1. Download and extract ProcDump
  2. Start an admin command prompt in the directory where you extracted ProcDump
  3. Run procdump -e -ma -w sunshine.exe
  4. Start Sunshine to trigger the crash and wait for a .dmp file to be written in the ProcDump directory
  5. Compress the dump file and attach it to this issue.

from sunshine.

system198 avatar system198 commented on June 3, 2024

Usually these are display driver bugs, but we'll need a memory dump to know for sure.

To collect a memory dump:

  1. Download and extract ProcDump
  2. Start an admin command prompt in the directory where you extracted ProcDump
  3. Run procdump -e -ma -w sunshine.exe
  4. Start Sunshine to trigger the crash and wait for a .dmp file to be written in the ProcDump directory
  5. Compress the dump file and attach it to this issue.

Here are file 3 memory dump files it produced compressed in the zip files. I uploaded it to mega.nz since it exceeds with the Github 25 MB file size limit

https://mega.nz/file/sx5zzKAI#I7Td49FIgmh7mMrPo1r8CJizDwlhAkttEVMh78mJIG8

Log:

C:\Procdump>procdump -e -ma -w sunshine.exe

ProcDump v11.0 - Sysinternals process dump utility
Copyright (C) 2009-2022 Mark Russinovich and Andrew Richards
Sysinternals - www.sysinternals.com

Waiting for process named sunshine.exe...

Process:               sunshine.exe (19244)
Process image:         C:\Program Files\Sunshine\sunshine.exe
CPU threshold:         n/a
Performance counter:   n/a
Commit threshold:      n/a
Threshold seconds:     n/a
Hung window check:     Disabled
Log debug strings:     Disabled
Exception monitor:     Unhandled
Exception filter:      [Includes]
                       *
                       [Excludes]
Terminate monitor:     Disabled
Cloning type:          Disabled
Concurrent limit:      n/a
Avoid outage:          n/a
Number of dumps:       1
Dump folder:           C:\Procdump\
Dump filename/mask:    PROCESSNAME_YYMMDD_HHMMSS
Queue to WER:          Disabled
Kill after dump:       Disabled


Press Ctrl-C to end monitoring without terminating the process.

[14:29:26] Process Exit: PID 19244, Exit Code 0x00000000
[14:29:26] The process has exited.
[14:29:26] Dump count not reached.


C:\Procdump>procdump -e -ma -w sunshine.exe

ProcDump v11.0 - Sysinternals process dump utility
Copyright (C) 2009-2022 Mark Russinovich and Andrew Richards
Sysinternals - www.sysinternals.com

Waiting for process named sunshine.exe...

Process:               sunshine.exe (4244)
Process image:         C:\Program Files\Sunshine\sunshine.exe
CPU threshold:         n/a
Performance counter:   n/a
Commit threshold:      n/a
Threshold seconds:     n/a
Hung window check:     Disabled
Log debug strings:     Disabled
Exception monitor:     Unhandled
Exception filter:      [Includes]
                       *
                       [Excludes]
Terminate monitor:     Disabled
Cloning type:          Disabled
Concurrent limit:      n/a
Avoid outage:          n/a
Number of dumps:       1
Dump folder:           C:\Procdump\
Dump filename/mask:    PROCESSNAME_YYMMDD_HHMMSS
Queue to WER:          Disabled
Kill after dump:       Disabled


Press Ctrl-C to end monitoring without terminating the process.

[14:30:06] Exception: C0000005.ACCESS_VIOLATION
[14:30:06] Unhandled: C0000005.ACCESS_VIOLATION
[14:30:06] Dump 1 initiated: C:\Procdump\sunshine.exe_230809_143006.dmp
[14:30:07] Dump 1 writing: Estimated dump file size is 218 MB.
[14:30:10] Dump 1 complete: 218 MB written in 3.1 seconds
[14:30:10] Dump count reached.


C:\Procdump>procdump -e -ma -w sunshine.exe

ProcDump v11.0 - Sysinternals process dump utility
Copyright (C) 2009-2022 Mark Russinovich and Andrew Richards
Sysinternals - www.sysinternals.com

Waiting for process named sunshine.exe...

Process:               sunshine.exe (18736)
Process image:         C:\Program Files\Sunshine\sunshine.exe
CPU threshold:         n/a
Performance counter:   n/a
Commit threshold:      n/a
Threshold seconds:     n/a
Hung window check:     Disabled
Log debug strings:     Disabled
Exception monitor:     Unhandled
Exception filter:      [Includes]
                       *
                       [Excludes]
Terminate monitor:     Disabled
Cloning type:          Disabled
Concurrent limit:      n/a
Avoid outage:          n/a
Number of dumps:       1
Dump folder:           C:\Procdump\
Dump filename/mask:    PROCESSNAME_YYMMDD_HHMMSS
Queue to WER:          Disabled
Kill after dump:       Disabled


Press Ctrl-C to end monitoring without terminating the process.

[14:30:21] Exception: C0000005.ACCESS_VIOLATION
[14:30:21] Unhandled: C0000005.ACCESS_VIOLATION
[14:30:21] Dump 1 initiated: C:\Procdump\sunshine.exe_230809_143021.dmp
[14:30:21] Dump 1 writing: Estimated dump file size is 215 MB.
[14:30:23] Dump 1 complete: 215 MB written in 1.7 seconds
[14:30:23] Dump count reached.


C:\Procdump>procdump -e -ma -w sunshine.exe

ProcDump v11.0 - Sysinternals process dump utility
Copyright (C) 2009-2022 Mark Russinovich and Andrew Richards
Sysinternals - www.sysinternals.com

Waiting for process named sunshine.exe...

[14:30:44] Multiple processes match the specified name.

C:\Procdump>procdump -e -ma -w sunshine.exe

ProcDump v11.0 - Sysinternals process dump utility
Copyright (C) 2009-2022 Mark Russinovich and Andrew Richards
Sysinternals - www.sysinternals.com

Waiting for process named sunshine.exe...

Process:               sunshine.exe (18696)
Process image:         C:\Program Files\Sunshine\sunshine.exe
CPU threshold:         n/a
Performance counter:   n/a
Commit threshold:      n/a
Threshold seconds:     n/a
Hung window check:     Disabled
Log debug strings:     Disabled
Exception monitor:     Unhandled
Exception filter:      [Includes]
                       *
                       [Excludes]
Terminate monitor:     Disabled
Cloning type:          Disabled
Concurrent limit:      n/a
Avoid outage:          n/a
Number of dumps:       1
Dump folder:           C:\Procdump\
Dump filename/mask:    PROCESSNAME_YYMMDD_HHMMSS
Queue to WER:          Disabled
Kill after dump:       Disabled


Press Ctrl-C to end monitoring without terminating the process.

[14:30:50] Exception: C0000005.ACCESS_VIOLATION
[14:30:50] Unhandled: C0000005.ACCESS_VIOLATION
[14:30:50] Dump 1 initiated: C:\Procdump\sunshine.exe_230809_143050.dmp
[14:30:50] Dump 1 writing: Estimated dump file size is 217 MB.
[14:30:52] Dump 1 complete: 217 MB written in 1.8 seconds
[14:30:52] Dump count reached.

`

from sunshine.

system198 avatar system198 commented on June 3, 2024

Thanks. As I suspected, AMD encoder is crashing when we're trying to test for working encoders.

Please try this build https://github.com/LizardByte/Sunshine/suites/14970304158/artifacts/854085489 (need to be signed in with your GitHub account for the link to work). If this build doesn't work, please attach new logs and a new dump file.

Thank you very much! I tried the build and it finally works without any issues. Cheers

from sunshine.

LizardByte-bot avatar LizardByte-bot commented on June 3, 2024

This issue has been fixed and will be available in the next release.

from sunshine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.