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

ResourceWarning: Enable tracemalloc to get the object allocation traceback #1413

Open
josephernest opened this issue Mar 9, 2023 · 1 comment

Comments

@josephernest
Copy link

Hi there,

Do you know what could be the reason for this message:

D:\bottle.py:2269: ResourceWarning: unclosed file <_io.BufferedReader name='D:\\test.webm'>
  func()
ResourceWarning: Enable tracemalloc to get the object allocation traceback
wsgiref\handlers.py:183: ResourceWarning: unclosed file <_io.BufferedReader name='D:\\test.webm'>
ResourceWarning: Enable tracemalloc to get the object allocation traceback

when I serve a HTML page containing

?

The video is loading successfully, but I'd like to remove this warning message if possible.

Thanks!

All the best

@FriedrichFroebel
Copy link

Have you tried enable memory tracing through tracemalloc as proposed in the warning message? Could you provide some minimal example code reproducing this issue?

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