yashsingh1/xdaforums huggingface dataset:
[Desire HD General] bobbyphoenix:
Do you still have the "Fast Boot" disabled? If so can you turn it on to see if that was it?
[Desire HD General] polystirenman:
Yep.I went went thru those forums too.but none of those answers was satisfying.since we cannot rollback to 2.1.interesting is that most of those people are saying that it happened after update.shame that I cannot confirm that as I applied OTA straight away.all I know is that this issue kept coming back whatever I tried but after I did what I described before this has not happened again.I keep monitoring CPU load all the time now but it's normal.

Maybe it was something else what actually fixed it but this is what I did last before it went away.

Disabled it just now.will let you know.

But I don't like this whole "Fast Boot" thing anyway.I prefer proper reset.
[Desire HD General] reelist:
Hi, i've had these problems too since getting my DHD. I'm seeing 100% usage on systempanel but haven't tried OSmonitor yet as my DHD is charging (incidentally, i'm having battery life issues which hopefully will be fixed when i perform the actions you've suggested).

can you confirm the steps you performed above?

1. turn phone off

2. remove battery

3. replace battery and turn on

4. physical hard reset

?. disable fast boot

now because i'm a noob to android i do have a couple of questions:

a) which buttons you use for a hard reset

b) fast boot

i) where does disabling fast boot fit in

ii) what difference does it make to my phone experience

iii) how do you disable it?!

thanks in advance!
[Desire HD General] Zman_DHD:
I am also having the /init 90%+ load problem. Turning off Fast Boot and rebooting seems to have solved the problem, though its only been a few minutes so can't know for sure.

For anyone that doesnt know - You can turn off Fast Boot by Menu > Settings > Applications > Uncheck Fast Boot.
[Desire HD General] reelist:
just to update this - since the battery died on me that day i've not had the problem anymore. no lag, no 100% cpu, nada! fast boot is still on but the phone is working like a dream. except the battery life, which still struggles to get through a day.
[Desire HD General] Zman_DHD:
It happened again :(

Restarting the phone solves it temporarily, but I want to get to the root of this problem. Until then, I might just get Tasker to prompt+restart my phone when it detects >90% cpu load for more than a minute.
[Desire HD General] polystirenman:
Hello All

i have been busy lately so i couldn't post any updates.

but here it is.

my phone has been all OK since my last post.problem never came back and i can honestly say i've been giving "him" pretty hard times :-D

loads of apps installed/uninstalled,synchronization on all the time,used as modem on daily basis,navigation and list continues...

it's running 100% OK now.

anyone with similar experience?

and two more things...i still have fast boot option set to "off" although i switched it back on for a day because of a request from one user here on xda.did not reproduced the problem.i switched it off simply cos i want my phone restarted the proper way if i must do that.and i would recommend you guys to keep it off.restart with fast boot on does not seems like proper reboot to me.and battery life is pretty decent too.

i truly love this phone now.

Have you tried hard reset as i described?
[Desire HD General] Zaza le Nounours:
Hey polystirenman, could you explain how to perform a hard reboot of the phone ?
[Desire HD General] polystirenman:
if you mean HARD Reset,than:

1. Switch Off your phone.(be aware that if you have fast boot option "on" this wont work.it has to be set to "off".

2. Your phone starts switching it self off hold down VOLUME DOWN button

3.as soon as it reboots you'll get in to white screen with Android logo

4.by pressing VOLUME BUTTONs up or down you can navigate thru available options.

5.Chose FACTORY RESET and confirm with POWER BUTTON.that's it.your phone will then boot in to a state like you would just took it out of the box.

but if by "hard reboot" you are referring to my last post and me saying that i prefer proper restart i simply meant that if you keep fast boot option "on" the reason why your phone boots so fast is,that it has not been switched off properly.

it is easy to prove.

try enabling FAST BOOT and then hold down power button and select "Power OFF".when phone is off hold down VOLUME DOWN button and switch it back on.it wont even take you to that recovery or service screen to make hard reset.i think this just brings phone to some kind of hibernation mode so it is able to boot fast later when you hit power button again.
[Desire HD General] dr.m0x:
I noticed htcsense.com isn't working properly as well. I put it down to the fact it is a brand new concept and they need time to work out the bugs. This kind of thing has, and always will be the price of being an early adopter.
[Desire HD General] Zaza le Nounours:
Ok, thanks. For now, since I installed the last OTA update, the phone seems to run properly, but I'm confident that the problem will come back. When it does, I will try to perform a hard reset.
[Desire HD General] Zman_DHD:
I have not tried the hard reset, yet. I've spent a huge amount of time customising every app and widget down to perfection...I really don't want to lose all that.

If I back up the phone, will I be able to restore everything? Even down to the last widget preference? If so, can anyone recommend a good tool to use for this?

Also, would doing a complete restore from a backup after the hard reset not just risk 'restoring' the problem back onto the phone?
[Desire HD General] Zaza le Nounours:
Well, I turned off the phone, removed the battery, performed a hard reset... And this damn /init is back already. It really pisses me off.
[Desire HD General] Rixsta:
No surprise there..., its very annoying...I went 5 days without the problem...nice while it lasted..
[Desire HD General] polystirenman:
oh well...back to zero...at least it is confirmed.mine is still ok.probably it's just a matter of time.

now question is, is it Google or HTC we need ask for update?i've seen on other forums people complaining about this even on nexus ONE after FROYO update.
[Desire HD General] Rixsta:
Hi, been meaning to catch up with you for a while, seems I opened a thread about this exact thing.

I also have seen the report about it happening on a nexus one, I have done as much research as I can and it seems that the /INIT is something to do with the Linux...I know that the Linux OS on PC's have the same /INIT process and the same process ID number....it maybe an android/google problem but I have a feeling its got something to do with Linux...

I doubt very much whether its a problem with the DHD as you said, its been known to happen on other phones.

The main thing I want to find out is why its only happening on a select few DHD phones, whats the difference?? I guess if I had that answer we maybe closer to a solution...

As Ive said in my thread Im still waiting for the lag issue to come back, its been fine since yesterday morning, I want to do a video for youtube and the guys here and see if I can get it out in the open a bit more, Im also going to run a acatlog to see if I can see anything..

I'd be very interested to see if your lag comes back or not, maybe you somehow bump started the phone with the hard rest ect...and your problem has gone, maybe it will come back...I just no I had no such luck... keep us posted.

I see a couple of options for people..

1 To find a fix or get an update to fix it

2 Return it under warranty and get a replacment and hope that one is ok.

3. Get a refund and sit it out until the new ones come out.

4. A permanent fix, lose your temper and stamp on the dam thing haha..

EDIT - I read that the guy with the Nexus one flashed back to 2.1 and the problem never came back....flashed to 2.2 again and the problem returned...meaning it is an android problem....Im really not sure :(
[Desire HD General] polystirenman:
hi

glad to see i am not the only one trying to find out more about this.although my DHD is still all right i did not stop researching.actually i installed UBUNBTU on my netbook and trying to get into Linux.have to say it's still like learning Chinese after so many years on Windows and Windows Mobile :-D .i was cooking my own Roms for WM and i think that it wont do me any harm to learn more about this.

anyway.now when it is confirmed that HARD RESET is not a solution i think that this is somehow related to some process in android core.when my problem reappears i am also planing to make some logs of system processes etc...we need to gather as much info as we can and share them here.together we can crack it ;-D

ps:i was reading post here on XDA about new OTA#2 from HTC.did anyone gave that a go already?
[Desire HD General] Zaza le Nounours:
I also read a few French forums, and it seems that there is two or maybe three persons who are facing this problem - including me. I really don't understand why only a few phones are concerned. If it really is Android 2.2 related, everybody should be concerned.

Also, I installed the last OTA update yesterday, and of course it didn't fix anything.
[Desire HD General] deekod:
Same problems here, here's hoping gingerbread sorts it.

Dissapointed with Htc :-(
[Desire HD General] Rixsta:
No the update doesn't fix it, I had the problem about 10 min after I installed the update, namely 1.32.405.6
[Desire HD General] Zaza le Nounours:
Well, I really hope that we don't have to wait for Gingerbread to solve this. There is no release date for Gingerbread right now, and when it'll be released, we'll still have to wait a few months that HTC creates a new ROM for the Desire HD.

And as I told before, I had no issue with my Desire running FroYo, so I still don't believe that it's a global 2.2 related issue.
[Desire HD General] polystirenman:
just loaded new updade.OSmonitor is on my taskbar.as soon as this issue reappears i'll start doing some tests.
[Desire HD General] Rixsta:
RyanZA popped into my thread which was nice of him, lets hope some light can be shed on this...you may want to do a logcat log too...

Im sure if we all work together we can find a fix or a work around...its like been back with the SGS all over again...the joys of smartphones haha
[Desire HD General] polystirenman:
Yeah.that was why I sold SGS.that incredible lag was driving me mad.

Anyway.

Strange thing happened this morning.I woke up and had a look at the phone.OSmonitor was showing 100% CPU again.checked it and yes it was that bloody /init process.

So I went to my apps to open logcat but before I managed to open it CPU dropped down to almost nothing.checked again and /init process was showing zero activity.and it never came back since.I wasn't even able to make log.

I don't know what "killed" it,but something surely did.

Before I always had to reset the phone to make it go away.do you think HTC attempted to fix it in the last update?I have to try to find .zip package of this update and check what inside.
[Desire HD General] Rixsta:
I doubt wheter it was to do with the update..maybe who knows...your the first person to say it corrected itself though...very interesting...im waiting for some logs to give to the Dev...interesting news...i wonder if it will come back again today..im still waiting for mine to strike.
[Desire HD General] polystirenman:
If it comes back will certainly let you know and will add some logs.if ill manage to get some this time.

Bit off this topic but today the phone lost signal and it couldn't connect back until I did soft reset.I hope this isn't related to the new radio in the new OTA.it has never happened before and this was in are with excellent coverage.
[Desire HD General] foxilliams:
I did a hard reset, no OTA install, disable fast boot !

The problem is back, this does not come from the OTA
[Desire HD General] Zaza le Nounours:
I just had the same issue a few minutes ago. The phone lost the signal, I had to reboot it, and even after that, it took some time to get back a signal. Man, this phone starts to really annoy me.
[Desire HD General] Zman_DHD:
Today I installed the latest OTA update...I had high hopes,even though I read on here that it didn't fix the problem. It didn't fix the problem. :(

I installed logcat and set it to save logs every 15 minutes. It only took an hour for /init to play up again, but at least I now have logs for the last hour of operation. The downside is that I don't know exactly when /init went wild, so not sure where to even start with the logs.

Does anyone want me to upload the logs here? I assume the logs contain no personal information, right?

Also, does anyone know of a log app for the CPU? If I could log the CPU load, I could know exactly when CPU whet to 100% - and find the corresponding timestamped logs on logcat. I tried using Tasker, but there doesn't seem to be a variable for CPU load.

EDIT: Ugh, it happened again. This time logcat wasn't running, but I switched it on and saved another log. I had a look through the logs and (apart from anything else) they contain my exact lat/long coordinates...so i'll have to strip some private data out of the logs before I upload.
[Desire HD General] Rixsta:
Although it doesn't log the cpu load it is handy to find out about the init process.

Download watchtower and when it lags start it up and click processes, you should see the /INIT at the top....around 70 - 90%.

Im very interested in you Alogcat files...if you could be so kind as to post them in my thread ..

http://xdaforums.com/showthread.php?t=826507

I will then pass them onto the Dev who I have contacted and has been giving me some advice on this... been a Dev and already making a lagfix for the SGS he may see something which could help us..

Thanks Rick
[Desire HD General] Zman_DHD:
Ok, I'll post those logs as soon as I remove the GPS data (later tonight).

Havn't tried watchtower, but I'm using OSMonitor...which also shows the processes and their contribution to the load.
[Desire HD General] Rixsta:
Thanks Zman..
[Desire HD General] deekod:
Still having problems after youtube ota :-(
[Desire HD General] Rixsta:
Really what kind of problems...mine as been fine since the OTA
[Desire HD General] quarintus:
It is not a global problem, but a froyo problem. Other phones have it too, that should confirm it.

The weird thing is, no one knows wat actually triggers the process to use 100% CPU. It seems so random.
[Desire HD General] Rixsta:
I think he was talking about youtube, not the actual lag problem unless you were replying to something else and Ive missed it..

But yes your right in what you say.
[Desire HD General] BigMango:
The DHD comes with youtube 1.X. From the Market you can get version 2. Once installed it will replace the old version.

I have no problem with version 2.

It's also a good idea to get the newer versions of the other tools, like Adobe Reader 9.0.2 (DHD comes with 9.0.1), etc.... The updates usually include security and bug fixes.
[Desire HD General] Zman_DHD:
Does AppBrain/Android market not do/detect all the updates automatically?
[Desire HD General] BigMango:
On my phone, Google Maps was updated automatically to version 4.6; but other tools like youtube and Adobe reader did not.

So some of the default apps HTC has included don't seem to update (but I'm sure once the Market versions are installed they'll update properly in the future).
[Desire HD General] Zman_DHD:
Ugh, sorry for the delay with the logs. I was going through them and trying to remove GPS data, but there is WAY too much of it to remove manually. Can't do a Find/Replace either because the lat/long keep changing.

I mentioned this to someone else, and they said I shouldn't post logs publicly. This person actually gave a talk at Defcon about Android log leakage, and how the logs contain a lot of personal data...such as GPS,SMS content, Web session content etc.

rixsta - Did you say you were talking to an official HTC dev about this issue? I'd probably be ok with sending a personal message to him with the logs, but I definitely do not want to post this stuff publicly on a forum...I hope you understand where I'm coming from.

I'll try to scan through the logs myself, though I'm no Android dev. expert. I do have plenty of non-android programming experience so I might be able to make some sense out of them.

I also contacted HTC support via their website, but I've yet to hear back from them.
[Desire HD General] Rixsta:
No its an HTC Dev, its RyanZA, the guy would did the Galaxy S lag fix, who one of the Dev's here and a really nice guy, I understand though if you dont want to...as some as mind lags I'll be sending him mine...so dont worry about it..

Thanks for getting back to me.
[Desire HD General] Zman_DHD:
Solved!

Just for anyone still following this thread for the /init bug...it seems to have been solved over at rixsta's thread.

Enable USB debugging to solve the issue. Simple :D
[Fascinate Android Development] Agenthex:
I'm trying to compile a kernel, but the result is more than double the size of most of the ones I see coming from jt1134, Dirrk, and others. I took a default config and stripped a bunch of x86-specific modules, but the result is still big, and I want to know if it will still fit.

If it will fit, and I flash it, and it doesn't boot, I assume I can just flash the backed up bml7 partition (which I extracted with redbend) using Clockworkmod. (Correct me if I'm wrong about flashing bml7 and Clockwork being different partitions.)
[Fascinate Android Development] namebrandon:
Did you remove .git from the ramdisk? I'm assuming you pulled one from github? I'd have to look but I don't think /bml7 is larger than ~ 8 or 9mb.
[Droid Incredible Themes and Apps] rom116:
Can someone port this to the incredible, I don't know if it would work http://xdaforums.com/showthread.php?t=820271
[Android Software Development] mzimmer74:
Hey all,

I'm a new Droid developer (but long time Java programmer) and have been playing around with writing some apps. I've managed to get my first app working really well but have hit a snag. The program, which lets me view recent PVP comics, works like this:

1. Download the RSS from PVP

2. Parse the RSS to pull out comic links

3. Show the most recent comic (download it if needed) and allow user to view previous comics

Everything works fine. However, there is one thing that I just can't seem to figure out how to stop. The download of the RSS and image files take place in threads. In order to get the RSS immediately on load I put my method call in the onCreate() method. This works great. However, every time I rotate the phone, it seems like everything resets itself and reloads the RSS again.

I tried using a global boolean variable "first" which gets set to false when I first load the RSS, but when the phone is rotated it goes back to true. I'm obviously missing something in terms of how applications work on the android, but have been unable to find any work-arounds.

Any suggestions for me? I'm at a loss.

Thanks for any help.

Matthew

PS. Here's the basic structure of the code:

public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// set up all the appropriate listeners and layout stuff

loadRSS(); // this is the method that I only want to call the first time
}

I tried the following with no luck:

private boolean first = true;
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// set up all the appropriate listeners and layout stuff

if (first)
{
first = false;
loadRSS(); // this is the method that I only want to call the first time
}
}
[Android Software Development] BHack:
onCreate() is fired everytime the activity is loaded. If you rotate the phone you are basically reloading the activity. Put a breakpoint on the onCreate() method and you should see it get called when you rotate.
[Android Software Development] mzimmer74:
Thanks, I had seen that with a breakpoint. Is there any solution or best practice to get around it? Downloading and parsing the RSS file is a fairly expensive process (a few seconds) and I'd rather not do it except when needed (I can't cache the RSS file like I do the images as it will change over time). However, I don't want to have to click a "get it now" button on starting the app but would rather the program know to do this the first time it loads and then not again. Is there anything that allows you to either store some value in a variable that isn't reset on the "onCreate()" method or some other method that the first call should be put in (e.g. "onStartup()"...completely made that name up).

Thanks,

Matthew
[Android Software Development] BHack:
I'm new to this as well, but this seems like something that you should use this Class for:

http://developer.android.com/reference/android/os/AsyncTask.html
[Android Software Development] Alerias:
I think you are not considering the Activity lifecycle. I don't see a problem to call LoadRSS() each time onCreate is called (probably onResume() is a better place), because LoadRSS() should spawn a thread to retrieve the RSS. If the Activity is destroyed by Android you want to keep the Thread handle to continue running the loading, you can do that saving it with onRetainNonConfigurationInstance() and restore the thread handle calling getLastNonConfigurationInstance() when the Activity is resumed, remember it could be another instance of the activity.

private Thread _rssThread;

public void OnCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
// set up all the appropriate listeners and layout stuff
LoadRSS();
}

private void LoadRSS() {

_rssThread = (Thread)getLastNonConfigurationInstance();

if (_rssThread == null) {
_rssThread = new Thread(... )
}

}

public Object onRetainNonConfigurationInstance() {
return _rssThread ;
}

Probably you want to do something similar with the actual RSS already loaded, and put some logic in the Thread to update the RSS instead to reload all.
[Android Software Development] Unconn:
I like the suggestion of basically caching the RSS and loading from there. the Activity should basically check if it has already downloaded the RSS and just 'reload' it locally instead of downloading it again.

Failing that, why don't you just force landscape mode only since this is a comic anyway?

Unconn
[Android Software Development] randr0id:
What you need to do is handle configuration changes within your activity.

First, update your activity tag in the AndroidManifest.xml like so:

<activity android:name=".MyActivity"
android:configChanges="keyboardHidden|orientation">
...
</activity>

That's all you need to do to prevent your activity from being recreated with each configuration change.

If you need to update something, such as reloading the layout for an orientation change, just override the onConfigurationChanged method like so:

@Override
public void onConfigurationChanged(Configuration newConfig) {
super.onConfigurationChanged(newConfig);
setContentView(R.layout.myactivity);
...
}
[Android Software Development] britoso:
this is correct
[Android Software Development] mzimmer74:
That worked perfectly! Thanks a lot for the help.
[Nexus One Q&A, Help & Troubleshooting] Wonderboy1:
ok, ive been having this problem for some time now.

whenever i try to install any app from the market, the "download" icon appears on my notification bar, but it isnt downloading anything, its just stuck. sometimes it works after i cancel and restart download a couple of times. in some cases, i just get "download unsuccessful"...other times it just disappears from the notification bar.

i already tried wiping market's data&cache through application manager.

also, ive been having this problem with various rom.

any idea?
[Nexus One Q&A, Help & Troubleshooting] eastcoastdude:
+1 on that. I had that problem today when I installed IR's kernel after latest CM nightly. I thought the problem was due to the IR kernel, so reverted back to CM nightly & kernel, but same problem again. So its not the kernel. Is the error at Google's end??
[Nexus One Q&A, Help & Troubleshooting] jimbobalu:
Maps was just updated so server is probably getting hammered.
[Nexus One Q&A, Help & Troubleshooting] Wonderboy1:
after a quick seatch ive stumbled upon many similar posts...could this really be a google problem?