ossia / ossia/score

Wrong cast in GfxContext

Open
#1,981 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.