-
Notifications
You must be signed in to change notification settings - Fork 50
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
panic on nightly: from_raw_parts
safety contract violation
#153
Comments
rib
pushed a commit
that referenced
this issue
Apr 26, 2024
Avoids calling `std::slice::from_raw_parts` with a null `saved_state_in` pointer. Fixes: #153
rib
pushed a commit
that referenced
this issue
Apr 26, 2024
Avoids calling `std::slice::from_raw_parts` with a null `saved_state_in` pointer. Fixes: #153
Athosvk
pushed a commit
to Traverse-Research/android-activity
that referenced
this issue
Jul 10, 2024
Avoids calling `std::slice::from_raw_parts` with a null `saved_state_in` pointer. Fixes: rust-mobile#153
Athosvk
pushed a commit
to Traverse-Research/android-activity
that referenced
this issue
Jul 10, 2024
Avoids calling `std::slice::from_raw_parts` with a null `saved_state_in` pointer. Fixes: rust-mobile#153
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
On latest nightly build my application fall into panic even before main function starts.
After figuring out, the problem was in file
glue.rs
:android-activity/android-activity/src/native_activity/glue.rs
Line 341 in c9faa9c
here, the saved_state_in is
null
in my case, which makes this operation violating safety contract.To reproduce, create any minimal application with empty
android_main
function withnative-activity
feature.Potentially, game activity code also have this issue, but wasn't tested
Panic message:
The text was updated successfully, but these errors were encountered: