Wrong cast in GfxContext
Open
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 2.1k
- Forks
- 129
- Avg merge
- 19h 7m
- Merged PRs (30d)
- 48
Description
Likely happening when grabbing a TextureOutlet through a TextureSource
/Users/jcelerier/ossia/score/src/plugins/score-plugin-gfx/Gfx/GfxContext.cpp:348:19: runtime error: downcast of address 0x6170003b8400 which does not point to an object of type 'score::gfx::OutputNode'
0x6170003b8400: note: object is of type 'score::gfx::ISFNode'
00 00 00 00 b0 a6 70 3a 01 00 00 00 c0 eb 7e 00 c0 60 00 00 a0 b8 51 00 60 60 00 00 c8 b8 51 00
^~~~~~~~~~~~~~~~~~~~~~~
vptr for 'score::gfx::ISFNode'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/plugins/score-plugin-gfx/Gfx/GfxContext.cpp:348 and inspect how a TextureOutlet is obtained through a TextureSource. Reproduce the failure with the reported runtime diagnostic, then trace the involved Gfx node types. Done means the TextureSource path no longer performs an invalid downcast when the object is an ISFNode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100