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

[BUG] Markers don't show up within a loop + memory leak (from v2.0) #487

Open
moehmeni opened this issue Nov 28, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@moehmeni
Copy link

moehmeni commented Nov 28, 2024

Expected Behavior

Hi, I wanted to show multiple markers within a loop but it makes the screen black as soon as the window reaches the marker point. From earlier versoin (1.0.18) it doesn't have this problem
see also #461

Current Behaviour

makes the screen black as soon as the window reaches the marker point also prints that it has memory leak

debug logs:

[pywebview] Using Cocoa
DEBUG:pywebview:Using Cocoa
Bottle v0.13.1 server starting up (using ThreadedAdapter())...
Listening on http://127.0.0.1:54362/
Hit Ctrl-C to quit.

127.0.0.1 - - [28/Nov/2024 23:40:52] "GET /test.html HTTP/1.1" 200 610
127.0.0.1 - - [28/Nov/2024 23:40:52] "GET /styles.css HTTP/1.1" 200 4391
127.0.0.1 - - [28/Nov/2024 23:40:52] "GET /bundle.js HTTP/1.1" 200 48186
127.0.0.1 - - [28/Nov/2024 23:40:52] "GET /lightweight-charts.js HTTP/1.1" 200 160942
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/multiprocessing/resource_tracker.py:216: UserWarning: resource_tracker: There appear to be 14 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '

Reproducible Example

This works:

chart.marker(s.orders_history[-1].entry_time, text="Entry", color="blue")

but this does not which is exactly the same:

    for o in s.orders_history[-1:]:
        chart.marker(time=o.entry_time, text=o.enter_reason, color="blue")

Environment

- OS: mac 14.7
- Library: 2 and 2.1
@moehmeni moehmeni added the bug Something isn't working label Nov 28, 2024
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

1 participant