yashsingh1/xdaforums huggingface dataset:
[G2 Android Development] jeebspawnshop:
Random crash & reboot

I was listening to music on my phone - not doing anything else in particular - when it randomly froze up, then rebooted.

I tried to read the log, but as usual I understood absolutely nothing of it, so I gotta post it here for smarter minds to review it :good:

All I noticed is that it appears similar to the log some guy posted a few posts above mine... I think...

Hope it helps!
[G2 Android Development] duki994:
lowmemorykiller: VM Pressure is 100

That's odd. How could your phone have such VM pressure? It might have caused phone to reboot. Check your RAM usage. I suspect well known LG ROMs SystemUI mem leak and ROM threads/binaries died and rebooted phone.

Restart ROM at least once a day to keep it clean from such leaks. Or try manually killing and restarting SystemUI with some task management apps. It will help too
[G2 Android Development] jeebspawnshop:
Thanks for checking it out, bud.

I'll make Tasker kill and restart SystemUI every night at 04:00.

I hate to come give bug reports when it's not the kernel's fault!
[G2 Android Development] drew150931:
To enter download mode. Just hold only volume up then connect USB cord to your G2 and to your computer. :)
[G2 Android Development] denuxer:
thanks... it for normal phone

my phone is totaly dead,, i cant chargin when charge its blinking red light notificaton contonuously

when plug the usb cord to computer its Red light again..

and i cant turn my phone up ( Drained 100% )

i
[G2 Android Development] drew150931:
Maybe your phone was brick. anyway i hope you fix your phone.
[G2 Android Development] dorimanx:
yes i need help with that. i really dont have time to run after DEVS that dont post there source, and full changes to kernel or ramdisk in GITHUB as normal devs do.

they release ROM and it's useless for me. it's not booting with my kernel.

So if you wish to help, ask them to release full sources to KERNEL... i dont care about there ROM apk's/jar mods on xml level...

No idea WHY, but all ROM devs are so greedy and not sharing there source of work from ORIGINAL to NOW...

so we can see what is really done.

and no XDA policy to force them to do so... this why there are always wars about: THIS IS MY! i made it and you stolen it...

Android is FREE!, "NO IT'S NOT YOURS"... understand this already... (My personal point of view! not pointed to any one here)
[G2 Android Development] dorimanx:
so it's clear... we have problem with alucard gov or hotplug...

For now please use other GOV on Hotplug...

i will try to do something about it... DEV (alucard) is very helpful and doing his best to solve this.

big part of this, that with his kernel for samsung 4 all great! no such problems...

this why it's so hard to find the reason for problems...
[G2 Android Development] dorimanx:
it's seems like internal storage is damaged, and aboot is broken... it's also the download mode or kernel/recovery starter.

Last time i had this with my samsung sg2... one day flashed kernel as i did 1000 times before... :)

and "game over" black screen... nothing...

i had no other choose, went to store lab, and asked to fix.

they replaced mother board, and all was good again.

flashed the same kernel and no problem since...(flashed 100+ others tests builds...) now my wife still use it.

So i think your hardware failed, just bad luck... :(

Same kernel was installed over 10000 times in other phones.... no one reported brick device...
[G2 Android Development] dorimanx:
so all OK. for now with ondemand and msm???

i am trying to find more reasons to crash... and reboot bug...

funny that other kernel devs, that work on more "clean" and simple kernel... have reports of reboots too!

Now that is strange...
[G2 Android Development] duki994:
1.9 no bugs for now.

Using alucard HP + 4x intelliactive.

With this combo had no reboots on 1.8 also :)

Alucard HP working without any bugs. Seems like alucard gov is causing bug.

P.S

Never thought that this combination can be more battery friendly than alucard HP + 4x alucard
[G2 Android Development] Pritt0:
Yes Dori you're right about alucard gov and hotplug, 1.9 still freeze and reboot.
[G2 Android Development] Diechel:
Yes till now stable on default performance profile.
[G2 Android Development] kondzio66:
Today frezze and reboot at 1.9 and stock 30e
[G2 Android Development] capoooro:
Hi there, I don't use alucard. I've tried other combinations. Now I'm on yankactive and msm. I never had any problem in any version of your kernel... I believe we can circumscribe the instability problem to alucard governor or hotplug...
[G2 Android Development] drew150931:
[MENTION=2376110]dorimanx[/MENTION], in your kernel 1.5 stable. i never experience such reboot and freeze when i set alucard HP and alucard gov x4. i only experience is just sometimes it lags thats all.
[G2 Android Development] gozzaa:
Just wanted to share my experience so far.

Not a single problem. Using performance profile, ondemand + msm hp.

Iam on stock 30e
[G2 Android Development] iall5tar:
Also i have to say that with MSM hp and intellim not problems at all everything is smooth like a hell...
[G2 Android Development] goran_oh:
Yep me to,not a single problem so far,using performance profile,cpu 0,1 ondemand 2,3darkness +msm hp,Iam on stock v30e

Sent from my LG-D802
[G2 Android Development] dorimanx:
Perfect! all i needed, good reports.

so it's seems we have bug in alucard GOV only... what about nightmare GOV??

and Alucard Hotplug is stable.

now i have clear path to find and fix the alucard cpu gov.

For now please do not use it for normal usage... status BUGGED for now...
[G2 Android Development] duki994:
Full report now.

Alucard HP is rock stable. Used 4x intelliactive and alucard HP. Heavy gaming, heat, thermal throttling, thermal core control hotplugging, aggresive multitasking... Stable as rock. No reboot, no RAM problems.

Only thing left is alucard gov. It gives reboot. Any HP + alucard gov = reboot.

Darkness and nightmare did not give me reboots, but I didn't test them as thorough as alucard.
[G2 Android Development] oscar mok:
No problem with nightmare gov.

I use 4 x nightmare+alcard HP from 1.1 to 1.9, no single reboot discover, very stable.[emoji106]
[G2 Android Development] denuxer:
Alhamdulillah...

I open backcover and disconect battery connector board waiting 3 minutes and connect it again to mother board and its Works

So becarefull when flashing with low battery
[G2 Android Development] iall5tar:
Hello there got a nice freeze while I was in playstore, I had to reboot manually...

Here is the log hope it helps sorry but my knowledge about reading logs and what's the heck was gone wrong it's not my best xD

https://www.dropbox.com/s/2g8q1sdhrvvtl84/dorimanx_debug-V9.0.zip?dl=0
[G2 Android Development] dorimanx:
Zram lz4 driver hit bug.

When you created log, did you installed some keyboard app before?

As rom was processing dex for it.

Question if you didnt then something stuck with this keyboard...
[G2 Android Development] iall5tar:
No, it was already installed, I was typing a review from app. BTW I'm using SwiftKey, maybe has a bug keyboard?

In the other hand no problems at all in performance [emoji106]

Cheers!
[G2 Android Development] migueldbr:
[MENTION=2376110]dorimanx[/MENTION] what do you think about the xposed memory leak fix for 5.0.2? (http://xdaforums.com/xposed/modules/xposed-fix-lollipop-memory-leak-t3065296)
[G2 Android Development] OT-Xtreme:
R U for real man
[G2 Android Development] Romagnolo1973:
Not needed because:

- our G2 seems not beed so affected by this memory leak

- using Dori kernel with all its tweaks memory is well managed by kernel
[G2 Android Development] migueldbr:
Yes I am for real, I never saw any comment from a dev on that subject...we still have memory leaks right? Otherwise the dev wouldn't advise to reboot the rom once a day right(I think it was the dev but not 100% sure)? That's why I'm asking. Because some people say it works, others say it does not
[G2 Android Development] Trixanity:
Quite certain it's two different things. Memory leaks aren't that rare. The leak that the xposed module fixes is as far as I know already fixed by LG but apparently LG's own software has a memory leak.
[G2 Android Development] migueldbr:
That's what I wanted to know. So that xposed mod only fixes one memory leak but we have others then right? Thanks
[G2 Android Development] 60nine:
search harder... if not here, then in q&a thread...

it was mentioned several times and this xposed "fix" is as almost old as lollipop itself...
[G2 Android Development] OT-Xtreme:
super old and discussed multiple time in this thread and others, the fix is non relevant to us
[G2 Android Development] migueldbr:
Sorry, I did search the thread but didn't see a comment from dorimanx regarding the xposed memory leak fix, my bad. Wont bother with this again
[G2 Android Development] hitardo:
Well said.

That fix is for a different framework.

Nevertheless, DorimanX kernel already contains various ways to fix this issue.
[G2 Android Development] Djsam92:
Had a Black screen while playing, had to hold power button to reboot. Stock 30H, dorimanx 9.0, default profile. Hope it helps! https://www.dropbox.com/s/mmqu8hvcrm2ikcd/dorimanx_debug-V9.0.zip?dl=0
[G2 Android Development] Dimberr:
i got the same. black screen, only hard reboot helped

https://www.dropbox.com/s/yllwihnh9i4lw3i/dorimanx_debug-V9.0.zip?dl=0
[G2 Android Development] alirezagoli95:
Hi dori, my battery life is very bad in all kernel apart 7.5 but 7.5 to installed ram more use. Please A perfect setting for the latest version lets Thank you.
[G2 Android Development] Diechel:
Use battery profile in the Dorimanx app. Click on the P in the top right.

And next time post in right forum, q&a
[G2 Android Development] Romagnolo1973:
I saw in git page that Dorimanx found a bad cpu power consuption in iddle and he solved it, so wait next 9.1 version and probably you will be happy again with your G2. If battery drain continue is not a kernel problem but some app and you need investigate using wakelock detector
[G2 Android Development] duki994:
Yup. Saw that bad load calc. It was sometimes reporting 100% usage and ramping CPU without need.

And he also added BT LPM (low power mode?). It should lower power consunption when BT is on and idle.
[G2 Android Development] dorimanx:
I want to place a warning.

I have used the viper4android DD+ and sony beats 5.1 edition. and from day one i had strange rom hotboots.

So i was thinking that its can be exposed v80 that i have also installed.

so i have installed exposed v79 and was happy that now all will be OK. but NO, many times during boot, to test more changes of kernel that i work on, (NO always!) i see ROM booting fine, then puff! LG logo + sound, and after 1min rom boot again!

but kernel is online all that time, i see it via ADB, no errors in log.

So after few times like that, i was getting tired of this, and started to look for reasons.

When next time i had that hotboot (just now) i have looked in too ROM logcat stream, and found the crash reason!

ROM sound driver stuck when getting sound buffer ready, and rom watchdog see that rom gpu driver not responding, and send kill to all ROM services. mean time kernel is not seeing any problem.

ROM boot again, and again i see that logs about problem to init sound, then it's get it done, and keep working.

So, what i want to say is, maybe we should not use the viper4android with sony beats sound driver.

and replacing MANY system libs from other device, from my point of view, it's BAD... and should not be done.

So if you see such problems, and you have installed "modded viper4android with other device sound driver"

Better to restore your system backup before that, or just flash ROM again to clear all.

Then do all that needed to get back to what you like... i will use only stock viper4android + exposed v80 and see how it's goes.

Thanks for reading, and get ready for monster update... i am talking about above 500 commits!

All Filesystem and BLOCK system is upgraded to 3.10.y + other fixes that came around.

Stay tuned.

P.S this problem started with 8.9 when i was testing 9.0... before all new stuff :)
[G2 Android Development] n@vier:
[MENTION=2376110]dorimanx[/MENTION]

As you know I used your kernel in every rom that I use.

I have also v4a dd+ sony beats edition but v4.6 (read open post by [MENTION=4445176]guitardedhero[/MENTION] he wrote why he is back to v4a 2.3.4.0 driver....) and everything is ok for me.

Before I was on cloudyg2 and now I'm on google edition rom and no one problem but I don't have anymore xposed....so perhaps it could be xposed I don't know.....anyway you can try v4a v4.6 ;)

Thanks as always for great and awesome development!
[G2 Android Development] iall5tar:
Um using v4aDD+ Sony, beats, edition the last version(5.3) I hadn't more rand hotboots or softboot as you mentioned.
[G2 Android Development] smartpr1v4t3:
I use the 5.3 sony atmos version and had only 1 hot reboot. Thought i rebootet my phone but looks like i hadnt:D
[G2 Android Development] boyheadkick:
just read this and now i'm waiting for the update to drop like. . .

/OT
[G2 Android Development] KpKi:
If I may ask? Why there is a section of how to get V4A to work in OP? I always install V4A then install the driver and that's it!! Can someone explain what is the functionality of the method in the OP?
[G2 Android Development] dorimanx:
the way you install is wrong.

as some apps that stream music or play mp3,flac will not use viper4android channel.

and you get no joy...

only stock music player obey in both cases.
[G2 Android Development] nidzaaaa:
Switched from xceed to doriman v9.0, and dorimanx app is missing. Synapse and color control are only installed.. Whats the problem?
[G2 Android Development] dorimanx:
Hmm, go back to xceed. Best for your device.
[G2 Android Development] CampfireVibés:
Wait try to wipe dalvik and chache then reflash correct version for your model
[G2 Android Development] boyheadkick:
if you flashed dorimanx kernel directly over a rom running xceed kernel, then there are probably some leftover files from xceed that prevented the dorimanx kernel app from being installed..best to reflash your rom or clean install before flashing dori kernel
[G2 Android Development] nidzaaaa:
Hmmm.. Actualy, xceed is better, smoother, but i have better battery life with your kernel, with some governors which are not included in xceed.

As i find you very childish and hard to talk to, i still respect your work.

Dont expect logs from me..

Btw, i solved the problem.
[G2 Android Development] CampfireVibés:
Geeee don't be so rude to dori whilst using his amazing work that he's put 100's of hours in. Also this kernel is way smoother then the xceed kernel with the right tuning... #get a chill pill
[G2 Android Development] boyheadkick:
not the best thread to discuss OT...we all have a choice, you made yours..be happy with it /OT

and while there are instances where you can jump from kernel to kernel, it is still best to reflash you rom before trying out another kernel..that way there are less problems later on...
[G2 Android Development] dorimanx:
next time solve your problems first.

and use what better, smoother. and dont come back. ignored.
[G2 Android Development] kocaman1321:
Thank you dori for your work, 9.0 is awesome.Can't wait for 9.1 :)
[G2 Android Development] dorimanx:
To PRO users:

I am thinking to add swap feature to extend our RAM even more.

This time, storage base swap, file = 256MB that will be used as additional 256MB RAM. for background apps.

As we all know, its not best option, as it's read/write to that file when needed.

But if i think of that, ROM/kernel/APPs write nonstop to storage...

when swap is not big, it's has small impact on CPU and storage health...

any way it's will be turned OFF feature.

to play with it right now till next reboot :) use ADB, or some terminal.

dd if=/dev/zero of=/data/swapfile bs=1024 count=262144

[respond will be]
262144+0 records in
262144+0 records out
268435456 bytes transferred in 14.383 secs (18663384 bytes/sec)

then:
chown root:root /data/swapfile
chmod 0600 /data/swapfile
mkswap /data/swapfile
swapon /data/swapfile

RUN free :)
root@g2:/ # free
free
total used free shared buffers cached
Mem: 1901688 1782028 119660 0 3688 482216
-/+ buffers/cache: 1296124 605564
Swap: 786424 159468 626956
root@g2:/ #

Now i have 512 ZRAM + 256 Storage RAM (swap) nice :)

after reboot, no need to create file again.
just activate
mkswap /data/swapfile
swapon /data/swapfile

If you want to ask why i need it, or how to, and do i must use it.

answer is: skip this post :) you dont need it.

for more info look here.

http://www.cyberciti.biz/faq/linux-add-a-swap-file-howto/

so what do you think?
[G2 Android Development] jeebspawnshop:
My opinion is that this is a great idea, and an excellent inclusion for folks that feel they could benefit for even more "RAM".

I run my phone with minimal apps and never feel held back by the lower RAM, but I'm sure most people could really enjoy the fruits of a swap file.

Dori, always innovating!

:good::good::good::good:
[G2 Android Development] Computoncio:
I like it, i think you should implement it and set it off as default as you said. Testing right now, i will report in a few days.

Phone: LG G2 D805

Kernel: Dorimanx kernel v7.9 LP D802

1st ROM : SRK-D80230f_20150926_droidth

2nd ROM : Waiting for custom recovery ;)

MODS: Viper4Android, Xposed
[G2 Android Development] djtiesto22:
Freeze on 9.0, I hope this will help https://docs.google.com/uc?id=0B-0xfPacaqF_MFJIY1RmM2JjUlU&export=download
[G2 Android Development] raptorddd:
this means cpu damage ? heat or battery?

storage health like. sssd card damaged or loosing data?
[G2 Android Development] merlin21:
That's the spirit of dorimanx! Always new ideas how to invent new functions. I think the stable state of the kernel at the moment is the right time to test some new things like swap without disturbing posts of random errors. Like [emoji106]
[G2 Android Development] BaschtlWaschtl:
What's about swap file in /system partition? There is enough unused space..

Could it work?
[G2 Android Development] DennisvandePut:
Swap is good idea. System is really more responsive. Nice. Thanks. Created a small autoexecute sh file to start swap at reboot.
[G2 Android Development] Dimberr:
Can you share it with us?
[G2 Android Development] DennisvandePut:
sh swapon

Sure. Note: I set the file to execute by using root toolbox scripter.
[G2 Android Development] Diechel:
App to make swap file and enable it on boot.

Run app to create the /data/swapfile. It checks if already existing or not.

On boot it will run the commands to enable it and will show a toast that it has been enabled or an error from shell.

It has no user interface, let me know if it doesn't work. Just a fast sketch :)
[G2 Android Development] Dimberr:
Thanks!

Should swap be trimmed sometimes?
[G2 Android Development] Subtleone:
First of all Dori, allow me to thank you, as have so many others, for your incredible dedication and efforts. I would like to mention two issues with the latest versions that have had me back to v8.7, mostly to compare and confirm my impressions:

