Comments (6)
Thanks for reporting. I'll investigate.
from asciinema-player.
@daetherius You can re-enable loop and it should be fine now.
from asciinema-player.
@sickill - sorry to bug you, just curious - how'd you go about diagnosing+debugging this issue? i'm a rookie cljs dev and wouldn't know where to start if one of my apps had an issue like this. is there a particular portion of the chrome developer tools that was useful for you here, or some sort of blog post where you learned about how to debug js memory issues, etc? thanks a ton!
from asciinema-player.
@sickill Thank you very much!
from asciinema-player.
@jrheard sure! So, I opened Chrome's "task manager", loaded asciicast page with loop on and observed the growing memory for this tab. Then I stopped playback and noticed that memory is no longer growing but the CPU usage is ~60% for this tab. So I went to dev tools, and created CPU usage profile (just went to Profiles and hit "Start" there). It showed me a list of functions that were observed to be running by profiler. I chose the one with the highest % next to it. It was from core.async so I kept expanding the call tree and at about 4th or 5th level, after getting through all core.async/clojure.core calls I got to a function from my namespace. The line number pointed me to a line where I start (go ...)
block. Then I just analyzed this function and few others that call it and realized that I used core.async' sliding-buffer (I had a reason for that), which is non-blocking buffer, meaning that it's not enough to stop reading from this channel to stop (block) the producer (which in my case was still running even after the playback was stopped).
from asciinema-player.
Thanks a ton, that's super helpful information to have for when an issue like this inevitably bites me in my own projects :)
from asciinema-player.
Related Issues (20)
- Let asciinema user's code get feeded data HOT 5
- Tmux pane disappears when opening nvim in its neighboring pane HOT 4
- Working example of getting source from element? HOT 5
- Player does not show in dropdown in Firefox HOT 7
- TypeError: Cannot read properties of null (reading 'firstChild')
- view operation records in real-time
- Wrapping failure under special conditions
- UI will not show up when pressing hotkeys HOT 3
- why does it not render sixel? HOT 1
- v3 player is harder to style than v2 HOT 8
- UI width not correctly computed HOT 3
- Cannot read properties of null (reading 'init') HOT 1
- theme settings seems to be ignored HOT 4
- sixel support
- Artifacting on asciinema.org - looks good in CLI player HOT 2
- Feature: Text to speech HOT 4
- FYI, hit unreachable!() in webassembly player HOT 3
- Player width sizing incorrect on Safari/WebKit browsers HOT 7
- Failed to import `asciinema-player` (missing `"type": "module"`?) HOT 1
- Export asciinema-player.min.js
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asciinema-player.