-
Notifications
You must be signed in to change notification settings - Fork 22
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
Ribir panics when opening any program on macOS #596
Comments
Thank you for reporting this issue! It appears we may be exceeding the buffer size limit. I've tested on two macOS devices with newer versions (Sonoma 14.5), and both are working fine with 0.3.0-alpha.5 and the latest master branch. Unfortunately, I don't have access to a macOS 10.15 Catalina device to reproduce the issue. Could you provide more details about the problem? The panic message indicates that the error occurs with wgpu 0.20.0. However, Ribir 0.3.0-alpha.5 uses wgpu version 0.19.0. Are you running the examples program from the master branch? If possible, could you try running the latest master branch to see if the issue is resolved? |
I created a new Cargo project with the below toml:
which I added from running When running the program again, the same error appears.
Yes, I am running the examples program from the master branch. When I add the 0.3.0-alpha.5 version to the
Strangely, when adding the aforementioned package This happens with all the prerelease versions. |
The compiler error you're seeing is in the latest alpha version. It'll be fixed in the next alpha release. For now, use version About the panic issue on macOS 10.15, I don't have a machine with this OS right now. But, I'll try to find one and check the issue by next week. Or, I might try to reproduce it on a CI machine. Thanks again, and I'll keep you updated on the progress. |
@TheRacecar, I apologize for the inconvenience. The macOS 10.15 Actions runner image is being deprecated and be removed by 8/30/22, which means I can't reproduce the issue on my side to fix it. The problem seems to be that we're requiring the uniform buffer size to be 65536 (64K), which exceeds the limit of your device. I'd be happy to assist you in resolving this issue. Here's what you can do: You can assign a smaller number, like 16384 (16K), to Then, try running the examples on your device. If this works, please print the value of |
This worked, and the examples (in my case, the Wordle game) worked properly with no errors.
The number outputted was |
Do you have dual graphics cards in your system? It's possible that we're querying the limits from one card, but creating the buffer on the other. |
I do not have dual graphics cards in my system, however the problem may be is that it could be querying the buffer limit from the graphics card, but creating the actual buffer on the CPU's internal graphics. If you are interested, here are the specs: iMac (Retina 4K, 21.5-inch, 2017) |
Problem
Ribir panics when opening any Ribir program on macOS.
Error message:
Steps To Reproduce
Steps to reproduce the behavior:
cargo run
.Expected behavior
The application to compile and open regularly without any issues.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment:
0.3.0-alpha.5
nightly
The text was updated successfully, but these errors were encountered: