Comments (12)
could you give me more details on the setup? what device/kernel are you on?
from betterbatterystats.
Samsung Galaxy S GT-I9000
Kernel Version
2.6.35.12-g4a2814b
atinm@wolverine #1
ROM: MIUI Android 1.9.30
On 4 October 2011 08:26, asksven <
[email protected]>wrote:
could you give me more details on the setup? what device/kernel are you on?
Reply to this email directly or view it on GitHub:
from betterbatterystats.
There is a known issue with MIUI: have you tried aneabling/disabling the "battery monitor"?
from betterbatterystats.
Do you mean the system's battery usage monitor? I've switched that off but
didn't seem to make a difference.
On 5 October 2011 07:59, asksven <
[email protected]>wrote:
There is a known issue with MIUI: have you tried aneabling/disabling the
"battery monitor"?Reply to this email directly or view it on GitHub:
from betterbatterystats.
There is a discussion ongoing about this problem with MIUI. You may want to follow / contribute: http://forum.xda-developers.com/showpost.php?p=18142471&postcount=1341
I seems that for some people anabling battery monitoring in MIUI helped. Could you provide a logcat for the timeframe when you open the "partial wakelocks" view in BBS? What I am looking for is the logged sequence of BatteryStatsProxy to see if the data retrieval fails, returns nothing of wrong data.
The problem with MIUI is that there is no source code that I could check so see what changes have been made to the services / system classes so I rely on logs to try to marrow down the problem. Once this is done I could try alternatives to make BBS compatible with MIUI as I am interested in supporting as many devices / ROMs as possible.
from betterbatterystats.
oops, wrong button, I was not supposed to be closed that fast ;)
from betterbatterystats.
Logcat extract when I selected Partial Wakelock and since unplugged
I think the part you are most interested in is on line 650 onwards:
E/InputDispatcher( 164): channel '40f7d348
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 164): channel '40f7d348
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Channel is unrecoverably broken and will be disposed!
E/InputDispatcher( 164): channel '40f92258
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 164): channel '40f92258
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Channel is unrecoverably broken and will be disposed!
E/InputDispatcher( 164): Received spurious receive callback for unknown
input channel. fd=275, events=0x8
E/InputDispatcher( 164): Received spurious receive callback for unknown
input channel. fd=258, events=0x8
E/InputDispatcher( 164): Received spurious receive callback for unknown
input channel. fd=266, events=0x8
On 5 October 2011 17:52, asksven <
[email protected]>wrote:
oops, wrong button, I was not supposed to be closed that fast ;)
Reply to this email directly or view it on GitHub:
from betterbatterystats.
Strangely enough, after sending you the extract, I went and enable battery
monitoring in MIUI, and suddenly BBS is working now. Will keep you posted if
the situation changes.
On 6 October 2011 11:19, Alvin Leong [email protected] wrote:
Logcat extract when I selected Partial Wakelock and since unplugged
I think the part you are most interested in is on line 650 onwards:
E/InputDispatcher( 164): channel '40f7d348
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 164): channel '40f7d348
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Channel is unrecoverably broken and will be disposed!
E/InputDispatcher( 164): channel '40f92258
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 164): channel '40f92258
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Channel is unrecoverably broken and will be disposed!
E/InputDispatcher( 164): Received spurious receive callback for unknown
input channel. fd=275, events=0x8
E/InputDispatcher( 164): Received spurious receive callback for unknown
input channel. fd=258, events=0x8
E/InputDispatcher( 164): Received spurious receive callback for unknown
input channel. fd=266, events=0x8On 5 October 2011 17:52, asksven <
[email protected]>wrote:oops, wrong button, I was not supposed to be closed that fast ;)
Reply to this email directly or view it on GitHub:
from betterbatterystats.
It has stopped working again, this time a different message is captured in
the logcat:
http://pastebin.com/download.php?i=20Ag86vQ
It does appear if I just go and switch off battery monitoring, and then
switch it back on, then it will work again, but it loses all the historical
data.
On 6 October 2011 11:28, Alvin Leong [email protected] wrote:
Strangely enough, after sending you the extract, I went and enable battery
monitoring in MIUI, and suddenly BBS is working now. Will keep you posted if
the situation changes.On 6 October 2011 11:19, Alvin Leong [email protected] wrote:
Logcat extract when I selected Partial Wakelock and since unplugged
I think the part you are most interested in is on line 650 onwards:
E/InputDispatcher( 164): channel '40f7d348
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 164): channel '40f7d348
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Channel is unrecoverably broken and will be disposed!
E/InputDispatcher( 164): channel '40f92258
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Consumer closed input channel or an error occurred. events=0x8
E/InputDispatcher( 164): channel '40f92258
com.asksven.betterbatterystats/com.asksven.betterbatterystats.StatsActivity
(server)' ~ Channel is unrecoverably broken and will be disposed!
E/InputDispatcher( 164): Received spurious receive callback for unknown
input channel. fd=275, events=0x8
E/InputDispatcher( 164): Received spurious receive callback for unknown
input channel. fd=258, events=0x8
E/InputDispatcher( 164): Received spurious receive callback for unknown
input channel. fd=266, events=0x8On 5 October 2011 17:52, asksven <
[email protected]wrote:
oops, wrong button, I was not supposed to be closed that fast ;)
Reply to this email directly or view it on GitHub:
from betterbatterystats.
The first logcat seems to tell that there is something broken in the communication between the app the the battery service. I would be interested in knowing if the battery graphs from MIUI stop working at that time as wll and if this happens independentely from BBS being used.
from betterbatterystats.
I'm not 100% sure if I understood you, so hope I got this right. Whenever
BBS stops having data for display, the MIUI battery graphs does appear to
continue to work. I'm not certain if BBS runs in the background whenever I
switch out, but I do perceived it works the longest if I kept BBS app in
display.
On 9 October 2011 20:59, asksven <
[email protected]>wrote:
The first logcat seems to tell that there is something broken in the
communication between the app the the battery service. I would be interested
in knowing if the battery graphs from MIUI stop working at that time as wll
and if this happens independentely from BBS being used.Reply to this email directly or view it on GitHub:
from betterbatterystats.
After adding some more logging in 1.5.1 we now know more about this issue:
[CODE]com.android.internal.app.IBatteryStats$Stub.asInterface
I/BatteryStatsProxy(29817): invoking getStatistics
D/dalvikvm( 1093): GC_FOR_MALLOC freed 720K, 44% free 8481K/15111K, external 0K/0K, paused 62ms
E/JavaBinder(29817): !!! FAILED BINDER TRANSACTION !!!
I/BatteryStatsProxy(29817): retrieving parcel
I/BatteryStatsProxy(29817): reading CREATOR field
E/TAG (29817): An exception occured in BatteryStatsProxy(). Message: Bad magic number
I/BatteryStatsProxy(29817): invoking android.os.ServiceManager.getService("batteryinfo")
I/BatteryStatsProxy(29817): android.os.ServiceManager.getService("batteryinfo") returned a service binder[/CODE]
At some late point in time after many calls to the service this error "bad magic number" occurs. It is consisitent to the behavior reported by users that on MIUI the data stops being displayed after some time.
from betterbatterystats.
Related Issues (20)
- crash on opening the settings
- Add screenshots of the application HOT 2
- OutOfMemoryError after giving permission HOT 1
- Reference from or to are empty: (ref_boot, ref_current) HOT 1
- No stats has been collected yet HOT 6
- Fallback to 'since boot', No stats have been collected HOT 3
- Android 14 vs BATTERY_STATS HOT 4
- immediate crash on samsung galaxy a54 (android 13) HOT 2
- can't grant BATTERY_STATS DUMP PACKAGE_USAGE_STATS HOT 1
- App cannot be removed HOT 3
- Cant go to app HOT 3
- REQUEST: Battery health
- Not working on Pixel 8 Pro with Android 14 HOT 1
- [DOCS] Add F-Droid badge to Readme HOT 1
- [DOCS] Add Google Play badge to Readme
- [QUESTION] Why there wasnt new lately commits/releases? Is the project dead? HOT 1
- Add link to Github to About page
- adb -d shell settings put global hidden_api_policy 1 still shows Private APIs not granted HOT 4
- Add a shell script to the repository, containing all the adb commands for rootless devices
- Diagnostics shows error: BBS not tracking data HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from betterbatterystats.