"Transition not found" unhandled exception
- Dominant language
- JavaScript
- Stars
- 9.3k
- Forks
- 1.4k
- Avg merge
- 6d 16h
- Merged PRs (30d)
- 1
Description
The latest version on the c3 website has an on-focus unhandled exception inside of d3. C3 version 0.6.14 also has it which is how I found it (using it locally).
It's easy to reproduce using Safari, Chrome, and Firefox (on MacOSX), just enable Break on Exceptions (unhandled) and then click anywhere on the chart to get a "transition not found" error thrown.
The callstack looks like this:
- wr (d3-5.8.2.min-c5268e33.js#2)
- transition (d3-5.8.2.min-c5268e33.js#2)
- i (c3.min-7f8faa7d.js#3)
- i (c3.min-7f8faa7d.js#3)
The code and the exception in D3 is here:
function wr(t,n) {
var e=t.__transition;
if(!e||!(e=e[n]))
throw new Error("transition not found");
return e
}
't' is a path if that helps:
"
Contributor guide
Research direction
Reproduce the issue in Safari, Chrome, or Firefox with Break on Exceptions enabled, then follow the call stack through d3-5.8.2.min-c5268e33.js and c3.min-7f8faa7d.js. Trace the chart click handling around the path element and verify that clicking the chart no longer throws “transition not found”.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- d3, javascript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100