yashsingh1/xdaforums huggingface dataset:
[Nexus 10 Q&A, Help & Troubleshooting] espionage724:
I don't watch videos from Chrome, and it wasn't open at the time either (I may of opened it earlier before I noticed the memory leak, but I know I swiped it away from Recents when I was done with it). I didn't use the YouTube app either.
[Nexus 10 Q&A, Help & Troubleshooting] espionage724:
Had it occur again, although it wasn't "as" severe since I was able to load a game and take screenshots this time; performance was definitely slower though...

Running Apps:

Cached Apps:
[Nexus 10 Q&A, Help & Troubleshooting] rxnelson:
Maybe run PS in terminal the next time and grab a screenshot. Then after reboot or return to normal do it again and compare usage?
[Nexus 10 Q&A, Help & Troubleshooting] mrruin:
I have my tablet reboot every night at 4am with Tasker-Secure Settings plugin. Maybe not a fix for the issue at hand, but enough to make this problem go away permanently and reliably.
[Nexus 10 Q&A, Help & Troubleshooting] lvnatic:
Easy fix: don't use trash roms like aokp or cm

I personally use team eos and ktmanta and the system runs super smooth with no memory leaks what so ever. After 32 hours if I clean all apps I got 600 or 700 mb free.
[Nexus 10 Q&A, Help & Troubleshooting] dibblebill:
Wow. Talk about trash talk.

I've never ahd this issue on AOKP or CM, have on PA... I did enjoy Eos when I used it but found RootBox had the features I needed. Then again... I reboot every few nights typically. My mom leaves her Nexus 7 on for weeks on end with no issue, but its not a 10.
[Nexus 10 Q&A, Help & Troubleshooting] espionage724:
I don't consider rasbeanjelly trash...
[Nexus 10 Q&A, Help & Troubleshooting] joakim_one:
I think I've run into this bug once, after a couple days of usage, likely mostly inactive without charging. I noticed that everything I tried to do was really sluggish and once I saw all the apps restarting in the built-in task manager, I figured something was seriously borked, so I rebooted the tablet and it was back to normal. Given all the other stability problems others have reported with this tablet, I'm glad just a very occasional reboot like this is the worst of my problems. :victory: I'm running stock Android 4.2.2, with only a handful of apps installed, probably more default apps uninstalled than apps added. ;)
[Nexus 10 Q&A, Help & Troubleshooting] SacGuru:
I know you are just trying to help, but please don't pass judgements without researching on the topic. Surfaceflinger memory leak issue is a genuine bug which occurs in all 4.2+ roms. Numerous people have reported this bug to google, and there are many threads on XDA itself which discuss this, including on threads of ROMs such as PA, or Mr.Robinson's, and kernels such as trinity, KTManta etc. The reason why you don't witness it often is that you don't use your tablet as much as some people in this thread do. Surfaceflinger is present on every 4.2.2 ROM, and unless google has specifically created a unique defect free rom for you, you will be able to reproduce this bug. Go through http://productforums.google.com/forum/?nomobile=true#!topic/mobile/VFYnt7uN9d0[26-50-false] if you need more information on this issue.

Sent from my GT-N7100 or the Nexus 10, heaven knows.

Those who help noobs go to heaven. True story.
[Nexus 10 Q&A, Help & Troubleshooting] lvnatic:
Oh trust me I've noticed this problem the day i got the tablet. I tried most roms out there and team eos seems to be the most stable. Yesterday i got 53 hours on and after i cleared all processes i had 657 mb free. On most other roms i barely get 24 hours of time on without rebooting because of low memory. I watch a lot of movies on mx player and play real rscing 3, by the end of the day i always run out of battery.
[Nexus 10 Q&A, Help & Troubleshooting] SacGuru:
Okay, I guess trying team eos is worth a try. I will flash it today and check it. Thanks for the feedback.

Btw I personally have never had never had reboots/sluggish performance while on mxplayer or RR3, when on them for a couple of hours, but others have had. Some others games though, such as Vector and Ravensword, always become sluggish for me, and youtube app plus youtube using flash on browsers too.

I would love for google to fix this with the next update, though as they havent yet have, I am not that hopeful.

Sent from my GT-N7100 or the Nexus 10, heaven knows.

Those who help noobs go to heaven. True story.
[Nexus 10 Q&A, Help & Troubleshooting] :
I'm very interested in working around this issue -and as a side note: I'm not beliving in a quick response and fix from google, too - so I lurked around in teameos gerrit and git (the latter seems to be empty - no files in the webgit). But I wasn't able to find commits related to this nasty bug.

So if someone of teameos is reading here, could you please point me to the gerrit changes, that work around the surfsceflinger memory leak? As eos is aosp- and partly cm-based, it could be possible to use this workaround in other roms. Sadly I'm sure this would allow a quicker fix than wating for google.

Yesteday I received the follpwing via eemail - strangly I can't see the comment in the linked issue - it stops on comment #8, there for I quote her an email:

Nvertigo
[Nexus 10 Q&A, Help & Troubleshooting] fifthelement:
OK. I have installed team eos ROM now. I will let you know if it resolves the memory leak issue as I had this problem on buttered aokp everyday.
[Nexus 10 Q&A, Help & Troubleshooting] espionage724:
So... if a kernel developer wanted to, he could grab the updated GPU driver and the surfaceflinger issue in-particular can be fixed?
[Nexus 10 Q&A, Help & Troubleshooting] EniGmA1987:
Supposedly the GPU driver libraries or something or other is implemented ROM side. Sentinel ROM implemented them a week or two ago and I asked him about it, was told it was ROM side and I could use a custom kernel still.

Here it is:

http://xdaforums.com/showpost.php?p=41712971&postcount=543
[Nexus 10 Q&A, Help & Troubleshooting] SacGuru:
I flashed team eos to check whether it solves the issue this morning. I had one random reboot within the first half hour(which was while changing a setting, so I dont think it was related to surfaceflinger), but since then the rom has been stable. I did shut it down at around midday as is my habit while charging, but before that I had played some games for a couple of hours which were giving me random reboots on my earlier rom when played for the same time period, and with eos I have not yet got even a single reboot or period of sluggish performance while playing these games. Anyway, I dont think I would be able to confidently say that this rom is a solution till I have used it for atleast 3-4 days without any problems. Still, with roms performance today, things look hopeful.

Sent from my GT-N7100 or the Nexus 10, heaven knows.

Those who help noobs go to heaven. True story.
[Nexus 10 Q&A, Help & Troubleshooting] :
There are two aproaches. The aproach from the rom-side i would call a workaround - the aprosch from the driver-side will probanly solve the issue.

But I don't think it's that easy, because the driver I found on malidevelopers comes in an archive, that is designed to build outside the kernel-source-tree as a module. And I could imagine, that not only the driver but also the GL and GLS binary blobs need to be recompiled - and those are not open source.

So I belive the rom-side workaround should be possible on th short track - for new kernel drivers we need to wait for 4.3 or a bugfix-release from google.

Nvertigo
[Nexus 10 Q&A, Help & Troubleshooting] fifthelement:
I have installed the eos Rom but it is unstable and gives me random freezes and reboots so I can't get to the point where memory is filled. But from terminal I can see the size of sufaceflinger grows by the time. So I don't think any thing is different with this Rom.
[Nexus 10 Q&A, Help & Troubleshooting] :
Yesterday I realised that only the master-branches of the git.temeos.org are empty. so I fetched the jellybean-4.2 branch as of yesterday 11h UTC and build an eos-rom (thanx to team eos for distributing to the community).

This rom is now running on my n10. Its stable as my cm- and aokp-builds. I have no random reboots or freezes. But it suffers from the same memory leak issue that all three roms suffer from:

/ # uptime
09:24:00 up 11:41, load average: 1.84, 1.41, 1.25
/ # /system/bin/ps su
USER PID PPID VSIZE RSS WCHAN PC NAME
system 173 1 226412 208216 ffffffff 40137848 S /system/bin/surfaceflinger

So I think the occurance of this depends on the use-case: I watch an ts-stream with mpeg2 in it with mxplayer, and an mp4 with bsplayer via smb opend via esexplorer. Both for about an hour. Then I leave the n10 for the night and opened aosp-browser, gmail and email. And I get the above.

As enigma mentioned sentinel I tried to find the sentinel source to no avail (though it has gpl in the subject and source shoild be available). Therefor I get the sentinel zip and investigated. The proprietary binarie file libGLES_mali.so differ from the one in stock 4.2.2, so I will try to build an aokp with the LIBGLES_mali.so from sentinel. I will report.

It would be helpful if someone has a pointer to the sentinel source.

Just for the record: from a resident sice of surfaceflinger of 230000 my n10 starts to stutter a very little bit on HD videos. From 270000 on it gets slower and warmer in normal use and the battery drains faster. (At this point I reboot) 400000+ means unusable and its a matter of time when it softreboots. 500000+ its a matter of time to freeze or hard reboot.

