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

Crazy amount of CPU usage when idle #2123

Open
v3i1y opened this issue Dec 12, 2018 · 12 comments
Open

Crazy amount of CPU usage when idle #2123

v3i1y opened this issue Dec 12, 2018 · 12 comments

Comments

@v3i1y
Copy link

v3i1y commented Dec 12, 2018

System and IINA version:

  • macOS
    10.14.1
  • IINA
    0.0.15

Expected behavior:
Using very low CPU when paused or not playing.

Actual behavior:
Using 300% CPU and become unresponsive.

Steps to reproduce:
Play some videos or audios and pause. (I use IINA to play music and audios a lot, which might relate to the issue)

Sample
I see you requested for Sample Process in an old thread so I did that as well.
Sample of IINA.txt

@inflation
Copy link
Contributor

Can you update to latest version and try again?

@v3i1y
Copy link
Author

v3i1y commented Dec 12, 2018

Isn't that already the latest version?

@inflation
Copy link
Contributor

Sorry, I mean beta version, currently 1.0.0-rc.

@v3i1y
Copy link
Author

v3i1y commented Dec 12, 2018

Ok, I might need some time to see if it happens again. Thanks!

@lhc70000
Copy link
Member

Could you provide the log files? You can enable logging in Preferences - Advanced, then restart IINA and reproduce this issue.

Please also try if 1.0.0-rc has this problem since a lot of changes have been made since 0.0.15.

@v3i1y
Copy link
Author

v3i1y commented Dec 15, 2018

I am using 1.0.0-rc

@v3i1y v3i1y closed this as completed Dec 15, 2018
@v3i1y v3i1y reopened this Dec 15, 2018
@v3i1y
Copy link
Author

v3i1y commented Dec 15, 2018

Sorry, I hit that by accident. I cannot reproduce it right now, I will post the log when it happens again.

@v3i1y
Copy link
Author

v3i1y commented Dec 22, 2018

Were you able to resolve the issue?

@xpader
Copy link

xpader commented Apr 11, 2019

It's happend on my Macbook Air too, everytime when paly a video finished and IINA in idle state, THE IINA PROCESS use up 90% cpu, EVERYTIME.
I have update IINA to newest version 1.0.3, the issue still exists.

@sensibleish
Copy link

I am seeing this issue under Mac OS 10.15.4 and IINA 1.0.6 build 113. You get a maxed-out 100%-CPU thread. Steps to reproduce:

  1. Launch IINA.
  2. Open a video file.
  3. Close the file.
  4. Check Activity Monitor. IINA will be using 100% of a CPU.

I don't know if it'll help, but I'm attaching a sample of the IINA process in this state.
Sample of IINA.txt

@lhc70000
Copy link
Member

@sensibleish

It stuck when trying to match local subtitles. While I think this issue has been resolved by #2531, it seems that there still remains some edge cases.

Would you mind sending me the log (you can enable logging in Preferences - Advanced)? Please note that the log might contain the filenames that IINA tried to match.

@sensibleish
Copy link

@lhc70000 I think I have narrowed the steps to reproduce. This seems to happen only when I open video files that are immediate children of a folder with a lot of items in it. It happens to be on a USB-connected spinning hard disk. The folder /Volumes/Garage/Media has about 140 children (mix of files and folders), but if you go through all subfolders there are 3600 files. When I open and close /Volumes/Garage/Media/movie.mp4, I see the high-CPU problem. The sub-folder /Volumes/Garage/Media/Show only has a few items. If I open and close a file from there, the problem does not occur. So it does make me suspect that there's some kind of inefficient file system scan happening.

Logs attached.
high-cpu-mpv.log
high-cpu-iina.log
normal-cpu-mpv.log
normal-cpu-iina.log

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

No branches or pull requests

6 participants