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

Segfault on MacOS since upgrading to Ventura #48

Open
slava-vishnyakov opened this issue Jun 27, 2023 · 4 comments
Open

Segfault on MacOS since upgrading to Ventura #48

slava-vishnyakov opened this issue Jun 27, 2023 · 4 comments

Comments

@slava-vishnyakov
Copy link

slava-vishnyakov commented Jun 27, 2023

I recently upgraded to MacOS Ventura and the binary no longer works.

I tried building it against latest Vulkan SDK and XCode 14.2, but it still segfaults.

Here's the segfault and crash data: https://github.com/slava-vishnyakov/Real-ESRGAN-ncnn-vulkan/actions/runs/5387126680/jobs/9778021348#step:6:23

Here are the changes necessary to build against latest VulkanSDK
https://github.com/xinntao/Real-ESRGAN-ncnn-vulkan/compare/master...slava-vishnyakov:Real-ESRGAN-ncnn-vulkan:master?expand=1#diff-3ab46ee209a127470fce3c2cf106b1a1dbadbb929a4b5b13656a4bc4ce19c0b8R67-R99

Thank you for your work on this!

@redthing1
Copy link

I have this as well.

@redthing1
Copy link

@slava-vishnyakov I looked at your github action and it is failing?

@redthing1
Copy link

Here is some more info on the crash:

* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x1)
    frame #0: 0x00000001003b6cd8 realesrgan-ncnn-vulkan`___lldb_unnamed_symbol11335 + 172
realesrgan-ncnn-vulkan`___lldb_unnamed_symbol11335:
->  0x1003b6cd8 <+172>: strb   wzr, [x0, #0x1]
    0x1003b6cdc <+176>: add    x0, sp, #0x18
    0x1003b6ce0 <+180>: bl     0x10096ce8c               ; symbol stub for: strlen
    0x1003b6ce4 <+184>: cmn    x0, #0x10
Target 0: (realesrgan-ncnn-vulkan) stopped.
(lldb)

@slava-vishnyakov
Copy link
Author

@redthing1 Yes, I merely reproduced the bug in Github Actions so that authors of Real-ESRGAN-ncnn-vulkan can figure out what's wrong. I have no idea how to fix it, unfortunately. I thought that maybe newer versions of Vulkan SDK and XCode could help, but they didn't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants