-
Notifications
You must be signed in to change notification settings - Fork 2
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
Flutter error management #28
Conversation
FCM
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sync with mainline.
# Conflicts: # flutter/android/src/main/jniLibs/arm64-v8a/libmedea_jason.so # flutter/android/src/main/jniLibs/armeabi-v7a/libmedea_jason.so # flutter/android/src/main/jniLibs/x86/libmedea_jason.so # flutter/android/src/main/jniLibs/x86_64/libmedea_jason.so # flutter/example/lib/call.dart # flutter/example/pubspec.lock # flutter/lib/src/native/platform/constraints.dart # flutter/lib/src/native/platform/ice_candidate.dart # flutter/lib/src/native/platform/ice_servers.dart # flutter/lib/src/native/platform/input_device_info.dart # flutter/lib/src/native/platform/media_track.dart # flutter/lib/src/native/platform/peer_connection.dart # flutter/lib/src/native/platform/transceiver.dart # flutter/pubspec.yaml # src/platform/dart/constraints.rs # src/platform/dart/media_track.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@evdokimovs , discussed, added todos
# Conflicts: # flutter/android/src/main/jniLibs/arm64-v8a/libmedea_jason.so # flutter/android/src/main/jniLibs/armeabi-v7a/libmedea_jason.so # flutter/android/src/main/jniLibs/x86/libmedea_jason.so # flutter/android/src/main/jniLibs/x86_64/libmedea_jason.so # flutter/example/pubspec.lock # flutter/lib/src/interface/media_device_info.dart # flutter/lib/src/interface/media_manager.dart # flutter/lib/src/native/ffi/exception.dart # flutter/lib/src/native/ffi/exception.g.dart # flutter/lib/src/native/media_device_info.dart # src/api/dart/media_device_info.rs # src/api/dart/mod.rs # src/api/dart/utils/err.rs
# Conflicts: # flutter/android/src/main/jniLibs/arm64-v8a/libmedea_jason.so # flutter/android/src/main/jniLibs/armeabi-v7a/libmedea_jason.so # flutter/android/src/main/jniLibs/x86/libmedea_jason.so # flutter/android/src/main/jniLibs/x86_64/libmedea_jason.so # flutter/lib/src/interface/media_manager.dart
src/platform/dart/mod.rs
Outdated
log::error!("Rust code panicked {bt:?}"); | ||
panic::set_hook(Box::new(|bt| { | ||
if let Some(f) = unsafe { PANIC_FN.as_ref() } { | ||
f.call1(format!("{bt:?}")); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why fmt::Debug
? Seems fmt::Display
suits better here.
src/platform/dart/utils/handle.rs
Outdated
let err_msg = unsafe { | ||
c_str_into_string(Dart_GetError_DL_Trampolined(handle)) | ||
}; | ||
panic!("Unexpected Dart error: {}", err_msg) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should have been documented in # Panic
section of the docs.
Don't merge. |
Мне запушивать запрошенные изменения, или были обнаружены еще какие-то неучтенные моменты? |
@evdokimovs there was GitHub outage, preventing me from pushing changes. Since the PR is aproved, you don't need to push anything. |
But GitHub Actions still seem to be outaged. We need to wait. |
@evdokimovs Flutter tests stuck all the time. Please, fix them in a separate PR. |
Synopsis
Этот PR реализует механизм уведомления конечного приложения о панике, произошедшей в Расте, а также детектирование ошибок, возвращенных из Флаттера Расту.
Checklist
Draft:
prefixk::
labels appliedDraft:
prefix is removedflutter-webrtc
dependency switched back tomaster
branch