Nvertigo
[Nexus 10 Q&A, Help & Troubleshooting] joakim_one:
If you can reproduce this consistently on 4.2.2, can you lay out a simple way to reproduce this, especially for those of us on the stock Android 4.2.2 ROM compiled by google? Is it reported at the public Android bug tracker, https://code.google.com/p/android/issues/list? I can try to reproduce it, if you do either of the above.
[Nexus 10 Q&A, Help & Troubleshooting] :
The issue is described:

http://code.google.com/p/android/is...mmary Stars Opened&rlz=2Y1KTZR_deDE0536DE0537

and

http://code.google.com/p/android/is...mmary Stars Opened&rlz=2Y1KTZR_deDE0536DE0537

The first one has a trigger for the issue - but here I've just to watch a few recordings from my vdr and the issue shows up.

BTW: the aokp-rom with libGLES_mali.so from sentinel is running at this very moment on my n10. Will keep you informed.

Nvertigo
[Nexus 10 Q&A, Help & Troubleshooting] alan sh:
Interestingly, my N10 rebooted last night - probably due to Surfaceflinger and me watching movies - (I saw the boot screen doing its stuff. But when I run "uptime" from a terminal window, it shows 13 days uptime.

Anyone know why?

Alan
[Nexus 10 Q&A, Help & Troubleshooting] :
I refered to this as "soft-reboot": you see the bootanimation, but not the "google" before. Your current application view is empty, but uptime is not resetet. Surfaceflinger (as the other system services) is not restartet and is still growing... initiate a reboot or the next soft reboot is only a matter of time.

Nvertigo
[Nexus 10 Q&A, Help & Troubleshooting] :
This doesn't solve the memory leak either. RSS is 250000+ still growing.

Nvertigo
[Nexus 10 Q&A, Help & Troubleshooting] fifthelement:
Why is it so hard for devs to resolve sufaceflinger memory leak? Sufaceflinger is an open source program. That's strange.

---------- Post added at 08:34 PM ---------- Previous post was at 08:17 PM ----------

I did some research and seems the memory leak is in the mali graphic driver which is a binary and it's source code is not available to devs. That's why no dev can fix it except the people who have access to its source which is ARM company.
[Nexus 10 Q&A, Help & Troubleshooting] GSLEON3:
Actually, I am pretty sure that Samsung compiled that. Arm is the same architecture, bit this is Sammy's chip/gpu & the binary & drivers are written by them. However, I am not certain that the issue is in the GPU. The Nexus 7 allegedly also suffers randomly from the issue, although I never had the problem, but after the 4.2.2 update I noticed a few similar bug reports & noticed the missus' N7 would randomly reboot.
[Nexus 10 Q&A, Help & Troubleshooting] joakim_one:
Took a look at both threads just now, seems a bit vague about how exactly to reproduce the problem and measure memory usage. If you can give more details on how to reproduce the problem and check memory usage, particularly for those of us who haven't rooted, perhaps we can help report it. I use MPlayer regularly and think I've run across this problem once before, but I'm not sure how to consistently reproduce it and make sure it's surfaceflinger that's at fault.
[Nexus 10 Q&A, Help & Troubleshooting] rxnelson:
Use android terminal. Type "PS SU" to view usage. Watch a podcast (I use the verge mobile show episode 41 for testing consistency) through chrome NOT the YouTube app. Check through android terminal again. Memory usage grows roughly 100 megs per hour this way.
[Nexus 10 Q&A, Help & Troubleshooting] joakim_one:
Thanks for the info. I downloaded the Android Terminal Emulator app by Jack Palevich and found that surfaceflinger had grown to 400 MBs of RSS after 7 days of uptime. I think this is why Chrome was constantly vacating tabs on me, as I reported at http://crbug.com/171316. I held down the power button to hard reboot the device and surfaceflinger was back down to 23 MBs of RSS. More importantly, Chrome was working much better, not constantly reloading tabs as it was doing before the reboot.

Thanks for tracking this down. I will keep tabs on it, my surfaceflinger is already up to 70 MBs after 40 minutes of uptime. Let's see if we can get the party responsible, whether Google, Samsung, or ARM, to fix this for the 4.3 release.
[Nexus 10 Q&A, Help & Troubleshooting] vasili0s:
I use the tablet extensively and noticed the issue relatively early. the process as mentioned builds rapidly when viewing videos or running any intensive app. I generally get 3 days of uptime before my background apps start getting cleared and then comes the soft reboot which then necessitates a reboot to clear the pid's memory.

tried resetting the unit, not installing any apps to no avail. the only resolution at this point is to reboot the device every two days.........

ugh, yea....:good:
[Nexus 10 Q&A, Help & Troubleshooting] fifthelement:
If your tablet is idle, there would be no memory leak definitely.
[Nexus 10 Q&A, Help & Troubleshooting] bigmatty:
Is a good base line. Now can same unit run rxnelsons test?
[Nexus 10 Q&A, Help & Troubleshooting] fifthelement:
All of nexus 10 roms have this memory leak. There is no magic to resolve this issue. We can only hope google resolves this issue in the upcoming android 4.3.

The leak is happening in one of the closed source driver binaries so no dev can fix it except Samsung or google.
[Nexus 10 Q&A, Help & Troubleshooting] vasili0s:
exactly. all we can do at this point is patiently wait. that, and rebooting the tablet........
[Nexus 10 Q&A, Help & Troubleshooting] fifthelement:
I am doing the same , monitoring surfaceflinger process size and when it goes above 300-400MB , I reboot the tablet.
[Nexus 10 Q&A, Help & Troubleshooting] bigmatty:
I never said otherwise. This thread is specific to the question 'is it avoidable' and some people are seeing how they can test on their own.

There are plenty of other threads filled with 'just debate', your comment would be more appropriate there.
[Nexus 10 Q&A, Help & Troubleshooting] lvnatic:
How exactly do you check the surfaceflinger? I typed ps su and theres a bunch of values, which one is it?
[Nexus 10 Q&A, Help & Troubleshooting] :
The resident part of the memory of the process: RSS

Nvertigo
[Nexus 10 Q&A, Help & Troubleshooting] joakim_one:
Since that last reboot, surfaceflinger was up to 350 MBs of RSS after 8 days of uptime, so it appears this issue is easily reproducible. I just rebooted again and surfaceflinger RSS is back down to 20 MB. It leaked less this time, as I was using my Nexus 10 less last week. The amount of memory leaked seems tied to how much video I watch, whether HTML5 video in Chrome, as rxnelson says, or in MX Player. If you don't watch much video, maybe you won't see as much leakage.

There doesn't seem to be a response from any Android devs about this bug. Only progress seems to be this recent comment, which claims that a Mali dev puts the blame on some proprietary code from Google. I wonder if it might be Samsung that added the proprietary code, though who knows who compiled what source for this device.
[Nexus 10 Q&A, Help & Troubleshooting] fifthelement:
I dont know if anyone is monitoring this thread or not , but I think I found something. I was experiencing huge memory leaks on both buttered aokp and team eos ROMs. and by huge I mean after 2 or 3 hours of watching youtube (inside the app), my tablet memory was getting completely filled and apps starting to crash. yesterday I switched to SaberMod ROM and seems it has mitigated the situation greatly. after watching 40 mins of video the size of surfaceflinger has just grown to 32MB. the results are not final yet , I have to use the tablet for more few days before I can get a final conclusion , but if you would like to give it a shot here is the link of the ROM : http://xdaforums.com/showthread.php?t=2292927
[Nexus 10 Q&A, Help & Troubleshooting] lvnatic:
Placebo
[Nexus 10 Q&A, Help & Troubleshooting] fifthelement:
I have not tested it enough to conclude , but so far I am very happy , did another one hour 3d gaming and surfaceflinger is at 60MB now. on team eos after watching 2 to 3 hours of youtube the size of surfaceflinger would grow to 500-700MB. you can try it yourself and post your testimonial. it is not that hard to switch roms using titanium backup.
[Nexus 10 Q&A, Help & Troubleshooting] lvnatic:
Im on sabermod myself, 12 july version. Teameos was my most stable rom until the dev began adding all kinds of new features and starting to turn it into bloatware, but its still a solid rom. I dont see any difference in surface flinger, just that its there. In fact, team eos always performed better on this problem compared to every single rom i tried.
[Nexus 10 Q&A, Help & Troubleshooting] fifthelement:
It really depends how you use your tablet. I mostly use my tablet for watching videos and I could not watch more than 2-3 hours of video before rebooting the tablet. by using sabermod I have not reached the limit yet after watching like 4-5 hours of video and I am not even close to a reboot. although I dont like sabermod because it doesnt have tablet ui , but it is very solid and snappy.
[Nexus 10 Q&A, Help & Troubleshooting] fifthelement:
Android 4.3 is released and my initial tests show memory leak issue is resolved. you can get factory images from following link :

https://developers.google.com/android/nexus/images#mantarayjwr66v
[Nexus 10 Q&A, Help & Troubleshooting] dansyco:
That's good to here. I hope liquid0624 has it soon. Love his rom.
[Sony Xperia S, Acro S, Ion] barryhamsy:
Hi guys,

I know this is kinda weird to ask, but i want to make sure that im ready to flash rather than give it a go and bricked my phone for the 2nd time.

Please let me know if im ready to flash this ROM. http://xdaforums.com/showthread.php?t=2137561

1. Currently i have install this Recovery- http://xdaforums.com/showthread.php?t=1939875

2. I have this kernel - http://xdaforums.com/showthread.php?t=1761778

3. Unlocked bootloader

Do i need to follow below instruction, cause im using Sony Xperia SL.

ICS 4.0.4, with 6.1.A.2.55

Any ROM for S will Work for SL BUT you lose 1.7GH Speed
ROMs for S Can be installed for SL Via Two Ways
Way 1. In ROM zip file Goto HERE: META INF / com / google / android (use 7-zip which can edit without extraction)
Now edit updater-script by deleting first 2 lines (if it has any)
Anything to do with device name and get.prop.*
then close zip file and flash

Way 2. Root your phone
install app which can edit build.prop
change All LT26ii to LT26i
Change Xperia SL to nozomi
Save, Reboot to recovery and follow ROM flashing instruction......
[Sony Xperia S, Acro S, Ion] Vaith:
http://xdaforums.com/showthread.php?p=39980497&highlight=sl#post39980497

Next time use search button.
[Sony Xperia S, Acro S, Ion] barryhamsy:
I did use bro. but the thing is, i dont really get it. if according to that post, i dont have to modify anything, i give it a try then, thanks anyway, gonna make some backup first.

:D
[Sony Xperia S, Acro S, Ion] Vaith:
Xperia SL is same as Xperia S but SL have overclocked processor to 1.7. That's the different between this phones.
[Sony Xperia S, Acro S, Ion] Toledo_JAB:
I have read that using XS Rom on XSL makes the XSL a 1.5gig speed like the XS.

This is just what I remember, I could be wrong. Google it, if your worried

From my Xperia LT28at ION :D
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] fluttershy:
Hi, at first I want to say, that I wanted to post into the original thread, but I can't since I don't have permission to write into a developer thread. I just used Triangle away on my mobile phone and it resseted the counter to exact 0. Everything works fine and I'm good, but now, I want to also flash the original rom again, what would increase the counter to 1. Can I use triangle away also on an original rom? or only at custom rom?

and what is about the root? do i have to unroot my mobile phone if i want to send it back to samsung? or would it be enough if i flash an original rom and reset the flash counter to 0?
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] treacherous_hawk:
If your counter is already 0, then you can just flash stock rom using pc odin and doing so will not raise the counter.. Also when you flash the stock rom it removes any kind of modification like custom kernel, root etc. Head over to this thread if you want to download and flash stock rom of your country with tutorial for flashing stock rom too:

http://xdaforums.com/showthread.php?t=1424997
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] fluttershy:
Hi, thanks for the answer, but I'm following every step and Odin tells me the following:

<OSM> Enter CS for MD5..

<OSM> Check MD5.. Do not unplug the cable..

<OSM> Please wait..

<OSM> KIES_HOME_N7000XXLT4_N7000OXALT4_1103517_REV02_user_low_ship.tar.md5 is valid.

<OSM> Checking MD5 finished Sucessfully..

<OSM> Leave CS..

<ID:0/004> Odin v.3 engine (ID:4)..

<ID:0/004> File analysis..

<ID:0/004> SetupConnection..

<ID:0/004> Complete(Write) operation failed.

<OSM> All threads completed. (succeed 0 / failed 1)
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] treacherous_hawk:
try to put the phone into download mode again (power+volume down+home button) and connect to computer, make sure kies service is not running in the background (end it with task manager along with antivirus) and if it is desktop connect the usb cable to the back usb port on the computer or in laptop you can connect it to back usb port if there is such usb port. Follow the instructions again from Dr. Ketan's thread coz the log you mentioned does not seem complete. also make sure you have the correct firmware downloaded and that too complete only extract the main zip file to get tar.md5 file.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] fluttershy:
Hi, thanks again, but this didn't work also, so I just tried to download the latest Odin Version (3.04) and with this version it worked without any other problems. But there must a reason that the xda-developers recommend Odin v1.85 instead of version 3. So if you found this thread with Google don't rely on me here.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] treacherous_hawk:
i am still using Odin3 V1.85 and it works always. Haven't used any other version but sure should be the same with others too.
[Galaxy Note GT-N7000 Q&A, Help & Troubleshooting] nokiamodeln91:
Check if a kies process is running in the background. Like device manager or connection manager.
[MDA II, XDA II, 2060 General] Guest:
What's the maximum transfer rate of the MDAII's SD interface?
[MDA II, XDA II, 2060 General] unapproachable2kx:
don't know well..but it is slower than many SD-Cards..

try to check with Benchmark onto PocketMechanic.