1) The knock-on in deep sleep is almost unusable in the latest build, and can only be woken up with the power button. WIth v8.7 it may not be instant, but it definitely works a lot better.

2) The battery life in v8.7 is also better IMHO. My simple test is to leave WiFi on, programs closed, phone in standby, while receiving notifications from Gmail, Whatsapp and Skype. v9.0 eats up a lot more battery in those exact same conditions. That said, contrary to some reports, I had no crashes at all, so stability for all versions, at least for me, was rock solid.

Once again, thanks for your work, it is deeply appreciated.
[G2 Android Development] Diechel:
I don't know.

There is no /swap partition present so don't k of what to trim if that works
[G2 Android Development] angel4o:
can i use on CloudyG2 3.x Rom?
[G2 Android Development] Romagnolo1973:
I'm on last 9 kernel and with basic use so my device is 90% of the time in deepsleep and for me duoble tap to wake is the same as ever, no issue at all. Could be another app interfering, by the way next 9.1 will be a huge improvement with more than 500 new commit and some of those new things are concerning CPU Freq because Dori discover a bad calc in freq that cause in some case cpu stay at 100% and it will be solved in next release. So when it will be ready and downloadable I think with 9.1 you will solve every issue.

Portugues : Você pode Confiar em Dori sempre! --> In Dori we trust :D
[G2 Android Development] albsat:
My report. I have had a couple of reboot recently.

https://www.dropbox.com/s/kx3wjzsvhukj3ii/dorimanx_useless_debug.zip?dl=0
[G2 Android Development] merlin21:
[MENTION=4413706]albsat[/MENTION]

If file is called useless... It's useless for dorimanx.
[G2 Android Development] albsat:
I used the bug report option from doriamax app. And posted here. Is there any other way?
[G2 Android Development] merlin21:
I see there is the chargerlogo error in log. Search for that on this thread...

Dorimanx included the function with log output as useless so he don't have to scroll through thousands logs where he can't help.
[G2 Android Development] Diechel:
Yes

Next time use Question forum (Q&A)
[G2 Android Development] BaschtlWaschtl:
I got freeze and reboot while browsing with Firefox yesterday..

https://app.box.com/s/xaqpnn3e6afg13hrg4mrektf3myilzx0
[G2 Android Development] CampfireVibés:
Sorry to annoy but I'm barely surviving over hear dying in need of this update ?????

Can you let us fans know when you'll release it roughly ? Your updates have become a basic human need of mine

It goes: Water>food>amazing new dori update> clothes>shelter...

???thank you dori
[G2 Android Development] jeebspawnshop:
As long as the swap partition is mounted with the "discard" option, trimming would be unnecessary. I'm sure Dori can elaborate on this point though.

After using the bug report option in the Dori App, check the file it creates - if it says "useless" at the end of the file name, then don't post it, because it does NOT contain any data that Dori can use for debugging.

LOL! It's usually bad manners to ask for ETA's... but yours was funny :laugh:

Try not to ask for ETA's in the future though... most people dislike it.
[G2 Android Development] 60nine:
1st rule of XDA - don't ask for ETA's
[G2 Android Development] OT-Xtreme:
the apk of swap file doesn't work for me.. the manual commands work good
[G2 Android Development] krezee:
Reboot while browsing on chrome

I got reboot while browsing on chrome.

Ps. was using wireless mouse with OTG cable as most of my touchscreen stopped working due to heat issues many months ago.

Hopefully something useful is there in logs.
[G2 Android Development] dorimanx:
Next build is ready. with new swap function. all in git.

i am testing till morning. it's 22:44 here. then upload when i get to work and find time to do so...

I hope my work week will start quiet... (we work from Sunday to Thursday)

i will check recent reports, but with new build, it's will be irrelevant.

as kernel is no longer even close to 9.0 :)
[G2 Android Development] Dimberr:
Those who just add swap manually should they change something?
[G2 Android Development] dorimanx:
No. If used same file name. /data/swapfile

New script will take care of it. And build new one if you want that.
[G2 Android Development] KpKi:
As OP states there is no encryption but I saw a bunch of encryption updates went into twrp recovery lately ..so is encrypting ext4 will cause kernel to loop ?
[G2 Android Development] dorimanx:
we will know with 9.1 soon.

if you wish to use encryption. make full backup! and move it to PC, including all storage content.

so if something will go wrong, you cant just format, and restore backup and copy all your file back to storage.

I didnt tested, as i dont use that, i dont have anything secret on my device... so i dont care. but it's me :)