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

instance field array crashes #60

Open
phr34k opened this issue Oct 20, 2023 · 2 comments
Open

instance field array crashes #60

phr34k opened this issue Oct 20, 2023 · 2 comments
Labels

Comments

@phr34k
Copy link

phr34k commented Oct 20, 2023

The visualizer crashes when you use it to expose an array based property in instance fields. It seems to work fine for user-defined structs, I believe it's related not being able to figure out the associated part filestream to display.

@GreyCat
Copy link
Member

GreyCat commented Oct 21, 2023

Could you provide a simple example that reproduces this problem?

@generalmimon
Copy link
Member

Could you provide a simple example that reproduces this problem?

I think I've found one:

meta:
  id: value_inst_array
instances:
  v:
    value: '[1000, 2000, 3000]'

After expanding v in the object tree:

C:/temp/kaitai_struct/visualizer/lib/kaitai/struct/visualizer/node.rb:212:in `explore': Unable to get debugging aid for array: {} using ID 'v' (RuntimeError)
        from C:/temp/kaitai_struct/visualizer/lib/kaitai/struct/visualizer/node.rb:64:in `open'
        from C:/temp/kaitai_struct/visualizer/lib/kaitai/struct/visualizer/tree.rb:113:in `process_keypress'
        from C:/temp/kaitai_struct/visualizer/lib/kaitai/struct/visualizer/tree.rb:75:in `block in run'
        from C:/temp/kaitai_struct/visualizer/lib/kaitai/struct/visualizer/tree.rb:41:in `loop'
        from C:/temp/kaitai_struct/visualizer/lib/kaitai/struct/visualizer/tree.rb:41:in `run'
        from C:/temp/kaitai_struct/visualizer/lib/kaitai/struct/visualizer/visualizer.rb:23:in `run'
        from ../bin/ksv:65:in `<main>'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants