-
-
Notifications
You must be signed in to change notification settings - Fork 835
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
use different dioxus versions depending on the platform #741
Comments
i've even tried different paths depending on activation of the features, but that goes into the issue mentioned from cargo.
why this doesnt work? it works, but when macro expansion happens from within the |
author of xbuild here: dioxus 0.3.0 should work on android. updated the template here: rust-mobile/xbuild#104 |
ok. so how do i reflect the change of the template on my system? by updating |
did something related to the code of xbuild changed? or just the template changed? because i've tried dioxus 0.3.0 on android, and everything compiles well and even installs correctly on android, but when i open the app, the ui doesnt respond, and when im trying to type some text into an html input, the app crashes. |
And that issue doesn't exist with the older dioxus version? In that case you should open a bug report once you've made sure that it isn't a user error. It sounds like it is maybe a duplicate of #626 |
yes, with 1e99e35, no issue |
ok, seems that this is the only change in the what i understood from what you said is that if i use the version bumps from the pull request on the template, dioxus 0.3.0 should work on android. right? meaning that: i can use a project made with the old version of the template on which i only need to change the versions to update to latest dioxus. right? lets see.. |
not saying there aren't any bugs. dioxus 0.3 was just released recently and rewrote large parts of the internals. just started testing the 0.3 release and hit some bugs: |
use_atom_ref with Fermi gives errors #734, honestly, i dont really understand why dioxus panics a lot in the source. i've also found a lot of panics. have you considered using |
ok so the smallest example build with old template but with bumped versions works on android. thanks for the suggestions and help! now lets see if i can port my project to 0.3.0, after that i will close the issue. |
doesnt work. false positive. this example doesnt work fn app(cx: Scope) -> Element {
let mut count = use_state(&cx, || 0);
cx.render(rsx! {
div {
"hello world"
input {
}
h1 { "Count: {count}" }
button { onclick: move |_| count.set(1), "+" }
button { onclick: move |_| count.set(-1) , "-" }
div {
"just a div"
}
button {
"just a button"
}
}
})
} more specific, when you press the + or - button, the UI freezes and nothing else its working. seems to be related to this part button { onclick: move |_| count.set(1), "+" }
button { onclick: move |_| count.set(-1) , "-" } something happens there. i guess deadlock? maybe. a deadlock would a good candidate for a freeze.
|
just this log appears after pressing the + or - buttons. 13415 13415 I IMM_LC : hideSoftInputFromWindow - mService.hideSoftInput
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 0
13415 13415 I ViewRootImpl@9e973b6[MainActivity]: ViewPostIme pointer 1 these logs represent me touching the phone on and on, but like i said nothing happens. |
non related: how can i debug such applications that run on android? to know what part of the code is raising errors or panics or deadlocks. or what can i do to see whats happening? |
hello.
im trying to use the revision 1e99e35 for android and latest version of dioxus from master on the desktop.
referenced issue here: rust-lang/cargo#7753 (comment)
why im trying to do this? because latest version of dioxus doesnt work on android. [maybe i will open a separate issue]
why revision 1e99e35? because this revision works on android and so this revision is used by default in a project template when you create a new project with
x new
(cargo xbuild)the problem is: this revision, 1e99e35, doesnt have all the cool new features that i can use and so im trying to mix the both in the same codebase with conditional compilation, of course.
does anyone have a workaround for this?
thanks in advance!
The text was updated successfully, but these errors were encountered: