yashsingh1/xdaforums huggingface dataset:
[RAZR HD Android Development] CWGSM3VO:
I'll start documenting what I'm doing. I'm using a different Java than nightlies do for starters. No custom toolchains or anything, stock source. I'll also document my gapps and list the various apps and versions. It'll take me a while to get this all together.
[RAZR HD Android Development] Zeljko1234:
For the start, could you upload build you're currently using?

Calc bug (and play market) is now persistent for me. If calc or play is removed from recent, start takes ages and whole system hangs. Actually I've got something new, System UI isn't responding message with question do I wish to close, wait or report. Still Nova launcher. Something's really bad :eek:

---------- Post added at 02:27 PM ---------- Previous post was at 02:24 PM ----------

New TWRP 2.8.5.4

http://downloads.blissroms.com/Recovery/xt926/
[RAZR HD Android Development] gappledroid:
My phone is still on CM 02/22, the browser works better than the previous build installed (If I recall was 02/12), the app crash sometimes while playing a youtube video embedded in a website, overall is good. Play Store is a mess, is slow to open (a white screen a few seconds, then a black screen a few seconds again until it loads) in another case (a white screen a few seconds, then a black screen a few seconds again until it crashes, returns to main screen with apps and widgets reloading). The calc has a similar behavior as Play Store (a black screen, nav buttons not working until FC). In certain cases I noticed apps and widgets reloading while in an app and I press the O to return to main screen.

Phone Model: xt907

CM build: 02/22 without mods, not rooted

Gapps: DH Gapps 20150211

Theme: Stock
[RAZR HD Android Development] KC69:
I'm on 3/4 and I haven't had any of those issues. 3 days with minimal lag, I do clear files with performance control, and optimize databases every day. I'm using gel . I know alo t of y'all don't like it but its been working for me.
[RAZR HD Android Development] palmbeach05:
Browser will be better in next release, a lot of commits were pushed through. Also, you are actually rooted
[RAZR HD Android Development] gappledroid:
The phone isn't rooted because the option is deactivated by default in CM. Root access can be activated in Developer options.
[RAZR HD Android Development] IronTechmonkey:
Are you talking about developer options, superuser permissions or root? My understanding is that CM12 is rooted out of the box (as CM11 was) and that root access to apps and or adb is what can be enabled/disabled in developer options.
[RAZR HD Android Development] marknoll:
Yes. But unfortunately he is right. No supersu is possible without turning that option on.
[RAZR HD Android Development] s_u_n:
Instructions?

Are there some instructions on how to upgrade from 4.4.2 (stock) to this 5.0.2 from dhacker?

I am not sure where to begin.

Edit: I cannot download any of the zip files on dev-host. They all seem to be .exe and not the actual stuff.

Edit 2: I can download now. I realized I have to click on the "Download Now" blue button, instead of the "Download" orange button. Now I just need the actual CM 12 ROM zip file. Anyone?
[RAZR HD Android Development] Thibault1171:
Hi guys, I totally format my phone, I've flashed 03/03 build, then dirty flashing 03/04 and Xposed zip.

I need to take a screenshot and I saw the error "Couldn't capture the screenshot". I've search a little bit, and tried to remove my pictures/screenshot folder, wipe dalvik, use SDFix, but I still get the issue. Am I the only one? How to fix it please? I still have 700MO on my SD card and 8GO on my Internal storage free.

it generate a 0 Ko file in Pictures/Storage. I can copy images (PC > Phone) via USB in the camera folder.

t doesn't work in Pictures/Screenshot, and disconnect my phone from my computer. Must I do something to be able again to screenshot?

EDIT: nevermind, just rename the screenshots folder with root explorer, reboot, and it's working again.
[RAZR HD Android Development] palmbeach05:
Cmxlog.com
[RAZR HD Android Development] KC69:
Still nothing happening over at Jenkins. All of the ques are idle.b either the server is down or they broke something major and are trying to fix it.
[RAZR HD Android Development] CWGSM3VO:
I'll try to post builds today for xt925 and xt926 if I can find time.

EDIT: based on the output logs on Jenkins, something is messed up for sure: http://jenkins.cyanogenmod.com/job/android/102872/console
[RAZR HD Android Development] Zeljko1234:
I've tried many things to fix "calc" problem (DU, BP, LS roms), Nova launcher, dhacker's and PA gapps... I even formatted data back to ext4 (it was f2fs), listening music on speaker (instead of BT)... and nothing helped.

I can replicate problem anytime, just start Here maps navigation, Poweramp, gmail, hangout, browser (FF) and most probably one app will be killed. Usually Here maps. After that, starting calc, google play, business calendar 2, build in calendar... will freeze the system, crash or load app very slowly.

It's really hard to use phone now, I never know when some app will not load or will get killed.

Edit: Hmm, maybe Hera maps is the problem but I used it earlier without problems at all... Let's try older build of it.
[RAZR HD Android Development] IronTechmonkey:
Could that be an intentional cessation of the process. A look at the general flow of nightlies for all devices, where it seems to have paused after 3/5 then added a scattering of ones that are not in typical alpha order, lends to impression of an assembly line stopped to address an issue with the product (as opposed to a problem with the assembly line).
[RAZR HD Android Development] palmbeach05:
Either way, this next nightly is going to be a big one, not relating to size, but relating to bettering the overall package (fingers crossed :) ). Looks like browser got a lot of work done to it, hopefully it will fix the issue some of us have seen with it (in my case, lots of lagging).
[RAZR HD Android Development] Zeljko1234:
5.1?
[RAZR HD Android Development] Zeljko1234:
Android 5.1

http://www.androidpolice.com/2015/0...roid-one-phones-coming-soon-to-nexus-devices/

"We're expecting various bug fixes, and I personally have my fingers crossed for the resolution of the memory bugs resulting in slow performance and constantly reloading apps." I'm hopping for that too.
[RAZR HD Android Development] IronTechmonkey:
Oooooh, could be good news. Lollipop really seems unready to me but then I was not so involved at the transition from JB to KK ands so don't have a comparative reference point. Thanks.

---------- Post added at 03:55 PM ---------- Previous post was at 03:49 PM ----------

Very different from saying that the phone is not rooted. Got to judge based on what was asked/stated not what the intended question/statement was. Google's mind reading app is still in development.;)
[RAZR HD Android Development] Zeljko1234:
Do you maybe still have 2/6 build? If you have, could you please upload it somewhere. On official cm page only few latest builds are available, even a lot of (dead) links are there.
[RAZR HD Android Development] Raven2m:
Sorry I already purged it from my phone a few weeks back
[RAZR HD Android Development] CWGSM3VO:
Building xt926 now.. Will post links to both builds when completed & uploaded.
[RAZR HD Android Development] palmbeach05:
Assuming KKBL only?
[RAZR HD Android Development] kabaldan:
The build host's been broken and there's been no intention to break it.

There's no need to see more in it and speculate about it.

Once Jenkins will get fixed, it will start producing nightlies again.
[RAZR HD Android Development] IronTechmonkey:
I did not state or imply that it was scuttled intentionally. Mentioned only because past pauses in production sometimes preceded a notable moment in the progression. Thanks for the clarification.
[RAZR HD Android Development] CWGSM3VO:
Yes.

EDIT: Uploading now, builds are current to msm8610 repo creation commit. Some new interesting stuff since then, if no nightly today/tomorrow, I'll rebuild and publish again. Next post will contain download links.
[RAZR HD Android Development] palmbeach05:
Looks like nightlies are back up and running. We'll see in a couple hrs what happens.
[RAZR HD Android Development] CWGSM3VO:
Hmm.. well that was a lot of work for nothing then.

---------- Post added at 08:52 PM ---------- Previous post was at 08:25 PM ----------

XT926 - http://d-h.st/lL69

XT925 - http://d-h.st/MGY
[RAZR HD Android Development] Zeljko1234:
It wasn't for nothing, we've got your "calc bug free build" and you're ready to build again (read optimized build) ;)
[RAZR HD Android Development] CWGSM3VO:
These recent builds are stock CM12 source. No modifications outside of the normal nightly tree. I do however build with Oracle Java instead of OpenJDK. No custom toolchains in these builds either.

---------- Post added at 07:38 AM ---------- Previous post was at 07:24 AM ----------

Just wanted to point out that more aplogd commits have made it's way into CM12 which should help to isolate the "calc" bug.

See this post for more details on enabling logging and how to retrieve those logs:

http://xdaforums.com/showpost.php?p=52141110&postcount=2040
[RAZR HD Android Development] Zeljko1234:
I have less and less time to play with my phone and in the same time phone reliability is becoming more and more important for me. I'm thinking of going back to cm11...

Dirty flashed your build and "calc" bug happened again. I don't really understand how you don't have it. Today I rebooted and used only gmail, poweramp, browser and hangout. After intensive browsing, tried calc and got freezing again.

I even had one self reboot! It was in airplane mode, just playing music over bt headphones.
[RAZR HD Android Development] CWGSM3VO:
Just built and about to flash what will be the next nightly that shows up today (unless other commits make it in before build time, jenkins is still chewing away on the S's). Not sure what to say Z, with time being a constraint, using the new logging abilities might not be an option for you :(

EDIT: One thing I've noticed is with /cache being f2fs, the "Android is upgrading..." part seems a lot faster. Plow through 98 of 114 in about 3 min, give or take.

---------- Post added at 09:58 AM ---------- Previous post was at 09:31 AM ----------

Hey Z, I had a crazy idea. You're using a 128GB SDcard loaded with Media right?

Well, here's my idea... I keep a settings shortcut on my desktop to Apps (not AppOps) and scroll right twice (usually) to see memory load. I noticed (although not unexpected) the Media service scanning all my content since I upgraded. I'm *wondering* if perhaps these huge freezes you're encountering might be some Media scanner triggered? A little background on this is this particular service was crushing my wife's Xperia T since has a 64GB card just loaded with videos and pictures and under unknown (to me) circumstances, randomly, Media scanner would fire and walk her entire SDcard making the phone unresponsive. Finally tracked it down to the Media process and it's scanning it does every so X often. I noticed it on my upgrade because it's doing it's thing and noticed the phone was frozen in some spots, taking seconds to respond.

EDIT: 03-08 running like a champ for me. Noticed a bunch of new stuff settings-wise too that I didn't notice before. Time to play.
[RAZR HD Android Development] Zeljko1234:
That's why I'm contributing as much as I can. I described how to replicate problem, which, combination, etc. If I cannot spend more time, someone else can. I'll try to enable logging and collect more info but I already posted logcat and dmesg. Any developers looked into it? Going to look in logs I collect? As I wrote I tried many roms, combination, wipes... nothing helped. Looks like that is general problem with LP or our phone (libs, kernel...)
[RAZR HD Android Development] ermito:
Am I doing it right? http://pastebin.com/v7VY4t5t

I can't reproduce the calc bug because I deleted que stock calculator app while i'm using another one, but the same behavior occurs in Play Store as well when I open it, left behind and open it again from the app switcher or from homescreen/appdrawer, then the system freezes. Usually the screen becomes unresponsive, then turns into black and then it will make like a soft reboot by itself.

Edit. BTW, I think it's symptomatic that the calc bug only happens with the stock calculator...
[RAZR HD Android Development] Zeljko1234:
Thank you [MENTION=4498197]ermito[/MENTION] for log. We just call it "calc" bug as it was noticed like that for the first time. Actually I noticed exact the same bug long time ago with business calendar 2 but I thought that is app related bug because business calendar (previous one) works fine. Maybe some, especially new apps, are using new APIs or something like that specific to LP.

Yes, real calc works fine and many other apps but stock calc, google play, etc sometimes just freeze whole system.

[MENTION=4418762]CWGSM3VO[/MENTION] I was thinking about media scanner too but calc bug is happening after few days of uptime. Media scanner finishes few minutes after boot. I already wiped my internal memory, next and probably the last step I can do is to put clean sd card in, clean flash rom and see. Maybe something left on the card causing problems but how could be related to the stock calculator?!
[RAZR HD Android Development] joel_sinbad:
I tried to download your XT926 build but it says that the webpage is unavailable...
[RAZR HD Android Development] MarcusWhite:
In case anyone wanted to see the last go on jenkins :

http://jenkins.cyanogenmod.org/job/android/102974/console
[RAZR HD Android Development] KC69:
I can't find 03/08 C. All I see on Jenkins is cm11 builds. Cm downloads still say 03/04.
[RAZR HD Android Development] palmbeach05:
Thats b/c there is no build. 925 and 926 are still not built yet after that long break
[RAZR HD Android Development] s_u_n:
Blisspop

After searching around and spending most of my Saturday reading about options to get Lollipop on my dad's XT926, I flashed Blisspop.

It took quite a bit of effort to get the new ROM flashed, but I think it was worth it.

5.0.2 works very well - and I was not able to spot any issues in my limited testing.
[RAZR HD Android Development] CWGSM3VO:
Looks like it didn't build again.
[RAZR HD Android Development] Zeljko1234:
Looks like that I found workaround for famous "calc" bug. At least I cannot reproduce it again whatever I do. Keep fingers crossed :)
[RAZR HD Android Development] CWGSM3VO:
My attempt is a XT925 build I'm currently uploading and will publish to the thread which includes two fixes:

