Skip to content

Bug in Fragments relations? #92

@ynnob

Description

@ynnob

Hey i tried migrating to "@thatopen/fragments": "3.4.5" and encountered some problems but i am struggeling to pinpoint them exactly.

Since the last fragment and web-ifc 0.77 version the generated relations in the fragment schema seems to be wrong and also seem to create recursive loops that were not there before. (This can either be a error in my software or the updates introduced a bug)

You can also see this in your own example. When you try to open the attached fragment i converted using 0.77 web-ifc and fragments 3.4.5 package the Items Data will also throw a StackOverflow.

https://thatopen.github.io/engine_ui-components/examples/ItemsData/

index-6HcFeNjn.js:1751 Uncaught (in promise) RangeError: Maximum call stack size exceeded
    at Set.add (<anonymous>)
    at t (index-6HcFeNjn.js:1751:239)
    at t (index-6HcFeNjn.js:1751:258)
    at t (index-6HcFeNjn.js:1751:258)
    at t (index-6HcFeNjn.js:1751:258)
    at t (index-6HcFeNjn.js:1751:258)
    at t (index-6HcFeNjn.js:1751:258)
    at t (index-6HcFeNjn.js:1751:258)
    at t (index-6HcFeNjn.js:1751:258)
    at t (index-6HcFeNjn.js:1751:258)

Repro:
Open the .frag

ifc_and_frag_example.zip

example in the Demo and select the first window like in the screenshot.

Image

Off-Topic:
I also noticed that in this new version of the flatbuffers schema my logic for loading the Pset information for example stopped working. I do not claim that this code was a perfect port to c# yet but it worries me a bit to see this breaking. Are you planning on keeping the schema backwards compatible? I think you removed the table Alignment for example when you release the edit api. Currently i am not sure how we should handle such schema changes because we normally keep the fragment files generated in older versions.

Cheers!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions