[DEV/DEBUG] CM11 debug thread for Falcon

matmutant

Senior Member
Mar 17, 2011
3,379
4,741
0
~/
andrux-and-me.blogspot.com
CM11 debug thread for Falcon

This thread is related to CM11 for Moto G (Falcon) maintained by Ethan Chen

for debugging purpose, i need this only thread to centralize the data
==> Report bugs (documented) i'll sort them by relevance (importance : low [L]; medium [M]; high [H]) and follow them to Ethan Chen.




Before Asking anything here, please refer to RC-FAQ & CM11 FAQ by @pinguijxy
refer to this post for general commands​

  • post 2 : known and solved
  • post 3 : pending
  • post 4: irrelevant

to improve CM11 for Falcon, you could :
  • post results after following protocols,
    [*]help me to set up test new protocols,
    [*]give advices about them
    [*]suggest things to investigate
    IF you can prove it worths to ;)

How To Report?
20140819-edit : Please use "Bug Report" button at the top of the thread instead of posting in thread.
give at least :

  • model : XT103* ?
  • rom build : cm-11-yyyymmdd-NIGHTLY-falcon ?
  • kernel build :
  • logcat?
  • way to reproduce ? (ok this is the best, but not always easy, or even possible to do)

XDA:DevDB Information
[DEV/DEBUG] Official CM11 debug and dev thread for Falcon, ROM for the Moto G

Contributors
matmutant, pinguijxy, CyanogenMod, Ethan Chen
ROM OS Version: 4.4.x KitKat
ROM Kernel: Linux 3.4.x
Based On: CyanogenMod

Version Information
Status: Testing

Created 2014-08-19
Last Updated 2015-01-10
 

Attachments

Last edited:

matmutant

Senior Member
Mar 17, 2011
3,379
4,741
0
~/
andrux-and-me.blogspot.com
Known Bugs

Known and already reported:
  • OTG Mode does not charge [M]
  • LINE doesn't work in free call mode [M]
  • Hardware KB doesn't have layout settings in "language&input" [M]
  • Audio freeze and lags [H] [click for more]
  • Camera crashes after some time [H] [logcat - description in bugtracker - temporary workaround (XT1033): old libs]
  • [Wifi] Cannot connect to AP in some cases [H] (looking for more infos)
  • [Encryption] Encrypting 'bricks' device [H] (jira report)

Solved (kept for achive):
  • The flip case turns the screen on when opened, but not off when closed. (fixed since CM11-20140317-NIGHTLY)
  • Incall volume cannot be tuned [H] [click for more](fixed since cm-11-20140402-NIGHTLY)
  • Boot animation is lagging. [L] (fixed since cm11-20140611-NIGHTLY)
  • CPU minMAX stuck @1190MHz by default [H] (solved but frequency display is still somewhat broken)
  • In-Game freeze and Force-close [H] [click for more] (CM11-20140621~20140702 Nightlies)]
  • CM file manager crashes [M] [click for more]
  • GPS NO tracking at all issue [M] [click for more] ==> simply read this if you face a localization issue.
  • [Cosmetics] 2.4/5GHz switch available even though device is only capable of 2.4GHz Wifi [L]
  • Quiet Hours and Blacklist issue with XT1033 [M] [more info] 20141025-nightly : http://review.cyanogenmod.org/#/c/75556/
 
Last edited:

matmutant

Senior Member
Mar 17, 2011
3,379
4,741
0
~/
andrux-and-me.blogspot.com
Last edited:

myabc

Senior Member
Jan 27, 2006
1,210
62
68
in call receiving or outgoing the interlocutor listen echo of its own voice. this is very strong bug that keep this rom not good for using phone !
 
  • Like
Reactions: matmutant

matmutant

Senior Member
Mar 17, 2011
3,379
4,741
0
~/
andrux-and-me.blogspot.com
more info about the "ram bug"

first there is that story of "lost RAM" :
Code:
su
dumpsys meminfo
contrary to what i've been told, the "lost RAM" isn't increasing with time going on :
a few minutes ago i had more than 115MB of Lost RAM, and now it is 74209kB (74MB)
so... lost RAM can be somewhat turned into Free RAM ?

Note that i use CM11-2140317 on top of PinkKernel-exp-20140317, and greenify is installed.

Just to show it can actually decrease : see uptime as a piece of evidence ==> one time and a minute later


http://forum.xda-developers.com/showpost.php?p=51202908&postcount=33
http://forum.xda-developers.com/showpost.php?p=51214418&postcount=49
http://forum.xda-developers.com/showpost.php?p=51228300&postcount=57


we need more data
 
Last edited:

matmutant

Senior Member
Mar 17, 2011
3,379
4,741
0
~/
andrux-and-me.blogspot.com
in call receiving or outgoing the interlocutor listen echo of its own voice. this is very strong bug that keep this rom not good for using phone !
ok ... i have an idea about this one, the top_of_device microphone is really near the speaker

hypothesis : top_of_device microphone catch both user voice and interlocutor's one and then send them to device creating the echo for interlocutor.
==> potential fix : disabling that microphone during call and only keep the other one.
 
Last edited:

matmutant

Senior Member
Mar 17, 2011
3,379
4,741
0
~/
andrux-and-me.blogspot.com
Screen turns off during call

bug: Screen randomly turns off after the action of emitting call (confirmed to exist on any nighlty with stock or pinkkernel)

workaround: force reboot or wait for interlocutor to end call.

potential fix: [?]

Would need more data from other users to confirm this bug on more devices.
 
Last edited:

ph4zrd

Senior Member
Nov 30, 2012
72
88
0
Dresden, Saxony
first there is that story of "lost RAM" :
Code:
su
dumpsys meminfo
contrary to what i've been told, the "lost RAM" isn't increasing with time going on :
a few minutes ago i had more than 115MB of Lost RAM, and now it is 74209kB (74MB)
so... lost RAM can be somewhat turned into Free RAM ?

Note that i use CM11-2140317 on top of PinkKernel-exp-20140317, and greenify is installed.

we need more data
For me the "Lost RAM" increased constantly since I rebooted yesterday. It was around 400,0 MB 10 minutes ago. I then tried to kill surfaceflinger: "Lost RAM" was at ~318 MB for a short time and began increasing again, now it's around 360 MB.

CM 20140317, CM default kernel, Dalvik btw...

Edit: It's a XT1032.
Tried killing one system process after another. "Lost RAM" value did not decrease. Induced soft reboots took very long. Any idea what I can try or which data could help locating the problem?

Edit 2: Phone slow as f*** now. Soft-rebooting itself, resetting the wallpaper, randomly killing apps, etc. Need to wait >30sec for it to open terminal emulator. I have a theory that the CM stock browser is somewhat involved cause after using it for ~10 min, my "Lost RAM" stat has risen by around 80 MB.
 
Last edited:

ph4zrd

Senior Member
Nov 30, 2012
72
88
0
Dresden, Saxony
More than enough info -> http://forum.cyanogenmod.com/topic/89863-cm11-on-moto-g-ram-full-after-24-hours/

Sent from my Moto G using XDA Premium 4 mobile app
Thank you for that link. Can confirm the information given there, my phone shows very similar results.
@matmutant: The "Lost RAM" does indeed decrease by some MB sometimes. I think the term is not 100% correct. The RAM is not lost for the phone, it is allocated/consumed by something dumpsys isn't aware about. Thus it can also be freed of course.
 

matmutant

Senior Member
Mar 17, 2011
3,379
4,741
0
~/
andrux-and-me.blogspot.com
Edit 2: Phone slow as f*** now. Soft-rebooting itself, resetting the wallpaper, randomly killing apps, etc. Need to wait >30sec for it to open terminal emulator. I have a theory that the CM stock browser is somewhat involved cause after using it for ~10 min, my "Lost RAM" stat has risen by around 80 MB.
More than enough info -> http://forum.cyanogenmod.com/topic/89863-cm11-on-moto-g-ram-full-after-24-hours/