- the mythical memory leak patch for Google issue #79729 (one method, there are 2; one is Bill Chen's, one is Google's. I'll try both going forward. This build is BChen's version) *edit* turns out the Google fix is already present in CM12, so it'll be just BChen's additional changes.

- kernel memory leak patch for garbage collection keys

Credits for these fixes were given much earlier in this thread when I was publishing builds regularly.

I'd like someone (@ermito perhaps?) with the "calc" bug to try this build:

XT925: http://d-h.st/TSt3

I am currently running it without issue. This build is current up to "xt925: Set proper partition sizes" which would have been 03-08 Nightly had it built.

*edit* looks like these patches help, Quadrant now runs again without constantly spinning up garbage collection and going nowhere (tested same build with and without these patches)

*edit* that really annoying lagginess is gone now too.
[RAZR HD Android Development] Zeljko1234:
Actually we have two bugs, one is calc bug and another is that background apps get killed. Looks like that patches above are addressing second bug. If my testing went well we're going to have both bugs fixed! :)
[RAZR HD Android Development] ermito:
Thank you so much, I definitely gonna test it. Already downloading.
[RAZR HD Android Development] Zeljko1234:
[MENTION=4418762]CWGSM3VO[/MENTION] could you build for xt926 too?
[RAZR HD Android Development] CWGSM3VO:
Yeah, just didn't have it queued up yet. I'll post an identical XT926 build today too.

*edit* building it now...
[RAZR HD Android Development] madmonkey57:
Sounds nice. Looking forward to it. Not clear though whether you found a fix or a workaround ;)
[RAZR HD Android Development] Zeljko1234:
Ok, just tested more and calc is starting quickly after some background apps get killed. For anyone with that problem, try to change CPU governor to Interactive with some 3pp apps, test an please report.

I found that accidentally, playing with battery mode. Performance mode will also solve calc bug but will keep CPU on max freq every time when is active (including background apps). If is not active CPU will go to sleep.
[RAZR HD Android Development] CWGSM3VO:
Governor flips between ondemand (boot time) and interactive (UI up) so Interactive should already be default. It is on my builds.
[RAZR HD Android Development] Zeljko1234:
Well that could be the reason why you don't have calc bug. Maybe, somehow, some devices will change that, some not. Maybe will work after I restore default value. Maybe will be broken after reboot again. Really don't know. For now, works fine for me.

---------- Post added at 06:44 AM ---------- Previous post was at 06:39 AM ----------

Just a moment, can you see governor flips under setting, battery mode or using 3pp apps?
[RAZR HD Android Development] CWGSM3VO:
If you look in init.qcom.rc you'll see it use ondemand during boot (performance in some cases) and then settle back to Interactive as per CM powerHAL. I have a commit that cleans up the init process to make the transition smoother (instead of flapping). You can also see which governor is in use by looking at /sys/devices/system/cpu/cpufreq directory or go into /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

However, having said all that, mine appears to be currently set to ondemand so it's changed again since I last looked at it. However, again, that being said, mine's currently set to ondemand (and has been I'm guessing for a while as it's been a while since I reviewed all this) and I don't have the issue. But this is an easy thing to fix to force interactive.

*edit* I looked at my patch for this, seems I too forced ondemand from interactive in cleaning up init.qcom.rc but I also fixed up the performance profile as well so it acts against the display driver as well. Remembering back, I do recall ondemand being chosen as "default" and I tested our display driver which only understands ondemand,performance and conservative. I don't believe the governor is at fault here.
[RAZR HD Android Development] ermito:
I think overall this build seems to be faster and I was unable to reproduce the calc bug so far. Btw, i'm using the performance option in battery settings.
[RAZR HD Android Development] CWGSM3VO:
Please use whatever battery setting you'd normally use (mine is Balanced). Changing governor, in my opinion, invalidates results from the build.

---------- Post added at 09:20 AM ---------- Previous post was at 09:13 AM ----------

