Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Rockbox as an Application (Android, WebOS etc.)
« previous next »
  • Print
Pages: 1 ... 24 25 [26] 27 28 ... 30

Author Topic: Rockbox as an Application (Android, WebOS etc.)  (Read 318697 times)

Offline ploco

  • Member
  • *
  • Posts: 18
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #375 on: August 02, 2015, 07:52:30 AM »
about to 5.0 lollipop crash:

from my understanding, after disable the battery monitor, the RaaA can stay alive as long as user not trying to play a song.
by press play, the audioTrack/Streamer thread will call nativeWrite(), contain AudioTrack.write(), a blocking method that jammed the whole process while waiting in write(). I suspect this is where it crashes.
https://mailman.videolan.org/pipermail/vlc-devel/2015-March/101597.html
VLC using a non-blocking AudioTrack write() method for lollipop.
fixed the forever waiting according to this post:
https://mailman.videolan.org/pipermail/vlc-devel/2015-March/101596.html
I wonder how hard it is to bring this method to RaaA.
==[12.08.15 update]=============================
after test with a build disabled both audioTrack and it's jni, The program still crashes in genymotion.
so it's not the JNI but something between read file and pcm_play_dma_init()?
 
« Last Edit: August 11, 2015, 01:31:57 PM by ploco »
Logged

Offline p.h.

  • Member
  • *
  • Posts: 15
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #376 on: September 02, 2015, 06:21:57 AM »
Is there currently a way to build RaaA working in Lollipop?
Is it enough to apply the mentioned patch or something more has to be done for RaaA to work?
Logged

Offline ploco

  • Member
  • *
  • Posts: 18
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #377 on: September 02, 2015, 11:13:02 PM »
Quote from: p.h. on September 02, 2015, 06:21:57 AM
Is there currently a way to build RaaA working in Lollipop?
Is it enough to apply the mentioned patch or something more has to be done for RaaA to work?
No. If such patch exists, would have been merged into the source already.
Logged

Offline p.h.

  • Member
  • *
  • Posts: 15
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #378 on: September 03, 2015, 05:55:08 AM »
Quote from: ploco on September 02, 2015, 11:13:02 PM
No. If such patch exists, would have been merged into the source already.
What about this patch?
Quote from: [Saint] on September 13, 2014, 01:07:14 AM
RaaA: Android work around the Kitkat ART crashes Change-Id: I21d00aa669295a615bc203555d57ca9cebb20da7
[Saint]
Logged

Offline ploco

  • Member
  • *
  • Posts: 18
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #379 on: September 03, 2015, 12:58:00 PM »
Quote from: p.h. on September 03, 2015, 05:55:08 AM
What about this patch?
Quote from: [Saint] on September 13, 2014, 01:07:14 AM
RaaA: Android work around the Kitkat ART crashes Change-Id: I21d00aa669295a615bc203555d57ca9cebb20da7
[Saint]
I committed that one. Doesn't help with the lollipop case. 
Logged

Offline p.h.

  • Member
  • *
  • Posts: 15
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #380 on: September 05, 2015, 08:07:19 AM »
Do you have an idea what the problem is?
Does someone trying to tackle the problem?
Logged

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #381 on: September 07, 2015, 06:39:06 AM »
Startup crash is related to _battery_level().
Logged

Offline p.h.

  • Member
  • *
  • Posts: 15
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #382 on: September 07, 2015, 06:43:32 AM »
The function seems not to be essential. What if the function have been disabled or just returned preset value. Would such a workaround make RaaA work?
Logged

Offline ploco

  • Member
  • *
  • Posts: 18
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #383 on: September 07, 2015, 08:19:42 PM »
Quote from: wodz on September 07, 2015, 06:39:06 AM
Startup crash is related to _battery_level().
I knew this since Feb, but theres more after this.
Quote from: p.h. on September 07, 2015, 06:43:32 AM
The function seems not to be essential. What if the function have been disabled or just returned preset value. Would such a workaround make RaaA work?
after disable that function, if we stay away from WPS, RaaA will not crash.
as soon as it step into wps, crash! with no meaningfull adb logs.
my log shows somthing about was updateing framebuffer then stackoverflow.

 
Logged

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #384 on: September 08, 2015, 08:26:08 AM »
Entering WPS setups PCM subsystem which is probably the cause of later crash.
Logged

Offline p.h.

  • Member
  • *
  • Posts: 15
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #385 on: September 08, 2015, 09:30:38 AM »
Quote from: ploco on September 07, 2015, 08:19:42 PM
as soon as it step into wps, crash! with no meaningfull adb logs.
my log shows somthing about was updateing framebuffer then stackoverflow.

Have you tried to use old-fashioned printf() to output debug messages at critical points?
Logged

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #386 on: September 09, 2015, 03:31:26 PM »
The current theory is that due to stricter policy in ART, JNI calls can be made from the rockbox main thread only.
Logged

Offline p.h.

  • Member
  • *
  • Posts: 15
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #387 on: September 09, 2015, 06:03:24 PM »
An app of hello world type, with single JNI call from outside main thread, should give an answer whether or not the theory is true.
Logged

Offline wodz

  • Developer
  • Member
  • *
  • Posts: 390
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #388 on: September 10, 2015, 06:36:12 AM »
Feel free to test.
Logged

Offline p.h.

  • Member
  • *
  • Posts: 15
Re: Rockbox as an Application (Android, WebOS etc.)
« Reply #389 on: September 11, 2015, 07:36:02 AM »
Unfortunately I'm not Android programmer. I'm merely build RaaA.

But I have found something that could help in finding the cause. It is possible to get more detailed debug logs, after enabling CheckJNI.
http://android-developers.blogspot.com/2011/07/debugging-android-jni-with-checkjni.html

There's a website, which give some tips on how to verify an app is ART ready:
http://developer.android.com/guide/practices/verifying-apps-art.html

Hope this helps.
Logged

  • Print
Pages: 1 ... 24 25 [26] 27 28 ... 30
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  New Ports
| | |-+  Rockbox as an Application (Android, WebOS etc.)
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.077 seconds with 15 queries.