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

Many error messages appear in the CMD window #9

Closed
LRF520 opened this issue Sep 6, 2022 · 21 comments
Closed

Many error messages appear in the CMD window #9

LRF520 opened this issue Sep 6, 2022 · 21 comments
Labels
bug Something isn't working

Comments

@LRF520
Copy link

LRF520 commented Sep 6, 2022

I suddenly have a few questions to ask. Thank you:

(1) Many error messages appear in the CMD window;

(2) If the system has multiple GPUs, how is the GPU usage calculated?

(3) Which CPUs and GPUs does precord support for windows? (such as Intel, AMD and NVIDIA)

(4) Which CPUs and GPUs does precord support for MacOS systems? (such as Intel, AMD, NVIDIA, M1)

20220906_170505

thread '' panicked at 'called Option::unwrap() on a None value', C:\Users\runneradmin.cargo\registry\src\github.com-1ecc6299db9ec823\ferrisetw-0.1.1\src\schema.rs:110:54
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread '' panicked at 'called Option::unwrap() on a None value', C:\Users\runneradmin.cargo\registry\src\github.com-1ecc6299db9ec823\ferrisetw-0.1.1\src\schema.rs:110:54thread '' panicked at 'called Option::unwrap() on a None value', C:\Users\runneradmin.cargo\registry\src\github.com-1ecc6299db9ec823\ferrisetw-0.1.1\src\schema.rs:110:54
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread '' panicked at 'called Option::unwrap() on a None value', C:\Users\runneradmin.cargo\registry\src\github.com-1ecc6299db9ec823\ferrisetw-0.1.1\src\schema.rs:110:54
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread '' panicked at 'called Option::unwrap() on a None value', C:\Users\runneradmin.cargo\registry\src\github.com-1ecc6299db9ec823\ferrisetw-0.1.1\src\schema.rs:110:54
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@xiaopengli89
Copy link
Owner

  1. Recording fps or net needs to be run as administrator.
  2. precord will take the value of the gpu with the highest usage, which is consistent with the task manager of windows, e.g. process A uses 10% of GPU0, 20% of GPU1, and the final value is 20%
  3. All cpus and gpus
  4. All cpus and gpus

@LRF520
Copy link
Author

LRF520 commented Sep 7, 2022

  1. Recording fps or net needs to be run as administrator.
  2. precord will take the value of the gpu with the highest usage, which is consistent with the task manager of windows, e.g. process A uses 10% of GPU0, 20% of GPU1, and the final value is 20%
  3. All cpus and gpus
  4. All cpus and gpus
  1. I had recorded fps or net as administrator,but also many error messages appear in the CMD window,i think the precord of windows is not very stable and may need to be optimized.
  2. I think it is necessary to list the usage data of each GPU separately, because each GPU has its own value. Complex scenarios need to refer to the usage of each GPU. Moreover, each GPU has its own independent memory data, which is a unique feature of GPU and is obviously different from CPU. It is also important to add the monitoring function of GPU memory data, because GPU can also have fatal problems of memory overflow.

@xiaopengli89
Copy link
Owner

I had recorded fps or net as administrator,but also many error messages appear in the CMD window,i think the precord of windows is not very stable and may need to be optimized.

Please provide your operating system version and operating procedure, I will try to reproduce the problem.

I think it is necessary to list the usage data of each GPU separately, because each GPU has its own value. Complex scenarios need to refer to the usage of each GPU. Moreover, each GPU has its own independent memory data, which is a unique feature of GPU and is obviously different from CPU. It is also important to add the monitoring function of GPU memory data, because GPU can also have fatal problems of memory overflow.

I understand what you mean, but this is not the goal of precord, you need more professional analysis tools.

@LRF520
Copy link
Author

LRF520 commented Sep 7, 2022

I had recorded fps or net as administrator,but also many error messages appear in the CMD window,i think the precord of windows is not very stable and may need to be optimized.

Please provide your operating system version and operating procedure, I will try to reproduce the problem.

I think it is necessary to list the usage data of each GPU separately, because each GPU has its own value. Complex scenarios need to refer to the usage of each GPU. Moreover, each GPU has its own independent memory data, which is a unique feature of GPU and is obviously different from CPU. It is also important to add the monitoring function of GPU memory data, because GPU can also have fatal problems of memory overflow.

I understand what you mean, but this is not the goal of precord, you need more professional analysis tools.

This problem often occurs when I execute Python commands in the CMD window and run the commands for a long time. However, I have tried two win10 systems, and this error will occur, so I think it may not have much to do with the win10 version.
This error does not appear on MacOS.

20220907_140512

20220907_140550

image

@xiaopengli89
Copy link
Owner

The problem is caused by upstream dependencies.

@xiaopengli89 xiaopengli89 added the bug Something isn't working label Sep 8, 2022
@xiaopengli89
Copy link
Owner

Please try version v0.5.12-etw-fix~

@LRF520
Copy link
Author

LRF520 commented Sep 8, 2022

Please try version v0.5.12-etw-fix~

Still have to work hard~~~

image

image

thread 'main' panicked at 'No such process(288)', src\types.rs:16:14
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at 'No such process(18784)', src\types.rs:16:14
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread 'main' panicked at 'No such process(15572)', src\types.rs:16:14
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
thread '' panicked at 'called Option::unwrap() on a None value', C:\Users\runneradmin.cargo\registry\src\github.com-1ecc6299db9ec823\ferrisetw-0.1.1\src\schema.rs:110:54

@xiaopengli89
Copy link
Owner

How did you run precord, from the command line or python?

@LRF520
Copy link
Author

LRF520 commented Sep 8, 2022

How did you run precord, from the command line or python?

Run python file on cmd window for a long time:

20220907_140512

20220907_140550

@xiaopengli89
Copy link
Owner

I will try to run this script next week, I don't have windows at the moment, thanks for your feedback~ 👍

@LRF520
Copy link
Author

LRF520 commented Sep 8, 2022

I will try to run this script next week, I don't have windows at the moment, thanks for your feedback~ 👍

It is easier to use "--name - Name of processes" to reproduce this problem. I think it is caused by the appearance or disappearance of the temporary process PID in the process name.

@xiaopengli89
Copy link
Owner

Please try version v0.6.0, I executed your script for 20 minutes without exception.

@LRF520
Copy link
Author

LRF520 commented Sep 13, 2022

Please try version v0.6.0, I executed your script for 20 minutes without exception.

I have used version 0.6.0~~~

This is what I did:

Run the python script in the CMD window, monitor a browser name repeatedly, and then I keep opening many browser pages, and then I keep closing all browser pages. I do it for so many times,this error will occur !

image

image

image

image

import os

while True:
print(os.popen(r"C:\Users\EDZ\Desktop\Precord\precord.exe --name 360chrome.exe -c fps -n 1").read())

@xiaopengli89
Copy link
Owner

When you end a recording, you need to sleep for a while and let the operating system recycle the counter.

@xiaopengli89
Copy link
Owner

Maybe we can solve this by creating a new random counter each time, but I'm not sure if that's the right thing to do.

@xiaopengli89
Copy link
Owner

Here is my script:

import os

print(os.popen(r".\precord.exe --name chrome -c fps --time 20m").read())

@LRF520
Copy link
Author

LRF520 commented Sep 13, 2022

Here is my script:

import os

print(os.popen(r".\precord.exe --name chrome -c fps --time 20m").read())

According to long-term observation, in fact, I think this error will not affect real data collection. It may only be caused by precord's exception handling mechanism, but ordinary people can't understand this error prompt.

@xiaopengli89
Copy link
Owner

According to long-term observation, in fact, I think this error will not affect real data collection. It may only be caused by precord's exception handling mechanism, but ordinary people can't understand this error prompt.

We can't handle this exception, it's caused by n4r1b/ferrisetw#26.

@LRF520
Copy link
Author

LRF520 commented Sep 14, 2022

According to long-term observation, in fact, I think this error will not affect real data collection. It may only be caused by precord's exception handling mechanism, but ordinary people can't understand this error prompt.

We can't handle this exception, it's caused by n4r1b/ferrisetw#26.

By this time, I can no longer evaluate the impact of this error. I think if it does not affect the continuous collection of data, we do not need to pay too much attention to it for the time being.

@xiaopengli89
Copy link
Owner

This issue should be fixed by 2b85f3d.

@xiaopengli89
Copy link
Owner

Fixed by v0.7.4.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants