bottle icon indicating copy to clipboard operation
bottle copied to clipboard

ResourceWarning: Enable tracemalloc to get the object allocation traceback

Open josephernest opened this issue 2 years ago • 1 comments

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

josephernest avatar Mar 09 '23 13:03 josephernest

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

FriedrichFroebel avatar Aug 12 '23 18:08 FriedrichFroebel