Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacPort 0.20.0 and up returns segmentation fault 11 #1348

Closed
3 tasks done
EgeToksoz opened this issue Jun 3, 2023 · 13 comments · Fixed by #1334 or #1700
Closed
3 tasks done

MacPort 0.20.0 and up returns segmentation fault 11 #1348

EgeToksoz opened this issue Jun 3, 2023 · 13 comments · Fixed by #1334 or #1700
Labels
fixed This issue has been fixed and will be available in the next release. os:macOS OS is macOS

Comments

@EgeToksoz
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the nightly release?

  • This issue is present in the nightly release

Describe the Bug

0.19.1 works well but after updating to 0.20.0 and nightly build. zsh returns zsh: segmentation fault sunshine and bash returns Segmentation fault: 11
it doesn't seem like a GPU issue integrated and discrete gpu returns the same error unlike #804

Expected Behavior

No response

Additional Context

No response

Host Operating System

macOS

Operating System Version

macOS 13.4 (22F66)

Architecture

64 bit

Sunshine commit or version

0.20.0

Package

macOS - Portfile

GPU Type

AMD

GPU Model

Radeon Pro 555X/Intel UHD Graphics 630

GPU Driver/Mesa Version

Latest

Capture Method (Linux Only)

No response

Config

default

Apps

No response

Relevant log output

user@mac .ports % sunshine
[2023:06:03:12:42:55]: Info: Sunshine version: 0.20.0
[2023:06:03:12:42:55]: Info: system_tray() is not yet implemented for this platform.
[2023:06:03:12:42:55]: Error: No screen capture permission!
[2023:06:03:12:42:55]: Error: Please activate it in 'System Preferences' -> 'Privacy' -> 'Screen Recording'
[2023:06:03:12:42:55]: Error: Platform failed to initialize
[2023:06:03:12:42:55]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:06:03:12:42:55]: Info: Trying encoder [videotoolbox]
[2023:06:03:12:42:55]: Info: SDR color coding [Rec. 601]
[2023:06:03:12:42:55]: Info: Color range: [JPEG]

  [Restored Jun 3, 2023 at 12:43:09 PM]
Restored session: Sat Jun  3 12:43:07 +03 2023
user@mac .ports % sunshine
[2023:06:03:12:43:11]: Info: Sunshine version: 0.20.0
[2023:06:03:12:43:11]: Info: system_tray() is not yet implemented for this platform.
[2023:06:03:12:43:11]: Info: // Testing for available encoders, this may generate errors. You can safely ignore those errors. //
[2023:06:03:12:43:11]: Info: Trying encoder [videotoolbox]
[2023:06:03:12:43:11]: Info: SDR color coding [Rec. 601]
[2023:06:03:12:43:11]: Info: Color range: [JPEG]
zsh: segmentation fault  sunshine
@ReenigneArcher ReenigneArcher added the os:macOS OS is macOS label Jun 3, 2023
@jershell

This comment was marked as off-topic.

@lucasscheepers

This comment was marked as off-topic.

@classicalwow

This comment was marked as off-topic.

@DevSrSouza

This comment was marked as off-topic.

@qdore
Copy link

qdore commented Jul 7, 2023

Add backtrace:

(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x137c8c008)
  * frame #0: 0x00007ff819b3abc3 libsystem_platform.dylib`_platform_memset$VARIANT$Rosetta + 206
    frame #1: 0x000000010015204a sunshine`platf::nv12_zero_device::convert(platf::img_t&) + 378
    frame #2: 0x0000000100114b49 sunshine`video::validate_config(std::__1::shared_ptr<platf::display_t>&, video::encoder_t const&, video::config_t const&) + 281
    frame #3: 0x000000010011514e sunshine`video::validate_encoder(video::encoder_t&, bool) + 574
    frame #4: 0x0000000100116920 sunshine`video::probe_encoders() + 3936
    frame #5: 0x000000010002ee2c sunshine`main + 4012
    frame #6: 0x000000020170f310 dyld`start + 2432

@FrancescoBrunoDev

This comment was marked as off-topic.

1 similar comment
@JonoloLuo

This comment was marked as off-topic.

@ReenigneArcher
Copy link
Member

Do not continue with these +1 comments. Use the reactions instead please.

@Timfon
Copy link

Timfon commented Jul 13, 2023

How do I add the backtrace? I'm not sure if I understand properly

@ReenigneArcher
Copy link
Member

@ReenigneArcher
Copy link
Member

ReenigneArcher commented Aug 31, 2023

This build "may" fix this issue, if anyone would like to test and report on the status of the macport file from here: https://github.com/LizardByte/Sunshine/actions/runs/6040829220#artifacts

You must be logged into GitHub in order to download it.

Edit: This build was merged. Would still be good if someone let me know if it fixes the issues for macports.

@downthecrop
Copy link

downthecrop commented Sep 13, 2023

Verified the Portfile is functional. Macports does encounter a minor issue when fetching the specific orphaned commit 40b7843 referenced with that artifact. However, that won't affect tagged release versions.

No boost180 Macports issue or segfault ect

macports-install-terminal-output.txt

@ReenigneArcher ReenigneArcher added the fixed This issue has been fixed and will be available in the next release. label Sep 13, 2023
@LizardByte-bot
Copy link
Member

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

This was referenced Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed This issue has been fixed and will be available in the next release. os:macOS OS is macOS
Projects
None yet
Development

Successfully merging a pull request may close this issue.