As soon as this XT926 build is done and published, I'm going to re-implement my CM PowerHAL fixups (init.qcom.rc) and rebuild again (after syncing to bring it up to date) with both mem-leak patches as well and re-publish.
[RAZR HD Android Development] Zeljko1234:
He can try both, interactive really fixed calc bug for me.
[RAZR HD Android Development] CWGSM3VO:
My line of thinking on this is the different governors allow the CPU to overcome any GC/whatever activities that ondemand might bog down under. Try the XT926 build that I'm going to post and leave it on defaults (ondemand/balanced) and see if you can repro again?
[RAZR HD Android Development] Zeljko1234:
I agree with that or CPU just stay on the lower frequency not sufficient to handle what is needed to be. Stock calc is very demanding app :D just kidding, probably something else like memory management is demanding more CPU power than provided with the lowest freq.
[RAZR HD Android Development] CWGSM3VO:
I'm thinking about the differences in scaling that ondemand has .vs. interactive or performance. May not be scaling fast enough whereas the other two can.

---------- Post added at 09:56 AM ---------- Previous post was at 09:32 AM ----------

So after some thought, I decided that the source builds I've posted for xt925 and xt926 is the one I'll continue to work with so there's a common baseline for me rather than adding new commits. After the xt926 build is done, I'll add some more changes and start rebuilding again.
[RAZR HD Android Development] Zeljko1234:
With justarchi optimization? :p
[RAZR HD Android Development] CWGSM3VO:
No, the goal is to try and ferret out the issue not unnecessarily compound it with additional variables ;)
[RAZR HD Android Development] CWGSM3VO:
XT926: http://d-h.st/lZXM

This is identical to the XT925 build I posted this morning, only built for XT926 ;)

---------- Post added at 12:43 PM ---------- Previous post was at 12:07 PM ----------

So crawling through the source, I noticed that it flaps the governor quite a bit. I've since brought all this into alignment with the defaults used for CM PowerHAL. This goes back to earlier work I did in earlier builds.

before:

on charger-interactive

on boot-performance then flapped between ondemand/interactive

after:

on charger-ondemand

on boot-performance then ondemand

Governor assumptions made (used by battery mode selector):

powersave=conservative

balanced=ondemand

performance=performance

The end-result is to stop switching between 3 governors which may (or may not) produce undesirable user experience. Also added to this is all three battery modes will now also configure the GPU using these values as well. In other words, when in performance mode, the GPU is also ramped up to performance mode; when back to non-performance operation, it scales the GPU back to ondemand, etc.

The GPU doesn't understand anything beyond the 3 governors mentioned above. This also produces the least amount of impact against the source/other devices if I were to submit it to gerrit.

Next builds I publish will include this change.
[RAZR HD Android Development] Zeljko1234:
Downloading but I'll left my phone with previous build to get longer uptime and check if different governor really helps.

---------- Post added at 12:00 PM ---------- Previous post was at 11:47 AM ----------

Forgot, could someone else test latest C's build?
[RAZR HD Android Development] madmonkey57:
Flashed it a few minutes ago. I'll report here.
[RAZR HD Android Development] Zeljko1234:
Could you try to reproduce calc bug? I described few times how (here map, poweramp, gmail, browsing in the same time...remove calc from recent...) Probably you have your way :)
[RAZR HD Android Development] madmonkey57:
Sure. Since I don't have a consistent way of triggering the bug, I'll try calc in the next few days and let you know.
[RAZR HD Android Development] Zeljko1234:
I've tried everything what usually reproduce calc bug. Even business calc works fine every time! Previously after few times just started to freeze the system.
[RAZR HD Android Development] CWGSM3VO:
Now switch back to ondemand and see if it repros :)
[RAZR HD Android Development] Zeljko1234:
You said that you have never got calc bug, so it's pointless.

Another idea, maybe CM governor settings somehow get stuck, not increasing cpu clock when needed and after "shake" that settings everything (even stock governor) will work fine. Anyway, phone with interactive seems more responsive.
[RAZR HD Android Development] CWGSM3VO:
Fine, no Brudet for you then.
[RAZR HD Android Development] Zeljko1234:
Well, will be funny if you can reproduce bug after all :D So, yes try it :)
[RAZR HD Android Development] Zeljko1234:
Could it be if changing CPU governor change GPU as well? Or just recover quicker?