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

Porting to Android #4

Open
aayush-k opened this issue Jan 29, 2017 · 2 comments
Open

Porting to Android #4

aayush-k opened this issue Jan 29, 2017 · 2 comments

Comments

@aayush-k
Copy link

aayush-k commented Jan 29, 2017

I am trying to port this to android (already have it running it successfully on iOS) and am having trouble with all the data being managed by the main thread, giving me this exception:

Fatal signal 11 (SIGSEGV), code 2, fault addr 0xc48500bc in tid 24726 (mqt_js)
                                                 
[ 01-29 13:37:53.769   377:  377 W/         ]
debuggerd: handling request: pid=24686 uid=10178 gid=10178 tid=24726

[1:41]  
com.compare I/Choreographer: Skipped 117 frames!  **The application may be doing too much work on its main thread.**
                                                           
[ 01-29 13:37:55.735 25005:25005 E/         ]
debuggerd: failed to kill process 24686: No such process
@shuhei
Copy link
Owner

shuhei commented Jan 30, 2017

I don't have Android and I am not sure about its technical limitation, but it seems like "too much work on its main thread" is coming from the path animation, which is done in JavaScript instead of native code. To fix the error, it seems necessary to implement the animation in native code. Or do you have any suggestion for solving this problem?

@aayush-k
Copy link
Author

My partner, @SujeethJinesh and I constructed the android folder within your project got it working pretty smoothly on both physical devices and an emulator! (provided dev settings were turned off) We'll send over a pull request for you to take a look!

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

2 participants