Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Over 100% CPU usage #94

Open
kjarko opened this issue Apr 24, 2017 · 1 comment
Open

Over 100% CPU usage #94

kjarko opened this issue Apr 24, 2017 · 1 comment

Comments

@kjarko
Copy link

kjarko commented Apr 24, 2017

Hi,
Steps to reproduce:

  1. Launch upnpxdemo application (CPU usage 0%)
  2. Connect to network with available upnp devices (CPU usage 0%)
  3. Lock device (CPU usage 0%)
  4. Unlock device (CPU usage over 100%)

image

Anyone faced with similar issue? My device (iPhone 7) become very hot

@xaphod
Copy link
Contributor

xaphod commented Apr 5, 2019

I am seeing this too, without locking my device - just start the demo app and wait. The 100% CPU usage ends after 180 seconds or so. This is XCode 10.2, simulator iPad on iOS 12.2. Also happens on my iPhone Xs with iOS 12.2

@fkuehne This is happening in socketserver.cpp in SocketServer::ReadLoop(), because the loop is reading 19 bytes from the socket a million or more times.

That this happens isn't the end of the world, but why is it so long (180 seconds) ?
Can you tell me more about this or how to fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants