News for hackers. Stuff that matters.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by userbinator on Sunday September 27, 2020 @06:13PM (#24610555)
I wonder how much software issues like this cause people to unnecessarily throw away perfectly functional hardware and buy new, given that ChromeOS is heavily targeted towards the non-technical and non-computer-literate. I've personally fixed a few systems that I got for free because they were "broken", by simply reinstalling the OS.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by cj on Sunday September 27, 2020 @06:32PM (#24610714)
Not sure why you’re downvoted.

I helped a teacher last week reinstall her OS. She was about to buy a new $1300 gaming PC (not reimbursed by the school district) because she kept getting kicked out of her video calls with her students and apps randomly crashed.

And now it’s good as new, no need for a new computer.

I think us tech people sometimes lose sight of the amount of crapware that non-techies accumulate / download / install over a period of years.

Re:New Google ChromeOS updates cause 100% CPU usage, heating... by p1necone on Sunday September 27, 2020 @08:55PM (#24611706)
CPU performance improvements were basically stagnant for so long that basically any computer from about 2010 onwards could be made an adequate office PC by installing a fresh copy of windows and swapping in an SSD. Now with AMD back in the game, and Intel being forced to improve I wonder if software bloat will catch up with the improved performance and make old hardware obsolete faster - hopefully not.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by dvdbloc on Sunday September 27, 2020 @06:49PM (#24610821)
And just even how hard it for non techies to download and install a simple utility/AV application/whatever when they are on sites that have ads with fake download buttons...
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by Scapeghost on Monday September 28, 2020 @05:39AM (#24614796)
> issues like this cause people to unnecessarily throw away perfectly functional hardware

> ChromeOS is targeted towards the non-technical and non-computer-literate.

you just answered why :)

Re:New Google ChromeOS updates cause 100% CPU usage, heating... by vilifiedtwin on Sunday September 27, 2020 @07:11PM (#24610990)
I think these kind of things should be taught in schools from young age, so that people would have some understanding why some things happen they way they happen (for example why could laptop that has worked perfectly fine become barely usable after few months) and strategies of critical thinking. I am pretty sure there would be at least one person in the room when such decisions happen saying that, but there will be another person saying: What about the economy? Some people unfortunately still believe in broken window parable - that if people could fix their own laptops, then economy would collapse, but they don't think how much people could get progress with their goals if they didn't have to spend money on a new laptop every time it slows down.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by danielscrubs on Monday September 28, 2020 @02:33AM (#24613593)
Or we as a profession get our shit together? Apply formal methods (yes, yes not a silver bullet), and make software longer lasting instead of pushing our debt onto consumers?
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by pjmlp on Monday September 28, 2020 @03:51AM (#24614089)
I look forward to some kind of liability forcing companies to actually care.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by bobthepanda on Sunday September 27, 2020 @09:13PM (#24611862)
The problem with this is that kids have limited attention span and there are only so many hours in a school day and so many hours of homework.

In recent decades (at least in the US) we have already gutted civics and home economics completely, and effectively gutted arts and music programs, in the pursuit of STEM and looking good on PISA rankings. What else are we going to eliminate for this new requirement?

Re:New Google ChromeOS updates cause 100% CPU usage, heating... by userbinator on Sunday September 27, 2020 @10:14PM (#24612288)
I would think basic computer literacy should be included in "the pursuit of STEM" itself, but instead it turned into having masses of students who have next to no interest in, and can barely turn on a computer, being forced into "learn to code" classes...
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by bobthepanda on Monday September 28, 2020 @05:13AM (#24614615)
Elementary school for me in the ‘00s had a computer lab whose primary purpose was to teach how to use Word.

It’s also unclear given the general sorry state of education salaries in the US who we’d be getting to teach these classes. Most adults aren’t that computer literate either, and I doubt a high-falutin’ FAANG employee is about to work in an urban school with lead paint and asbestos for a ~50k salary, some of which you have to use to pay for chalk, tissues, paper towels and other basics of the classroom.

Re:New Google ChromeOS updates cause 100% CPU usage, heating... by birdyrooster on Sunday September 27, 2020 @10:38PM (#24612414)
I used to get worried that Gen Z was coming for my job until I realized that just like I didn't learn anything that excited me for my career at school, they probably won't either. It's a crap shoot if you get the right skills at the right time when you are still excitable about otherwise "overly-complicated" things.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by tyingq on Sunday September 27, 2020 @06:00PM (#24610471)
From the bug report[1] "E KernelUidCpuFreqTimeReader: Failed to read /proc/uid_time_in_state: java.io.FileNotFoundException:"

So, sort of because of missing files, but more about ignoring an exception and running on into code that's probably looping.

[1] https://bugs.chromium.org/p/chromium/issues/detail?id=113245...

Re:New Google ChromeOS updates cause 100% CPU usage, heating... by jeffbee on Sunday September 27, 2020 @07:17PM (#24611029)
It seems the class in question exists in Android 8 and not but not 10 or 11.

https://android.googlesource.com/platform/frameworks/base/+/...

Re:New Google ChromeOS updates cause 100% CPU usage, heating... by innagadadavida on Sunday September 27, 2020 @10:19PM (#24612306)
Should this type of problem be caught reliably during QA or were there any rare conditions that triggered it?
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by tibbydudeza on Sunday September 27, 2020 @06:21PM (#24610627)
Odd as I don't find such a proc interface in my Ubuntu WSL. It seems to be Android specific.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by cesarb on Sunday September 27, 2020 @07:32PM (#24611130)
I see no reference to that file in a checkout of the upstream Linux kernel I had here, and I never saw that file in /proc in any Linux system I've played with, but looking at my phone (with Termux) I do see that file. I agree, it seems to be Android specific.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by tyingq on Sunday September 27, 2020 @07:46PM (#24611222)
It's filed as a ChromeOS bug...Chromebooks and family.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by snazz on Sunday September 27, 2020 @08:20PM (#24611506)
So if it doesn't exist in regular Linux or ChromeOS, then it must be an Android feature that was accidentally enabled in non-Android builds.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by makecheck on Sunday September 27, 2020 @06:29PM (#24610691)
It’s actually kind of amazing just how small of a problem can cause a high-CPU bug. For example, decrementing an unsigned integer to get to a gazillion when you thought you were near zero. And with 64-bit variables being more common, the wrap-around value is a hell of a lot bigger so you could tee up a ton of extra CPU work from something like this.

I like to add sanity checks to loops that force them to break after some “clearly unreasonable” amount, and other such guards, just in case.

Re:New Google ChromeOS updates cause 100% CPU usage, heating... by SCHiM on Sunday September 27, 2020 @07:03PM (#24610927)
That wrap around is very often even a security vulnerability.

The common usage pattern in low level C is:

  if (attacker_size == 0)
    return SizeError;

  char* string_buffer = malloc(attacker_size+1); // oops, string_buffer could be 0 sized.
  memcpy(string_buffer, attacker_buffer, attacker_size);
This caused huge security issues, 2 separate times. The first time was when attackers started understanding integer overflow attacks. The second time was when codebases switched from 32 to 64 bit. The last one is more tricky. But I have seen code 'ported' (that I think looked) like this:

  uint64_t attacker_size = ...;
  if ( attacker_size == 0 || attacker_size == UINT64_MAX)
    return SizeError;
  uint32_t string_size = ((uint32_t)attacker_size+1)*2; // Oops, overflow on 32 bit register, string_size = 0;
  // etc
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by type0 on Monday September 28, 2020 @05:55AM (#24614909)
> decrementing an unsigned integer to get to a gazillion

only until you reach googol, then it should be fine /s

Re:New Google ChromeOS updates cause 100% CPU usage, heating... by jeffbee on Sunday September 27, 2020 @06:56PM (#24610881)
Gah, I've been wondering what's wrong with my Pixelbook Go all day. It sucks that they identified this issue by Friday but didn't stop the release.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by nshm on Sunday September 27, 2020 @08:05PM (#24611374)
Same in chrome on macbook, suddenly it starts to eat 200% cpu and only chrome restart helps. Battery is killed already. Did anyone notice that?
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by sunstone on Monday September 28, 2020 @10:11AM (#24616772)
My chromeOS updates recently have been sketchy. It's almost like they're pushing daily updates or something. In particular the sleep/wake process has gone completely bonkers, it's like it completely restarts on every cycle. I'm hoping for stability to return sometime soon though it's been a few weeks already.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by somerandomboi on Sunday September 27, 2020 @07:16PM (#24611023)
Well I use a Debian virtual machine on my Acer Chromebook, I completely avoided this by not updating Chrome OS. Still, it appears as though this could have been solved with a C program in Crosh? Actually a comment referenced this, nevermind.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by A_No_Name_Mouse on Monday September 28, 2020 @03:59PM (#24620671)
Just stop holding the spacebar or disable spacebar heating :-)

https://xkcd.com/1172/

Re:New Google ChromeOS updates cause 100% CPU usage, heating... by Animats on Sunday September 27, 2020 @06:07PM (#24610519)
...Google Play 'com.android.vending:download_service' suddenly utilizing 95-100% of the CPU for an extended period.

Of course, Google gave their vending product the privilege of running in background. Because it's important.

Re:New Google ChromeOS updates cause 100% CPU usage, heating... by tehlike on Sunday September 27, 2020 @06:22PM (#24610637)
play store should probably run in the background as part of updating apps. What's _really_ wrong about it?
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by ocdtrekkie on Sunday September 27, 2020 @07:33PM (#24611135)
Animats is pointing out that Google has interfered with many apps from running in the background for performance reasons. But Google always special-cases their own apps and gives them extreme privileges on your device, because Google can do no wrong.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by jeffbee on Sunday September 27, 2020 @07:42PM (#24611193)
It's still a stupid take even after you restated it. The system has background processes. If it did not, nothing would work.
Re:New Google ChromeOS updates cause 100% CPU usage, heating... by Animats on Sunday September 27, 2020 @08:31PM (#24611571)
Android (unlike IOS?) seems to have launch-on-push capabilities.[1] That's how updating presumably should be handled. The updater doesn't need to be alive in background when idle.

[1] https://stackoverflow.com/questions/50368716/how-to-automati...