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

Support for Android? #54

Open
s-ayush2903 opened this issue Jun 14, 2021 · 0 comments
Open

Support for Android? #54

s-ayush2903 opened this issue Jun 14, 2021 · 0 comments

Comments

@s-ayush2903
Copy link

s-ayush2903 commented Jun 14, 2021

Hi, I am creating this ticket as there is mention the documentation about the crate working on Linux-based hardware here.

We're using this crate for state management in our project irdest, this crate works fine for platforms other than android. The area of interest in the project is an android application that is built on top of the rust library(whose source code is already present in the repository itself). To develop the application with lib support, we add the lib to its support path and then after some android stuff, it loads the library to the application.
But the problem occurs while creating a new directory for cross platform state-management, despite us being providing write access to the application in the device memory, it fails to create a new one(that is implicitly called by the rust lib, which makes use of this crate) and results in crashing the application, providing this error:

2021-06-13 20:35:58.119 28892-28892/? I/rust: irdestcore::api::base: Router init...done
2021-06-13 20:35:58.119 28892-28892/? E/panic: ### Rust `panic!` hit at file 'utils/android-support/src/api/base.rs', line 68: `panicked at 'called `Result::unwrap()` on an `Err` value: IoFault', utils/android-support/src/api/base.rs:68:73`
2021-06-13 20:35:58.121 28892-28892/? A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 28892 (net.qaul.app), pid 28892 (net.qaul.app)

What we are actually calling from the base.rs at the given:
let irdest = Irdest::new(router, Directories::new("qaul").unwrap());
where qaul is the name of the application.

So is there some/any known fix/support/workaround for the native android applications?

-Thanks

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

1 participant