Sent from my Moto G using XDA Premium 4 mobile app
Thank you for that link. Can confirm the information given there, my phone shows very similar results.

@matmutant: The "Lost RAM" does indeed decrease by some MB sometimes. I think the term is not 100% correct. The RAM is not lost for the phone, it is allocated/consumed by something dumpsys isn't aware about. Thus it can also be freed of course.

I made some investigations, your hypothesis about the implication of Stock Browser looks plausible, i've got a high raise of that "lost RAM" after launching that app ...
 

Gronnd

Senior Member
Nov 22, 2013
182
22
0
I made some investigations, your hypothesis about the implication of Stock Browser looks plausible, i've got a high raise of that "lost RAM" after launching that app ...
My highest raise of "lost RAM" was after using google+ and googl+ photos during 3 or 4 min. Before I had 107000mb(aprox), after I used that apps I had 180000mb
 

matmutant

Senior Member
Mar 17, 2011
3,379
4,741
0
~/
andrux-and-me.blogspot.com
A few small issues that no one else has reported so I might as well do it: When I set my volume panel to expandable it goes back to single after about 5 minutes, the only temporary fix is to change to single then back to expandable, but then it just goes back to single again. Also the animation when you go into standby doesn't work. Any fixes? And is it because of an app I'm running? Also I am running milestone 4 and I have the us version (xt1034)
No standby animation ==> did you change animations speed to 0 in Dev settings? or maybe disable "screen-off animation" in display and led settings :)
 
  • Like
Reactions: Jocker111

Jocker111

Member
Mar 17, 2014
25
23
0
Ok, I'm the original poster from the CM forum, where I've put already my analysis, but it seems here more ppl are active, so I try to find the solution here...
Shortly to my background:
- I'm quite familiar with linux itself, use it at work and privately
- I'm very new to android itself

Now here is what I do not get:
Coming from typical linux I am used to, that I can find ANY process running on my computer with the 'ps' command. The same I would expect from android. Now here for what I do not get:
- The linux kernel must be changed in android compared to original linux, in a way that NOT all memory appears in the ps command
- Can processes be hidden from the ps command (this basically means, they would not appear in /proc)
- If the answers to the above questions is: All processes are listed with ps and we can see their memory usage there, then in my oppinion there can only be a memory leak in the kernel itself.
This is just my oppinion in the problem, because that would be the only explenation for a plain linux system (again I'm new to Android and I have no idea how much google changed in the kernel code).

Now maybe also some more information how this happens on my phone:
- I'm rarely using the Browser on my phone, and the Lost RAM goes up to 500 in 2 days, without that I am ACTIVELY opening the browser (maybe something in the background is using the browser, but I'm not doing anything actively into that direction)

- Typically the Lost RAM does not increase much over night (maybe 50mb), but it seems that even when I'm not doing anything actively some ram gets lost.

- Running applications during the night are Xabber and the email client (also WhatsApp and Viber are running from time to time for checking new messages)

- It seems that most ram gets lost, when I actually move around with my phone, i.e. from one network setup at home, to another network setup at work, and again another network setup during lunch time.

So I am really interested in the answer to the question, how a process can have memory in usage, but this memory is not visible with the ps command or visible in /proc respectively
 

matmutant

Senior Member
Mar 17, 2011
3,379
4,741
0
~/
andrux-and-me.blogspot.com
Thank you @Jocker111, the main problem with this issue is that we didn't find (yet) the culprit...

That "Lost RAM" increase, then decrease a little, increase again (on my side at least) and that wouldn't be a real problem if it did not take this enormous amount of RAM as you describe (until now, i never got more than 160MB "lost")

We all need to investigate in different directions to remove false positive and silly hypothesis, and then brain storm a little and see what anyone could find.