yashsingh1/xdaforums huggingface dataset:
[Defy Android Development] domokos:
I just had a call that lasted over an hour.

The phone got laggy, unresponsive. The Settings/Apps UI showed, that there was only 13MB of free memory. Then somebody called and the ringtone bug happened (phone only vibrated no sound at all), I was unable to answer the call the UI was so slow. So I looked into it.

Took me over 15 minutes to start up sshd on the phone and then connect to it.

top -n 1 >memmap

Then imported memmap in excel and sorted by RSS descending.

Top memory consumer was:

PID	PR	CPU%	S	#THR	VSS	RSS	PCY	UID	Name

1200	0	0%	S	9	210812K	115144K	fg	media	/system/bin/mediaserver

other processes just seemed fine.

So I did:

kill 1200

top -n 1 |grep media

12692 0 0% S 9 21296K 6404K fg media /system/bin/mediaserver

RSS went down quite significaltly and the phone is as happy as ever, no lags at all and over 130MB free RAM.

EDIT My uptime:

uptime

up time: 9 days 04:52:19, idle time: 1 day 02:10:53, sleep time: 8 days 00:52:26
[Defy Android Development] ofmb:
nice find ! so it seems there's a huge memory leak on mediaserver..

i'll see if it happens on my phone also later when uptime will be larger .
[Defy Android Development] ccav2000:
I wonder though if mediaserver is really at fault or what we observe is merely the side effect of some other problem, perhaps buffers that are allocated but never reclaimed after they are emptied. Since the kernel seems to be part of the problem, it's quite complicated.
[Defy Android Development] YetAnotherForumUser:
Strange. Here are the top 5 memory consumers (measured by RSS) on my phone:

$ ps|sort -k5 -rn|head -5
u0_a5 7243 1199 423888 201296 ffffffff 00000000 S com.android.browser
system 1482 1199 264696 45104 ffffffff 00000000 S system_server
u0_a68 1822 1199 191000 35492 ffffffff 00000000 S com.teslacoilsw.launcher
u0_a60 7565 1199 210344 32600 ffffffff 00000000 S com.fsck.k9
system 1198 1 51952 30948 ffffffff 00000000 S /system/bin/surfaceflinger

The uptime is 21.5 hours. RSS is shown in the 5th column (hence the '[FONT="Monospace, Courier New"]sort -k5 -rn[/FONT]' which stands for 'sort on Kolumn (sic) 5, Reverse, Numerical - no need for Excel to do some basic sorting/searching on Unix/Linux). Mediaserver is not to be seen, it lives somewhere way down in the list:

$ ps|grep mediaserver
media 1202 1 27580 2412 ffffffff 00000000 S /system/bin/mediaserver

With an RSS of ca. 2.5 MiB it seems to be innocent so far. I'll check it again when the bug comes to call...

If this happens again it would be interesting to see the contents of [FONT="Monospace,Courier New"]/proc/meminfo, /proc/slabinfo, /proc/vmallocinfo and /proc/vmstat[/FONT].
[Defy Android Development] domokos:
The above is indeed the definition of the term "memory leak".
[Defy Android Development] slph:
Here test result.

Small definition for soviet communism letters:

Defy+, red lense, BL7 (base 231 china firmware with root).

31.12.2012 Quarx CM10 + 30.12.2012 JellyX (cfs).

180hrs uptime, battery life about 3.5-4.5 days with tail.

115-125 free RAM, wifi used a bit, mobile internet disabled.

CPU governor Boosted: 300-16, 600-30, 900-42, 1200-56.

Before flashing JellyX wipe cache + dalvik cache.

Last wipe data when moving from CM9, long ago.

Gapps probably gapps-jb-20120726-signed.

No bug with ringtone. With same setup (CM10 31.12.12), but default kernel - no ringtone after 36 hours uptime.

Since JellyX fully synced with Quarx kernel, I assume what solution in some commit of JellyX, probably, which affects /proc/interrupts.

And two cents about mediaserver, I hope work by wskelly will be useful for someone. (one, two)

P.S. forgot to say, /system/addon.d/80-battd.sh not removed in 10.01.13 build, so

it will keep your default /bin/battd

(from sbf you flashed before) instead of new one in CM10 archive. If you want it - replace manually. This battd universal for different battery with not standart mAh.
[Defy Android Development] domokos:
OK, I'll take a look at those next time.
[Defy Android Development] royale1223:
Can somebody please send me a link to Phone.apk from 22.12?
[Defy Android Development] slph:
In attachment.
[Defy Android Development] brotbuexe:
Whats the correct gapps version for CM10-20130110-NIGHTLY-mb526.zip?

I tried gapps-jb-20121212-signed.zip and get a lot of issues and have only 300kb on /system free.

I tried gapps-jb-20120726-minimal.zip and aosp keyboard crashes all the time:

W/SubtypeLocale( 3027): KeyboardLayoutSet not found, use QWERTY: locale=hu_ZZ extraValue=AsciiCapable,SupportTouchPositionCorrection
W/InputAttributes( 3027): No editor info for this field. Bug?
E/dalvikvm( 3027): ERROR: couldn't find native method
E/dalvikvm( 3027): Requested: Lcom/android/inputmethod/latin/BinaryDictionary;.openNative:(Ljava/lang/String;JJIIIII)J
E/dalvikvm( 3027): Candidate: Lcom/android/inputmethod/latin/BinaryDictionary;.openNative:(Ljava/lang/String;JJIIII)J
W/dalvikvm( 3027): JNI_OnLoad returned bad version (-1) in /system/lib/libjni_latinime.so 0x40da5760
E/JniUtils( 3027): Could not load native library jni_latinime
W/dalvikvm( 3027): No implementation found for native Lcom/android/inputmethod/latin/BinaryDictionary;.openNative:(Ljava/lang/String;JJIIII)J
W/dalvikvm( 3027): threadid=13: thread exiting with uncaught exception (group=0x40a9f300)
W/dalvikvm( 3027): No implementation found for native Lcom/android/inputmethod/latin/BinaryDictionary;.openNative:(Ljava/lang/String;JJIIII)J
W/dalvikvm( 3027): threadid=14: thread exiting with uncaught exception (group=0x40a9f300)
I/Process ( 3027): Sending signal. PID: 3027 SIG: 9
E/AndroidRuntime( 3027): FATAL EXCEPTION: Thread-174
E/AndroidRuntime( 3027): java.lang.UnsatisfiedLinkError: Native method not found: com.android.inputmethod.latin.BinaryDictionary.openNative:(Ljava/lang/String;J
JIIII)J
E/AndroidRuntime( 3027): at com.android.inputmethod.latin.BinaryDictionary.openNative(Native Method)
E/AndroidRuntime( 3027): at com.android.inputmethod.latin.BinaryDictionary.loadDictionary(BinaryDictionary.java:101)
E/AndroidRuntime( 3027): at com.android.inputmethod.latin.BinaryDictionary.<init>(BinaryDictionary.java:77)
E/AndroidRuntime( 3027): at com.android.inputmethod.latin.ExpandableBinaryDictionary.loadBinaryDictionary(ExpandableBinaryDictionary.java:307)
E/AndroidRuntime( 3027): at com.android.inputmethod.latin.ExpandableBinaryDictionary.syncReloadDictionaryInternal(ExpandableBinaryDictionary.java:436)
E/AndroidRuntime( 3027): at com.android.inputmethod.latin.ExpandableBinaryDictionary.access$500(ExpandableBinaryDictionary.java:43)
E/AndroidRuntime( 3027): at com.android.inputmethod.latin.ExpandableBinaryDictionary$AsyncReloadDictionaryTask.run(ExpandableBinaryDictionary.java:456)
I/ActivityManager( 1479): Process com.android.inputmethod.latin (pid 3027) has died.
[Defy Android Development] Kurt Krummbein:
... just get latest gapps for CM10 from http://goo.im/gapps, remember, we're still at CM10, not CM10.1 ;)

Cheers

Kurt
[Defy Android Development] brotbuexe:
Edit: Nevermind, looks like the gapps where still there after reinstall cm and wipe. Why is there no format system like in other cwms?

Will try the gapps-jb-20121011-signed.zip
[Defy Android Development] Coodarah:
To fully wipe (system | data | cache) try these zips. - I use them all the time having joy:

[CWM][ZIP] Defy Ultimate Wipe™ - xda-developers

http://xdaforums.com/showthread.php?t=1818520
[Defy Android Development] slph:
Whole /system wiped everytime you install CM10 (take a look at update-script in the CM10 archive), except things noted in /system/addon.d/ here lives scripts which one back ups your gapps, bootmenu config and other.

There no need to use wipe scripts.
[Defy Android Development] slon11:
so 07.01. version with kernel no666..... is the really truly the same as 10.01 version ?? All will be the same with battery ?
[Defy Android Development] ei2gfb:
does anyone have the original radio/modem drivers from the stock 2.3, i think it may resolve my constant roaming issue
[Defy Android Development] smokeysevin:
Just an observation, I have been running 1200 MHz at 58 vsel on a boosted governor since the get go and I have never had issues with reboots. I do have issues with the ringtone and notification lag but not with it going away completely. My phone goes in cycles of very fast and then slow for about an hour about twice a day but no reboots. On a side note I do have vibration enabled for notifications.

Just adding my settings into the mix, I have not tried the 10/01 build yet but I will.

Sean
[Defy Android Development] YetAnotherForumUser:
I just compiled a JellyX kernel to put it to the test. Two days from now we should know whether it solves the memory/ringtone/etc problems. Since JellyX/Blechd0se has so many extraneous options the following applies:

I'm using TINY_RCU, mostly to avoid the slew of 'TINY_RCU undefined' messages you get when using any other RCU method

Using the SLUB allocator (default in JellyX

debugfs enabled (default is disabled)

Google Snappy compression/decompression enabled (default is disabled)
[Defy Android Development] Cauan Dick:
My defy is restarting many times for day, how can I solve this annoying problem?
[Defy Android Development] F.Ace:
Do a full wipe might be help.
[Defy Android Development] YetAnotherForumUser:
Which version of Quarx' CM10 is on that phone? As you might have read in the last several dozen of postings there is a bug in the 20130107 kernel which is solved in the 20130110 version. So if you happen to be running 20130107 you should install 20130110 (and read the last week's worth of postings before asking why your phone reboots...). If you're running another release we need to know more before we can give a sensible answer [1].

[FONT="Helvetica Narrow, Arial Narrow"] [1] maybe it reboots because you warm it up in the microwave every morning to warm your hands? Because it regularly gets eaten by a horse and shat out the next day? Because you are using it as an emergency power supply for your PC?[/FONT]
[Defy Android Development] abysstheking:
i have come here after some 5 months...currently on cm9, looking for an upgrade to cm10..can i simply flash quarx's cm10 nightly of sep 24th on my defy without flashing any kernel? and is there a way to flash the defy+ nightly on my defy? if so, do i need to flash any kernel??looked up in a few of the previous pages for answer but couldnt find anything solid..

PS: i know the steps, just want to know which nightly can be flashed on defy and which kernel should be flashed with it (if any)

DEFY GREEN LENS
[Defy Android Development] amarayoub83:
Hi quarx if you can to add to you're beautiful cm10 to be able to charge while it turned off

Because my phone is fully discharge and I can't turned it on or charging I am tow day with out my defy

I miss him so much I currently use my old n86 until my defy back.....

Thx.
[Defy Android Development] ccav2000:
Running for 18.5 hours now on 10/01/2013 build with "Boosted" selected as CPU governor (via bootmenu), no major issues so far. Too early too tell about the ringtone bug, probably still there, just trying to test usage with governors other than "interactive".
[Defy Android Development] pepcisko:
2013/1/10 build, defy+, clean install:

can't take screenshots while a popup message is displayed on the screen - maybe this is normal? I couldn't check in another ROM :P Example attached. Screenshots without the popup are working perfectly. No logcat entry is being generated, just a system notification saying "Couldn't capture screenshot. Storage may be in use". This kind of screenshot (as you can see attached) is working using google's ddms or any other "adb thingie" (e,g. qtADB) - although wrong colors.
[Defy Android Development] jumika:
Is there a way to get cpuspy working? It shows 100% deepsleep.
[Defy Android Development] murlidhar85:
as far as i know cpuspy and similar apps do not work on any of the custom kernels
[Defy Android Development] scull11:
Hi,i have a problem with the latest nightly on my Defy,i have installed and i can not change the cpu speed,its on minimum 300mhz and maximum its 0 ? and when i try to change to 1000 nothing happens.
[Defy Android Development] pgreed:
The last release is very unstable (Defy green lens). I've encounter frequent reboots (partial and total) during Titanium backup restoring and at installing and running applications. Battery drain ~ 1.2%/h (stand by).
[Defy Android Development] soyusado:
By last release you mean 1001, because if you are referring to 0701, it's well known that.

I'm on latest nightly, no reboots and a good battery life.

Sent from my Defy running Android 4.1.2 thanks to Quarx.
[Defy Android Development] eagleeyetom:
Thread cleaned a bit. Proceed on topic.
[Defy Android Development] go2net:
gallery and camera disappeared after updated to 20130110 version

My last version has ringtone problem, so I update to latest version, but after did that, gallery and camear disappeared, even I reinstall GAPP, it still can not be worked, any suggestion?
[Defy Android Development] thekguy:
Try a system wipe then flash Rom and gapps
[Defy Android Development] eugenchr:
for those who have problems with clean install

1stock recovery: wipe all data

2custom recovery: wipe all data, flash rom, flash gapps

3custom recovery: wipe cache, wipe Dalvik

4boot cpu seting: seting governors interactive

5restart

worked for me

the stock recovery keeps data overalls time you flash a new rom

maybe I'm wrong?

cwm bug?
[Defy Android Development] YetAnotherForumUser:
There will be many suggestions of doing full wipes, and that might solve the problem. It does remind me a lot of the default answer to any Windows-problems though: 'FORMAT C:; reinstall Windows'. Like going to the dentist for a tootache and hearing him say you need a head transplantation.

You can start by checking logcat for any gallery/camera-related messages, but you could just skip this step - it might show something useful but the next step would be the same anyway: try to clear data and cache for gallery (Settings->Apps->All->Gallery->Clear data/Clear cache). Reboot. Do Gallery and Camera show up now? If so, try to use them. They work? Fine, problem solved. They don't show up or they don't work? Reboot into recovery, wipe Cache and Dalvik cache (Advanced->Wipe dalvik cache), reboot. Do they work now?
[Defy Android Development] davo.arto:
It happened because gapps.zip script wasn't able to copy your camera app to system/app because it was out of space.

To fix:

In a root file manager:

1) Make some space on /system. For this you can delete not used languages on /system/tts and not used apps on /system/app

2) Copy Gallery2.apk from gapps.zip to your /system/app (Probably you have already a gallery2.apk there, but it has 0 bytes)

then at recovery:

3) wipe cache and dalvik.

4) Boot
[Defy Android Development] sevenrock:
After an uptime of more than 44h with my ROM I can say the

custom MP3 ringtone, stored on the SD card, still plays fine :)
[Defy Android Development] woodman:
Good news.. :)

Can you please give us a link of your ROM or just kernel in order to test ?

I don't know if I have understood... This is the last Quarx' Rom (20130110) with last kernel except one or several commits ? :-s

Sent from my Defy MB525 green lens
[Defy Android Development] prisacariu:
Hello guys

I need a little help. One of my friends has purchased a defy + and he asked me to help him with cm10 upgrade.

I need your opinion on what is the most stable and battery friendly version of cm10 suited for daily use of my friend ( who is not very good with phones)

Thanks in advance
[Defy Android Development] configuration:
Looking good.

Did you make a few phonecalls?
[Defy Android Development] sevenrock:
Hi,

at the time of writing my posting (10th January 2013, 07:53 PM) I synced with the git

repo from Quarx and removed ALL commits to jordan-kernel/ done after Nov 9th 2012,

so the kernel source is the same as in CM10-20121109-NIGHTLY-mb526.zip, the rest

is the current code from Jan 10th 2013.

I do not know if the kernel in CM10-20121109-NIGHTLY-mb526.zip was compiled with

the same compiler I used, because the compiler version is set outside jordan-kernel/

I followed this guide to compile the ROM, basically using these commands:

repo init -u git://github.com/Quarx2k/android.git -b jellybean
repo sync
cd jordan-kernel/
git reset --hard 9771da3ef4eaacec0d2340c6d5efdff507c774a4
cd ..
./vendor/cm/get-prebuilts
source build/envsetup.sh && brunch mb526

Attached you will find the zipped file system/bootmenu/2nd-boot/zImage from my

image, I do not know how to make a CWM zip nor do I have experience with flashing

it using adb, so you are on your own here :)
[Defy Android Development] sevenrock:
Yes, several ones with ~5 minutes talk time in total, also I used

WiFi, OsmAnd, Apollo and some other apps. The phone was

not heavily, but regularly used.
[Defy Android Development] woodman:
Thanks, don't know too how to make cwm flashable zip...

Sent from my Defy MB525 green lens
[Defy Android Development] okij:
Here's a flashable zip of the kernel compiled by sevenrock. :)
[Defy Android Development] woodman:
Thanks, gonna flash now and test ! I will do a feedback after 2.5 or 3 days. :)

Sent from my Defy MB525 green lens
[Defy Android Development] pgreed:
Yes is about 10.01. As I suspect maybe this unstable behavior is happen to defy green lens and not to red lens. Why?
[Defy Android Development] davo.arto:
There is no reboots on my defy green lens with 10.01 build.
[Defy Android Development] soyusado:
I think you should make a clean install.
[Defy Android Development] YetAnotherForumUser:
Interesting observation. If the current experiment I'm running with a JellyX kernel fails (as I more or less expect it to do) I'll give that a try. Pity I only have one Defy I can experiment on as I also have a 3.X kernel waiting to be tested...
[Defy Android Development] soyusado:
These are a very good news.
[Defy Android Development] mikrom.cz:
It is not working for me. No ask for pin, no mobile network, no wifi connection, broken button backlight. Revert back to 10.1.
[Defy Android Development] okij:
I just tried it myself and had exactly the same problems. :( I'm back to 10.1. too on my Defy+, but on this I had the latest ringtone bug after just 16 hours uptime...

Sevenrock, could you please upload the whole ROM that you compiled yourself so that we can test it?

---------- Post added at 01:59 AM ---------- Previous post was at 01:38 AM ----------

Wow! Did you, Quarx and the other devs already solve the display driver support?

Would you mind uploading your 3.x kernel on the 3.x thread, or is it still to early for general testing?
[Defy Android Development] ccav2000:
Don't think the display issue is solved yet, in Quarx's server there is a dmesg log from just yesterday, if you look at it you'll see the display failing to initialize.
[Defy Android Development] DingoDingo:
+1

Sent from my MB526
[Defy Android Development] sevenrock:
Of course providing only zImage was not enough, the modules were missing...

Attached you will find a new zipfile containing not only zImage but also

system/bootmenu/2nd-boot/* and *.ko from my image. I hope this is enough.

Uptime currently 62h, custom MP3 ringtone, stored on SD card, still works :)

PS: uptime 68h w/o with working ringtone
[Defy Android Development] pepcisko:
bugreport

- 10-Jan-2013 build, MB526:

recovery doesn't mount the sdcard by default. Not sure if that's a bug or feature :P went to recovery to backup system/data, had to mount sdcard manually in recovery.
[Defy Android Development] navinshark:
New Build 4.1.2 (10/01)

Guys have any one faced wifi tethering problem, For me in single boot I can turn on Wifi tether only once. Again need to reboot the phone to activate wifi tether.

Defy (green)
[Defy Android Development] ccav2000:
It's a known bug, and it's there for some time now. Tethering is broken.
[Defy Android Development] YetAnotherForumUser:
The kernel I'm going to test is based on Quarx' 'solana' kernel with some changes. As stated, I don't have a Defy to spare so I have not tested it yet. I don't expect the display to work outright so don't get your hopes up. I don't follow the 'It compiles, ship it!' mantra which seemed to guide a well-known big software company some years ago (not so much lately).
[Defy Android Development] okij:
Thanks! :)

Here is again a flashable zip.

I just flashed it myself. This time there are no problems with input of pin, mobile network, wifi and button backlight. :good:

I'm testing now this kernel...
[Defy Android Development] Antiga Prime:
It's been like that for me in the past few builds. Entering the "Choose zip to install" menu appears to "mount" sdcard, and then backup works.
[Defy Android Development] wskelly:
Does this commit still apply for red lens though? There are only a handful of lines in this commit that would not apply for green lens so maybe it still makes sense to conditionally execute these for red lens.
[Defy Android Development] ccav2000:
Giving this a try, I got the no ringtone bug again with the 10/01/13 Quarx's kernel.
[Defy Android Development] chrisul:
No Probs with last nightly 01102013 Defy green lens

Hi,

thanks for your work guys.

With the last nightly from 10 Januar is by my Defy green lens no problem.

Ril and Ringtons OK.

Battery drain very good.

wifi OK.

Launcher fast and Smooth.... ,-))

Thanks

Chris
[Defy Android Development] sevenrock:
How long is the uptime of your phone?

---------- Post added at 09:31 PM ---------- Previous post was at 09:30 PM ----------

Currently I am using

android@android:~/cm10/jordan-kernel$ git diff 9771da3 f0ffc75

to compare current JB kernel 2.6.32.60 from Quarx and his revision from Nov 9th

(2.6.32.9), the last one seemingly without the ringtone bug, hunting for interrupt

stuff just by trial-and-error. Here I will collect my findings and locally try to revert

them in current git, build a ROM and flash it to my first Defy+. It is currently at

72h uptime and shows no sign of the ringtone bug. Today I flashed my second

Defy+ with my 20130110/2.6.32.9 ROM and let it now rush through the hours.

I expect it will not show the ringtone bug either.

I will post, imho suspicous, git diff links from kernel.org because I was not able

to produce them from Quarx git web repo:

http://git.kernel.org/?p=linux/kern...ff;h=b46c0f74657d1fe1c1b0c1452631cc38a9e6987f

http://git.kernel.org/?p=linux/kern...ff;h=b63010f54cdcb456c3a29e242a0769e5b412d785

If you like you can join the hunt for the ringtone bug. Currently I am concentrating

on the interrupt area as suggested by YetAnotherForumUser. I am neither a kernel

hacker nor a C crack, so all of this can be a huge waste of time though...

PS: 94h uptime, ringtone still working, on my second MB526 30h uptime with working ringtone
[Defy Android Development] YetAnotherForumUser:
JellyX: uptime 50 hours, ringtone still works...

Lo an behold, it is now some 50 hours since I rebooted my phone:

$ uptime
up time: 2 days, 01:51:02, idle time: 19:17:12, sleep time: 1 days, 03:54:14

As of yet there are no signs of slowdown or ringtone problems. Some more stats:

$ uname -a
Linux localhost 2.6.32.60-JellyX #1 PREEMPT Fri Jan 11 19:46:12 CET 2013 armv7l GNU/Linux

$ grep SoC /proc/socinfo
SoC	: OMAP3630 ES1.1 <--- MB526

Toolchain:[FONT="Monospace, Courier New"] CROSS_COMPILE=/opt/arm-2010q1/bin/arm-none-linux-gnueabi-[/FONT]

I'll keep the phone up for another few days to see whether the bug is just delayed or really banished. For now I things still look good though. Do note that I'm running a 2.6.32.60 kernel while sevenrock seems to get good results with 2.6.32.9. This means that either the problem does not lie with 2.6.32.60, or one of the patches in Blechd0se/JellyX takes care of it.

This will delay my experiments with 3.X but it is worth solving this rather long-standing problem IMnsHO. Once the 'ringtone' (yes, I know, it is more than just that) bug has been squashed I'd consider current JB stable and fast enough for daily use by 'normal' users.
[Defy Android Development] theclaytons:
Does this modifed kernel reduce the lag experienced by some users in CM10? I read earlier that the lag was resolved when someone stopped the mediaserver and was wondering if this is all related?