Skip to content

Open fails on real NWD/NWC files: "LcOpNwdGeometry record N: class is not 94 or 95", "f64 alignment pad is not zero", "LcOaPartitionProps … class 70" #291

Backlog

Description

@SergeyPriem

Environment: NwcIO 0.18.0 from NuGet, net10.0, .NET SDK 10.0.202, Windows 11 x64.

var doc = NwcDocument.Open(path, NwcReaderOptions.Default);                        // Strict = false
var geo = NwcDocument.Open(path, new NwcReaderOptions { BuildSceneTree = false });

I tested 11 real files from an industrial plant project. They come from several companies and were saved
from Navisworks. 2 files open fully, 3 open only with BuildSceneTree = false, and 6 do not open at all.
Strict = true gives the same errors.

The three errors

Message Where
E1 LcOaPartitionProps stream S at byte N: class 70, which this slot does not allow scene tree
E2 LcOpNwdLogicalHierarchy at byte N: f64 alignment pad is not zero scene tree
E3 LcOpNwdGeometry record N: class is not 94 or 95 at +4 geometry

Files

File Type Size Format Loader Default options BuildSceneTree = false
A .nwd 121 MB 451 – E1, stream 0, byte 8 opens, geometry only ¹
B .nwc 154 MB 448 lcldifc E1, stream 0, byte 8 opens, geometry only ¹
C .nwc 43 MB 448 lcldifc E1, stream 0, byte 8 opens, geometry only ²
D .nwd 298 MB 448 – E2, byte 816 E3, record 147
E .nwd 56 MB 448 – E1, stream 4, byte 3308644 E3, record 599
F .nwd 9.6 MB 451 – E1, stream 0, byte 8 E3, record 208
G .nwd 9.5 MB 448 – E3, record 12 E3, record 12
H .nwd 21 MB 455 – E1, stream 0, byte 2764 E3, record 465
I .nwd 90 MB 448 – E2, byte 540184 E3, record 3
OK-1 .nwd 77 MB 448 – opens fully ³
OK-2 .nwc 0.5 MB 448 lcldstep opens fully

¹ 111 956 meshes, 23.98 M triangles. No mesh is linked to a node.
² 10 130 meshes, 6.08 M triangles. No mesh is linked to a node.
³ 11.3 M triangles, 1 745 elements with IFC GlobalId and properties.

Format and Loader are FileInfo.FormatVersion and FileInfo.LoaderPlugin, read with every Read* option off
and BuildSceneTree = false. That read works for all 11 files.

Top frames of E1, E2, E3
InvalidDataException: LcOaPartitionProps stream 0 at byte 8: class 70, which this slot does not allow
   at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(ReadOnlySpan`1 allowedClasses, Func`2 readBody, Boolean allowNull, Boolean allowBackReference)
   at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadPartitionRoot()
   at NwcIO.Internal.Parsing.HierarchyParser.PartitionRoots.Take()
   at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadNode(Int32 classId)

InvalidDataException: LcOpNwdLogicalHierarchy at byte 816: f64 alignment pad is not zero
   at NwcIO.Internal.Parsing.LcObjectReader.Align8(String what)
   at NwcIO.Internal.Parsing.LcObjectReader.ReadDouble()
   at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadMaterial()
   at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadBody(Int32 classId)

InvalidDataException: LcOpNwdGeometry record 147: class is not 94 or 95 at +4
   at NwcIO.Internal.Parsing.GeometrySegmentReader.ReadAsync(IReadOnlyList`1 chunks, LcRawStream toc, CancellationToken cancellationToken)
   at NwcIO.Internal.Parsing.ModelGraphReader.ReadAsync(ModelSegments segments, NwcReaderOptions options, String rootName, NwcXRefTable xRefs, CancellationToken cancellationToken)
   at NwcIO.NwcDocument.ParseContainer(NwcContainer container, NwcReaderOptions options, Boolean keepStreamCatalog, String fallbackName, IProgress`1 progress, CancellationToken cancellationToken)

The files are confidential client data, so I cannot attach them. I can run a diagnostic build or option on
them and send back output that has no model content: the stream catalog, the class ids and offsets of the
records that fail, or a hex dump of a record header.

Activity

  1. mahach666 commented on Dec 3, 2026

    @mahach666
    Collaborator

    Hi @SergeyPriem, thanks for offering to run a test build. Could you rerun the same 11 files with the code from #292, using the same two settings as in your report? The PR adds support for class-70 IFC properties and class-96 point geometry. The material alignment error (E2) is still under investigation.

    If you prefer the CLI, run this from a clone of NwcIO with .NET SDK 10.0.401 or a later .NET 10 SDK:

    gh pr checkout 292
    dotnet build src/NwcIO.Cli/NwcIO.Cli.csproj -c Release -f net10.0
    dotnet src/NwcIO.Cli/bin/Release/net10.0/NwcIO.Cli.dll "<input>" "<output>.json"
    dotnet src/NwcIO.Cli/bin/Release/net10.0/NwcIO.Cli.dll "<input>" "<output>-no-tree.json" --no-tree

    Please report which file labels now open with each setting and paste the exception messages for any remaining failures. For E3, the new message includes the actual class ID. For E2, the top few stack frames would help confirm where alignment fails. The models and JSON exports can stay local.

  2. SergeyPriem commented on Dec 4, 2026

    @SergeyPriem
    ContributorAuthor

    Thank you. I ran all 11 files with the code of #292 (merge commit 83bc312), with the CLI as you wrote,
    in both modes. .NET SDK 10.0.404, Windows 11 x64; the repository tests pass on this machine (net10.0).
    I also ran a small test program against the same source to get the stack frames, and against main
    (d29c91e, with #293). The failing files give the same result from a local copy (same SHA-256), so this
    is not a sync or read problem on my side.

    Result: 6 of 11 files open fully now (before: 2). A, B, C and F are fixed: the scene tree reads, and
    every mesh is linked to a node. D, E, G, H and I still fail in both modes.

    With --no-tree, the geometry now fails on the same record numbers as E3 before (D 147, E 599, H 465,
    G 12, I 3). In D, E and H the record is class 96 and takes the new point path, but its terminator is not zero.
    In G and I the record class is 105.

    File Format Default --no-tree
    A 451 opens: 111 956 meshes, 23.98 M triangles, 92 270 nodes opens
    B 448 opens: same as A opens
    C 448 opens: 10 130 meshes, 6.08 M triangles, 16 236 nodes opens
    D 448 E2: LcOpNwdLogicalHierarchy at byte 816: f64 alignment pad is not zero LcOpNwdGeometry record 147: point record terminator is not zero at +84
    E 448 LcOpNwdLogicalHierarchy at byte 16998232: string is not valid UTF-8 LcOpNwdGeometry record 599: point record terminator is not zero at +60
    F 451 opens: 18 236 meshes (132 of them point sets), 9.31 M triangles, 11 791 nodes opens
    G 448 LcOpNwdGeometry record 12: class 105 is not 94, 95 or 96 at +4 same
    H 455 LcOaPartitionProps stream 0 at byte 510620: property value type 15 is unknown LcOpNwdGeometry record 465: point record terminator is not zero at +60
    I 448 E2: LcOpNwdLogicalHierarchy at byte 540184: f64 alignment pad is not zero LcOpNwdGeometry record 3: class 105 is not 94, 95 or 96 at +4
    OK-1 448 opens, as before opens
    OK-2 448 opens, as before opens

    With main (#293) the results are the same, except file I with default options:
    LcOpNwdLogicalHierarchy at byte 543836: back-reference in a slot that needs a new object.

    Stack frames (#292, default options)

    E2, file D (in ReadMaterial):

    InvalidDataException: LcOpNwdLogicalHierarchy at byte 816: f64 alignment pad is not zero
       at NwcIO.Internal.Parsing.LcObjectReader.Align8(String what)            LcObjectReader.cs:233
       at NwcIO.Internal.Parsing.LcObjectReader.ReadDouble()                   LcObjectReader.cs:52
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadMaterial()         HierarchyParser.cs:563
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadBody(Int32 classId) HierarchyParser.cs:302
       at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)               LcObjectReader.cs:192
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadNode(Int32 classId) HierarchyParser.cs:357
    

    E2, file I (a different place: the partition trailer, not the material):

    InvalidDataException: LcOpNwdLogicalHierarchy at byte 540184: f64 alignment pad is not zero
       at NwcIO.Internal.Parsing.LcObjectReader.Align8(String what)            LcObjectReader.cs:233
       at NwcIO.Internal.Parsing.LcObjectReader.ReadDouble()                   LcObjectReader.cs:52
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.SkipDoubles(Int32 count) HierarchyParser.cs:417
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadPartitionTrailer() HierarchyParser.cs:397
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadNode(Int32 classId) HierarchyParser.cs:380
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadBody(Int32 classId) HierarchyParser.cs:299
    

    File I on main (#293):

    InvalidDataException: LcOpNwdLogicalHierarchy at byte 543836: back-reference in a slot that needs a new object
       at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)               LcObjectReader.cs:153
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadPartitionTrailer() HierarchyParser.cs:401
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadNode(Int32 classId) HierarchyParser.cs:382
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadBody(Int32 classId) HierarchyParser.cs:300
       at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)               LcObjectReader.cs:195
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadNodes(...)         HierarchyParser.cs:325
    

    File E (UTF-8, also in ReadMaterial):

    InvalidDataException: LcOpNwdLogicalHierarchy at byte 16998232: string is not valid UTF-8
       at NwcIO.Internal.Parsing.LcObjectReader.ReadString()                   LcObjectReader.cs:76
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadMaterial()         HierarchyParser.cs:560
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadBody(Int32 classId) HierarchyParser.cs:302
    

    File H:

    InvalidDataException: LcOaPartitionProps stream 0 at byte 510620: property value type 15 is unknown
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadPropertyTab()      HierarchyParser.cs:488
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadBody(Int32 classId) HierarchyParser.cs:301
       at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)               LcObjectReader.cs:192
       at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadPartitionRoot()    HierarchyParser.cs:293
    

    All geometry errors (point record terminator, class 105) come from
    GeometrySegmentReader.ReadAsync (GeometrySegmentReader.cs:37).

    A small request, not a bug. The docs say NwcNode.IfcGlobalId is set only on Revit element nodes, and that
    is what I see. A, B and C are built from IFC (lcldifc), and their GlobalId is in the properties:
    Element / GlobalId and Element / IfcGUID (43 372 times in A, 7 775 times in C). Could IfcGlobalId be
    filled from these properties for IFC-built files? We use the GlobalId to link a model element to our
    equipment list.

    I can run the next build on the same files at any time.

  3. mahach666 commented on Dec 4, 2026

    @mahach666
    Collaborator

    Hi @SergeyPriem, thanks for the detailed rerun. Could you try the same 11 files on main at 7f95f0d, both with the default settings and with --no-tree?

    For any remaining failure, please send the file label, the mode, and the exact error message.

    If any models still fail and you have permission to share them, would you be willing to send just those models through a private channel we agree on? We’d use them only to investigate the failures and keep the files, their details, and the fact that you shared them strictly private.

  4. SergeyPriem commented on Dec 4, 2026

    @SergeyPriem
    ContributorAuthor

    Thank you. I ran the same 11 files on main at 7f95f0d with the CLI, with the default settings and with
    --no-tree. .NET SDK 10.0.404, Windows 11 x64; the repository tests pass on this machine (net10.0).

    Result: still 6 of 11 open fully (A, B, C, F, OK-1, OK-2, both modes). D, E, G, H and I still fail, but
    every one of them now fails at a new place, further on:

    • G and I: the class 105 records pass now (G record 12, I record 3). The geometry fails later, on G record 202
      and I record 80.
    • D, E and H: the geometry segment reads fully now. With --no-tree they fail later, in LcOpNwdFragments.
    File Default --no-tree
    D LcOaPartitionProps stream 0 at byte 197224: class 76, which this slot does not allow LcOpNwdFragments at byte 150692512: class 17, which this slot does not allow
    E LcOpNwdLogicalHierarchy at byte 16998232: string is not valid UTF-8 (no change) LcOpNwdFragments at byte 4044: null pointer in a slot that needs an object
    G LcOpNwdGeometry record 202: slot set does not match the class at +128 same
    H LcOaPartitionProps stream 11 at byte 496172: class 76, which this slot does not allow LcOpNwdFragments at byte 12184332: null pointer in a slot that needs an object
    I LcOpNwdLogicalHierarchy at byte 543840: back-reference to unknown id 7434 LcOpNwdGeometry record 80: slot set does not match the class at +128

    More diagnostics

    To give you as much as I can without the files, I added context to the reader's errors in a local copy of
    7f95f0d (not published): the reader state, the last objects read, and the i32 words around the failing byte.
    Every string the parser read, every run that looks like text, and every f32/f64 value with |v| >= 100 is
    masked, so the dumps show structure only. Source file names in the DbCache directory are replaced with
    <source>. Here is what I see in them. Please check it, I may be wrong.

    1. E and H, --no-tree, null pointer (slot allows class 93). In both files the word right after the
      null is a new object of class 93 with exactly the next id: E 0000007D 0000005D at byte 4044 (next id 125),
      H 00034392 0000005D at byte 12184332 (next id 213906). So it looks like these class 13 fragments have one
      more i32 (zero) before the class 93 pointer, and the parser reads the slot 4 bytes too early.

    2. I, default, back-reference to unknown id 7434 (in ReadPartitionTrailer, slot allows class 27).
      8 bytes before the pointer that failed there is 00001D09 0000001B: a new object with exactly the next id
      (7433) and class 27, the class the slot allows. It is followed by 00000001, then 00001D0A 000000B9, which
      looks like a new object 7434 of class 185. So the trailer field before the pointer may be 8 bytes shorter in
      this file than the parser expects.

    3. D and H, default, class 76 in a partition root slot (allows 86, 79, 66, 70). Both are a new object with
      the next id (D 1871, H 4312). In both files the class 76 body seems to start with a string (D: FFFFFFFF,
      a null string; H: 12 bytes), followed by a new class 52 object (D id 1872, H id 4313).

    4. D, --no-tree, class 17 in a fragment slot (allows 14, 15, 16): a new object with the next id
      (2470980), so a fragment class that is not known yet. Classes read in this stream before it:
      13 x906 837, 14 x4 534, 15 x1 000, 16 x901 302, 93 x657 118.

    5. G and I, geometry, slot set does not match the class: both records are class 95 (lines) with
      normals
      , no UV, no colour; p1 6, 6 positions, 144 bytes, 16 bytes left after the slots. G has only one
      class 95 record (202); I has 188 (80 is the first). Record classes: G 94x9993 95x1 96x775 104x1150 105x693,
      I 94x192835 95x188 96x775 104x1782 105x1026.

    6. E, default, string is not valid UTF-8 (in ReadMaterial, a class 31 object). The string is 6 bytes: a
      3-byte sequence with lead 0xEE (U+E000..U+EFFF, private use area), then a 3-byte sequence ED B?.., which is
      a UTF-16 low surrogate encoded on its own (CESU-8 / WTF-8 style). That is not strict UTF-8, so
      Utf8.IsValid rejects it. Navisworks seems to write such strings; decoding with replacement (U+FFFD) instead of
      throwing would let the file open. The section header of all these files declares encoding C.

    Diagnostic output for D, E, G, H, I (container, DbCache directory, both modes)

    Line numbers in LcObjectReader.cs and GeometrySegmentReader.cs are from my patched copy; the rest match
    7f95f0d.

    ################ D  (312 770 692 bytes, .nwd)
    format 448, loader '', encoding 'C', chunk 'lichunk-008', source extension ''
    file length 312 770 692, trailing gap 0, sections 3, streams 6223
      section 0: @0 'LcUStream-V1.1' [binary double release C lichunk-008]  streams 6222, compressed 312 769 843, inflated 942 244 344, kinds Geometryx6041 Tocx1 Unknownx25 SceneTreex152 Transformsx1 Guidsx1 XRefJsonx1
      section 1: @312 769 943 'LcUStream-V1.1' [binary double release utf8 navisworks:448 lizlib]  streams 1, compressed 609, inflated 2 240, kinds Unknownx1
      section 2: @312 770 640 'LcUStream-V1.1' [binary double release C lichunk-008]  streams 0, compressed 0, inflated 0, kinds 
    DbCache directory: 24 entries
      <source>\LcOpNwdGeometryCompress         flags 3      @            52  length             40  extra 0
      <source>\LcOpNwdGeometry                 flags 1      @            92  length    221 721 633  extra 1308955707965444
      <source>\LcOpNwdSharedNodes              flags 1      @   221 721 725  length          1 121  extra 0
      <source>\LcOpNwdPartition                flags 1      @   221 722 846  length            267  extra 0
      <source>\LcOaPartitionProps              flags 1      @   221 723 113  length     23 417 041  extra 2156073582596
      <source>\LcOpNwdLogicalHierarchy         flags 1      @   245 140 154  length     16 445 439  extra 0
      <source>\LcOpNwdFragments                flags 1      @   261 585 593  length     42 349 117  extra 0
      <source>\LcOpNwdSpatialHierarchy         flags 1      @   303 934 710  length      2 220 859  extra 0
      <source>\LcOpGuidStore                   flags 1      @   306 155 569  length      6 596 658  extra 0
      <source>\LcOpNwdStats                    flags 1      @   312 752 227  length          1 045  extra 0
      <source>\LcOpOdyScenePropsChunk          flags 1      @   312 753 272  length            101  extra 0
      <source>\LcOpCurrentViewElement          flags 1      @   312 753 373  length            276  extra 0
      <source>\LcOpHeadlightElement            flags 1      @   312 753 649  length             18  extra 0
      <source>\LcOpSpeedElement                flags 1      @   312 753 667  length             13  extra 0
      <source>\LcOpCullingElement              flags 1      @   312 753 680  length             19  extra 0
      <source>\LcOpBackgroundElement           flags 1      @   312 753 699  length            984  extra 0
      <source>\LcOpSavedViewsElement           flags 1      @   312 754 683  length          7 361  extra 0
      <source>\LcOpShadOverridesElement        flags 1      @   312 762 044  length            127  extra 0
      <source>\LcOpGridElement                 flags 1      @   312 762 171  length          6 018  extra 0
      <source>\LcOpLightsElement               flags 1      @   312 768 189  length          1 439  extra 0
      <source>\LcOpToolElement                 flags 1      @   312 769 628  length             11  extra 0
      LcOpOdyFileInfoChunk                     flags 1      @   312 769 639  length            152  extra 0
      LcOpCommonSchemas                        flags 1      @   312 769 791  length             11  extra 0
      LcOpXRefTable                            flags 1      @   312 769 802  length            141  extra 0
    located: hierarchy 44 771 144 B, fragments 187 587 936 B, geometry 6041 chunks / 395 879 744 B inflated, toc 1 219 104 B, guid store 6 919 352 B, shared nodes none
    partition props: 158 streams
    === mode default
      InvalidDataException: LcOaPartitionProps stream 0 at byte 197224: class 76, which this slot does not allow
          stream length 1835416, objects so far 1771 (next id 1871), nesting depth 0, strings read 2605
          last pointer slot: slot allows classes [86, 79, 66, 70], null no, back-reference no
          open objects (outermost first): 
          last objects (id:class@start): 1855:c66@195620 1856:c86@195656 1857:c86@195708 1858:c86@195960 1859:c86@196080 1860:c66@196140 1861:c86@196176 1862:c86@196228 1863:c86@196480 1864:c86@196600 1865:c66@196660 1866:c86@196696 1867:c86@196748 1868:c86@197000 1869:c86@197120 1870:c66@197180
          classes read in this stream: 52x58 66x362 79x1 86x1350
          i32 words [197064..197320) of 1835416, '>' = the failing position, '#' = masked text, '~' = masked number (|f32| or |f64| >= 100):
              197064:  00000000 00000000 00000001 00000088 00000001 00000000 00000000 00000000
              197096:  00000001 00000089 00000001 00000000 ######## ~~~~~~~~ 0000074D 00000056
              197128:  FFFFFFFF 00000001 0000008B 00000000 00000002 00000001 0000008C 00000003
              197160:  00000000 00000001 0000008D 00000003 00000000 0000074E 00000042 FFFFFFFF
              197192:  00000001 0000007A 00000000 00000000 021B520F 00000000 0000074F 0000004C
              197224: >FFFFFFFF 00000750 00000034 0000000A ######## ######## ######## 0000000E
              197256:  ######## ######## ######## ######## 00000000 00000004 ######## ########
              197288:  00000056 FFFFFFFF 00000001 00000092 00000000 00000001 00000001 00000093
        at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)  Internal/Parsing/LcObjectReader.cs:line 206
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadPartitionRoot()  Internal/Parsing/HierarchyParser.cs:line 327
        at NwcIO.Internal.Parsing.HierarchyParser.PartitionRoots.Take()  Internal/Parsing/HierarchyParser.cs:line 871
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadNode(Int32 classId)  Internal/Parsing/HierarchyParser.cs:line 392
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadBody(Int32 classId)  Internal/Parsing/HierarchyParser.cs:line 333
    === mode no-tree
      InvalidDataException: LcOpNwdFragments at byte 150692512: class 17, which this slot does not allow
          stream length 187587936, objects so far 2470880 (next id 2470980), nesting depth 1, strings read 3
          last pointer slot: slot allows classes [14, 15, 16], null yes, back-reference yes
          open objects (outermost first): id 2470979 class 13 @150692468
          last objects (id:class@start): 2470964:c13@150691748 2470965:c14@150691784 2470966:c93@150691824 2470967:c13@150691892 2470968:c14@150691928 2470969:c93@150691968 2470970:c13@150692036 2470971:c14@150692072 2470972:c93@150692112 2470973:c13@150692180 2470974:c14@150692216 2470975:c93@150692256 2470976:c13@150692324 2470977:c14@150692360 2470978:c93@150692400 2470979:c13(open)@150692468
          classes read in this stream: 13x906837 14x4534 15x1000 16x901302 54x44 55x44 93x657118 185x1
          i32 words [150692352..150692608) of 187587936, '>' = the failing position, '#' = masked text, '~' = masked number (|f32| or |f64| >= 100):
           150692352:  00000100 00091369 0025B441 0000000E ~~~~~~~~ ~~~~~~~~ ~~~~~~~~ ~~~~~~~~
           150692384:  ~~~~~~~~ ~~~~~~~~ 00000001 000010C6 0025B442 0000005D ~~~~~~~~ ~~~~~~~~
           150692416:  ~~~~~~~~ ~~~~~~~~ ~~~~~~~~ 00000000 ~~~~~~~~ ~~~~~~~~ ~~~~~~~~ ~~~~~~~~
           150692448:  00000000 00000000 3F800000 94310DF8 00007551 0025B443 0000000D 00000000
           150692480:  00000000 3FF00000 00000002 00000022 00000120 0009136F 0025B444 00000011
           150692512: >25800000 BF800000 00000000 00000000 BF800000 A5800000 00000000 00000000
           150692544:  00000000 00000000 ~~~~~~~~ 00000000 3F800000 00000000 ~~~~~~~~ ~~~~~~~~
           150692576:  ~~~~~~~~ ~~~~~~~~ ~~~~~~~~ ~~~~~~~~ 0025B445 00000037 00000021 0025B446
        at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)  Internal/Parsing/LcObjectReader.cs:line 206
        at NwcIO.Internal.Parsing.FragmentParser.Parser.ReadFragment()  Internal/Parsing/FragmentParser.cs:line 105
        at NwcIO.Internal.Parsing.FragmentParser.Parser.ReadBody(Int32 classId)  Internal/Parsing/FragmentParser.cs:line 87
        at NwcIO.Internal.Parsing.FragmentParser.Parser.ReadStream(Boolean paddedCount)  Internal/Parsing/FragmentParser.cs:line 74
        at NwcIO.Internal.Parsing.FragmentParser.Read(Byte[] data, SharedNodeTable sharedNodes, Boolean readTextures)  Internal/Parsing/FragmentParser.cs:line 46
    ################ E  (58 723 356 bytes, .nwd)
    format 448, loader '', encoding 'C', chunk 'lichunk-008', source extension ''
    file length 58 723 356, trailing gap 0, sections 3, streams 753
      section 0: @0 'LcUStream-V1.1' [binary double release C lichunk-008]  streams 752, compressed 58 722 529, inflated 121 557 504, kinds Geometryx707 Tocx1 Unknownx26 SceneTreex15 Transformsx1 Guidsx1 XRefJsonx1
      section 1: @58 722 629 'LcUStream-V1.1' [binary double release utf8 navisworks:448 lizlib]  streams 1, compressed 587, inflated 2 144, kinds Unknownx1
      section 2: @58 723 304 'LcUStream-V1.1' [binary double release C lichunk-008]  streams 0, compressed 0, inflated 0, kinds 
    DbCache directory: 23 entries
      <source>\LcOpNwdGeometryCompress         flags 3      @            52  length             40  extra 0
      <source>\LcOpNwdGeometry                 flags 1      @            92  length     28 937 805  extra 78692390797316
      <source>\LcOpNwdSharedNodes              flags 1      @    28 937 897  length             32  extra 0
      <source>\LcOpNwdPartition                flags 1      @    28 937 929  length            279  extra 0
      <source>\LcOaPartitionProps              flags 1      @    28 938 208  length      3 348 181  extra 425201762308
      <source>\LcOpNwdLogicalHierarchy         flags 1      @    32 286 389  length     12 736 949  extra 0
      <source>\LcOpNwdFragments                flags 1      @    45 023 338  length     13 479 836  extra 0
      <source>\LcOpNwdSpatialHierarchy         flags 1      @    58 503 174  length        159 493  extra 0
      <source>\LcOpGuidStore                   flags 1      @    58 662 667  length         47 179  extra 0
      <source>\LcOpNwdStats                    flags 1      @    58 709 846  length            377  extra 0
      <source>\LcOpOdyScenePropsChunk          flags 1      @    58 710 223  length            115  extra 0
      <source>\LcOpCurrentViewElement          flags 1      @    58 710 338  length            270  extra 0
      <source>\LcOpHeadlightElement            flags 1      @    58 710 608  length             18  extra 0
      <source>\LcOpSpeedElement                flags 1      @    58 710 626  length             13  extra 0
      <source>\LcOpCullingElement              flags 1      @    58 710 639  length             19  extra 0
      <source>\LcOpBackgroundElement           flags 1      @    58 710 658  length            984  extra 0
      <source>\LcOpSavedViewsElement           flags 1      @    58 711 642  length          3 575  extra 0
      <source>\LcOpShadOverridesElement        flags 1      @    58 715 217  length             20  extra 0
      <source>\LcOpGridElement                 flags 1      @    58 715 237  length          5 639  extra 0
      <source>\LcOpLightsElement               flags 1      @    58 720 876  length          1 439  extra 0
      LcOpOdyFileInfoChunk                     flags 1      @    58 722 315  length            152  extra 0
      LcOpCommonSchemas                        flags 1      @    58 722 467  length             11  extra 0
      LcOpXRefTable                            flags 1      @    58 722 478  length            151  extra 0
    located: hierarchy 20 541 880 B, fragments 22 365 256 B, geometry 707 chunks / 46 317 248 B inflated, toc 41 624 B, guid store 192 488 B, shared nodes none
    partition props: 23 streams
    === mode default
      InvalidDataException: LcOpNwdLogicalHierarchy at byte 16998232: string is not valid UTF-8
          the string starts at byte 16998224, its length prefix at 16998220; string of 6 bytes: ASCII 0, 0x80-0xBF 4, 0xC0-0xF7 2, 0xF8-0xFE 0, 0xFF 0, zero 0; sequences: 3-byte lead 0xEE, ED-low-surrogate; looks like neither UTF-16 nor a single-byte code page
          stream length 20541880, objects so far 29289 (next id 29389), nesting depth 11, strings read 28983
          last pointer slot: slot allows classes [86, 31, 40, 41, 39, 79, 200], null yes, back-reference yes
          open objects (outermost first): id 29345 class 32 @16995816 > id 29347 class 53 @16995944 > id 29349 class 53 @16996048 > id 29351 class 53 @16996148 > id 29353 class 53 @16996252 > id 29355 class 53 @16996364 > id 29357 class 53 @16996444 > id 29381 class 53 @16997824 > id 29384 class 53 @16998044 > id 29387 class 22 @16998180 > id 29388 class 31 @16998212
          last objects (id:class@start): 29373:c53@16997416 29374:c22@16997452 29375:c53@16997496 29376:c52@16997524 29377:c41@16997628 29378:c53@16997708 29379:c53@16997744 29380:c22@16997780 29381:c53(open)@16997824 29382:c52@16997852 29383:c41@16997964 29384:c53(open)@16998044 29385:c52@16998056 29386:c40@16998132 29387:c22(open)@16998180 29388:c31(open)@16998212
          classes read in this stream: 22x7133 31x171 32x8 39x39 40x508 41x5233 52x1595 53x12645 79x33 86x863 185x530 200x530
          i32 words [16998072..16998328) of 20541880, '>' = the failing position, '#' = masked text, '~' = masked number (|f32| or |f64| >= 100):
            16998072:  ######## ######## ######## 0000001C ######## ######## ######## ########
            16998104:  ######## ######## ######## 00040000 00000000 00000002 00000000 000072CA
            16998136:  00000028 FFFFFFFF 00000000 00020000 ~~~~~~~~ ~~~~~~~~ 00000000 00000000
            16998168:  ~~~~~~~~ ~~~~~~~~ 00000001 000072CB 00000016 FFFFFFFF 00000001 000072B7
            16998200:  00000000 00000000 00000001 000072CC 0000001F 00000006 ######## ########
            16998232: >00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
            16998264:  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
            16998296:  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
        at NwcIO.Internal.Parsing.LcObjectReader.ReadString()  Internal/Parsing/LcObjectReader.cs:line 99
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadMaterial()  Internal/Parsing/HierarchyParser.cs:line 630
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadBody(Int32 classId)  Internal/Parsing/HierarchyParser.cs:line 336
        at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)  Internal/Parsing/LcObjectReader.cs:line 218
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadNode(Int32 classId)  Internal/Parsing/HierarchyParser.cs:line 392
    === mode no-tree
      InvalidDataException: LcOpNwdFragments at byte 4044: null pointer in a slot that needs an object
          stream length 22365256, objects so far 25 (next id 125), nesting depth 1, strings read 3
          last pointer slot: slot allows classes [93], null no, back-reference yes
          open objects (outermost first): id 120 class 13 @1180
          last objects (id:class@start): 109:c16@480 110:c93@560 111:c13@628 112:c16@664 113:c93@744 114:c13@812 115:c16@848 116:c93@928 117:c13@996 118:c16@1032 119:c93@1112 120:c13(open)@1180 121:c16@1216 122:c55@1288 123:c54@1300 124:c185@1364
          classes read in this stream: 13x7 16x7 54x2 55x2 93x6 185x1
          i32 words [3884..4140) of 22365256, '>' = the failing position, '#' = masked text, '~' = masked number (|f32| or |f64| >= 100):
                3884:  ######## ######## ######## ######## ######## ######## ######## ########
                3916:  ######## FFFFFFFF 00000001 00000064 ######## ######## ######## ########
                3948:  ######## ######## ######## ######## ######## ######## ######## ########
                3980:  ######## ######## ######## ######## ######## ######## ######## ########
                4012:  ######## ######## ######## ######## ######## 00000000 00000000 00000000
                4044: >0000007D 0000005D ######## C0C29718 ######## ######## BCC3D800 3C86621A
                4076:  00000000 20000000 C00FAF4C ######## ######## 40000000 3F90CC43 404A1D5A
                4108:  AB761815 0000169B 0000007E 0000000D 00000000 C0000000 4006B5DA 00000334
        at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)  Internal/Parsing/LcObjectReader.cs:line 168
        at NwcIO.Internal.Parsing.FragmentParser.Parser.ReadFragment()  Internal/Parsing/FragmentParser.cs:line 105
        at NwcIO.Internal.Parsing.FragmentParser.Parser.ReadBody(Int32 classId)  Internal/Parsing/FragmentParser.cs:line 87
        at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)  Internal/Parsing/LcObjectReader.cs:line 218
        at NwcIO.Internal.Parsing.FragmentParser.Parser.ReadStream(Boolean paddedCount)  Internal/Parsing/FragmentParser.cs:line 78
    ################ G  (9 941 332 bytes, .nwd)
    format 448, loader '', encoding 'C', chunk 'lichunk-008', source extension ''
    file length 9 941 332, trailing gap 0, sections 3, streams 261
      section 0: @0 'LcUStream-V1.1' [binary double release C lichunk-008]  streams 260, compressed 9 940 562, inflated 20 974 552, kinds Geometryx236 Tocx1 Unknownx19 SceneTreex1 Transformsx1 Guidsx1 XRefJsonx1
      section 1: @9 940 662 'LcUStream-V1.1' [binary double release utf8 navisworks:448 lizlib]  streams 1, compressed 530, inflated 1 544, kinds Unknownx1
      section 2: @9 941 280 'LcUStream-V1.1' [binary double release C lichunk-008]  streams 0, compressed 0, inflated 0, kinds 
    DbCache directory: 24 entries
      <source>\LcOpNwdGeometryCompress         flags 3      @            52  length             40  extra 0
      <source>\LcOpNwdGeometry                 flags 1      @            92  length      8 432 038  extra 78400333021188
      <source>\LcOpNwdSharedNodes              flags 1      @     8 432 130  length             11  extra 0
      <source>\LcOpNwdPartition                flags 1      @     8 432 141  length            225  extra 0
      <source>\LcOaPartitionProps              flags 1      @     8 432 366  length            718  extra 68719476740
      <source>\LcOpNwdLogicalHierarchy         flags 1      @     8 433 084  length         29 676  extra 0
      <source>\LcOpNwdFragments                flags 1      @     8 462 760  length      1 402 247  extra 0
      <source>\LcOpNwdSpatialHierarchy         flags 1      @     9 865 007  length         72 727  extra 0
      <source>\LcOpGuidStore                   flags 1      @     9 937 734  length             48  extra 0
      <source>\LcOpNwdStats                    flags 1      @     9 937 782  length            738  extra 0
      <source>\LcOpOdyScenePropsChunk          flags 1      @     9 938 520  length             59  extra 0
      <source>\LcOpCurrentViewElement          flags 1      @     9 938 579  length            251  extra 0
      <source>\LcOpHeadlightElement            flags 1      @     9 938 830  length             18  extra 0
      <source>\LcOpSpeedElement                flags 1      @     9 938 848  length             13  extra 0
      <source>\LcOpCullingElement              flags 1      @     9 938 861  length             19  extra 0
      <source>\LcOpBackgroundElement           flags 1      @     9 938 880  length             56  extra 0
      <source>\LcOpSavedViewsElement           flags 1      @     9 938 936  length             11  extra 0
      <source>\LcOpShadOverridesElement        flags 1      @     9 938 947  length             28  extra 0
      <source>\LcOpLightsElement               flags 1      @     9 938 975  length          1 441  extra 0
      <source>\LcOpZoneElement                 flags 1      @     9 940 416  length             11  extra 0
      <source>\LcOpToolElement                 flags 1      @     9 940 427  length             11  extra 0
      LcOpOdyFileInfoChunk                     flags 1      @     9 940 438  length            118  extra 0
      LcOpCommonSchemas                        flags 1      @     9 940 556  length             11  extra 0
      LcOpXRefTable                            flags 1      @     9 940 567  length             95  extra 0
    located: hierarchy 341 952 B, fragments 4 825 680 B, geometry 236 chunks / 15 441 952 B inflated, toc 51 400 B, guid store 40 B, shared nodes none
    partition props: 1 streams
    === mode default
      InvalidDataException: LcOpNwdGeometry record 202: slot set does not match the class (class 95: UV no, normals yes, colour no; p1 6, positions 6, record 144 bytes, 16 bytes left after the slots) at +128
          width 16: failed at record 0: unused packed bit is set at +180
          width 8:  failed at record 202: slot set does not match the class (class 95: UV no, normals yes, colour no; p1 6, positions 6, record 144 bytes, 16 bytes left after the slots) at +128
          12612 records in 236 chunks; record classes: 94x9993 95x1 96x775 104x1150 105x693
          records around the failure (index:class/length): 197:c105/64B 198:c94/688B 199:c94/368B 200:c94/688B 201:c94/688B 202:c95/144B 203:c94/824B 204:c94/216B 205:c94/512B 206:c94/680B 207:c94/512B
        at NwcIO.Internal.Parsing.GeometrySegmentReader.ReadAsync(...)  Internal/Parsing/GeometrySegmentReader.cs:line 68
        at NwcIO.Internal.Parsing.ModelGraphReader.ReadAsync(...)  Internal/Parsing/ModelGraphReader.cs:line 159
        at NwcIO.NwcDocument.ParseContainer(...)  NwcDocument.cs:line 250
        at NwcIO.Internal.SynchronousResult.GetSynchronousResult[T](ValueTask`1 operation)  Internal/SynchronousResult.cs:line 7
        at NwcIO.NwcDocument.<>c__DisplayClass139_0.<Open>b__0(NwcContainer container)  NwcDocument.cs:line 169
    === mode no-tree
      InvalidDataException: LcOpNwdGeometry record 202: slot set does not match the class (class 95: UV no, normals yes, colour no; p1 6, positions 6, record 144 bytes, 16 bytes left after the slots) at +128
          width 16: failed at record 0: unused packed bit is set at +180
          width 8:  failed at record 202: slot set does not match the class (class 95: UV no, normals yes, colour no; p1 6, positions 6, record 144 bytes, 16 bytes left after the slots) at +128
          12612 records in 236 chunks; record classes: 94x9993 95x1 96x775 104x1150 105x693
          records around the failure (index:class/length): 197:c105/64B 198:c94/688B 199:c94/368B 200:c94/688B 201:c94/688B 202:c95/144B 203:c94/824B 204:c94/216B 205:c94/512B 206:c94/680B 207:c94/512B
        at NwcIO.Internal.Parsing.GeometrySegmentReader.ReadAsync(...)  Internal/Parsing/GeometrySegmentReader.cs:line 68
        at NwcIO.Internal.Parsing.ModelGraphReader.ReadAsync(...)  Internal/Parsing/ModelGraphReader.cs:line 159
        at NwcIO.NwcDocument.ParseContainer(...)  NwcDocument.cs:line 250
        at NwcIO.Internal.SynchronousResult.GetSynchronousResult[T](ValueTask`1 operation)  Internal/SynchronousResult.cs:line 7
        at NwcIO.NwcDocument.<>c__DisplayClass139_0.<Open>b__0(NwcContainer container)  NwcDocument.cs:line 169
    ################ H  (22 410 426 bytes, .nwd)
    format 455, loader '', encoding 'C', chunk 'lichunk-008', source extension ''
    file length 22 410 426, trailing gap 0, sections 3, streams 472
      section 0: @0 'LcUStream-V1.1' [binary double release C lichunk-008]  streams 471, compressed 22 409 497, inflated 67 072 760, kinds Geometryx429 Tocx1 Unknownx29 SceneTreex9 Transformsx1 Guidsx1 XRefJsonx1
      section 1: @22 409 597 'LcUStream-V1.1' [binary double release utf8 navisworks:455 lizlib]  streams 1, compressed 689, inflated 2 520, kinds Unknownx1
      section 2: @22 410 374 'LcUStream-V1.1' [binary double release C lichunk-008]  streams 0, compressed 0, inflated 0, kinds 
    DbCache directory: 31 entries
      <source>\LcOpNwdGeometryCompress         flags 3      @            52  length             40  extra 0
      <source>\LcOpNwdGeometry                 flags 1      @            92  length     15 524 122  extra 135257110085636
      <source>\LcOpNwdPartition                flags 1      @    15 524 214  length            263  extra 0
      <source>\LcOaPartitionProps              flags 1      @    15 524 477  length      1 693 075  extra 266287972356
      <source>\LcOpNwdLogicalHierarchy         flags 1      @    17 217 552  length        443 684  extra 0
      <source>\LcOpNwdFragments                flags 1      @    17 661 236  length      4 345 040  extra 0
      <source>\LcOpNwdSpatialHierarchy         flags 1      @    22 006 276  length        367 652  extra 0
      <source>\LcOpGuidStore                   flags 1      @    22 373 928  length             48  extra 0
      <source>\LcOpNwdStats                    flags 1      @    22 373 976  length             86  extra 0
      <source>\LcOpOdyScenePropsChunk          flags 1      @    22 374 062  length            101  extra 0
      <source>\LcOpCurrentViewElement          flags 1      @    22 374 163  length            290  extra 0
      <source>\LcOpCurrentAnimationElement     flags 1      @    22 374 453  length             18  extra 0
      <source>\LcOpHeadlightElement            flags 1      @    22 374 471  length             18  extra 0
      <source>\LcOpSpeedElement                flags 1      @    22 374 489  length             13  extra 0
      <source>\LcOpCullingElement              flags 1      @    22 374 502  length             18  extra 0
      <source>\LcOpBackgroundElement           flags 1      @    22 374 520  length             68  extra 0
      <source>\LcOpSelectionSetsElement        flags 1      @    22 374 588  length             11  extra 0
      <source>\LcOpHomeViewElement             flags 1      @    22 374 599  length            232  extra 0
      <source>\LcOpSavedViewsElement           flags 1      @    22 374 831  length            430  extra 0
      <source>\LcOpClashElement                flags 1      @    22 375 261  length          1 167  extra 0
      <source>\LcOpShadOverridesElement        flags 1      @    22 376 428  length          1 911  extra 0
      <source>\LcOpGridElement                 flags 1      @    22 378 339  length            140  extra 0
      <source>\LcOpLightsElement               flags 1      @    22 378 479  length            156  extra 0
      <source>\LcOpTextureSpaceElement         flags 1      @    22 378 635  length             11  extra 0
      <source>\LcOpRenderSettingElement        flags 1      @    22 378 646  length             17  extra 0
      <source>\LcOpToolElement                 flags 1      @    22 378 663  length             11  extra 0
      <source>\LcOdpDBDatabaseLinksElement     flags 1      @    22 378 674  length             11  extra 0
      <source>\LcOpSharedNodes                 flags 1      @    22 378 685  length         30 623  extra 0
      LcOpOdyFileInfoChunk                     flags 1      @    22 409 308  length            136  extra 0
      LcOpCommonSchemas                        flags 1      @    22 409 444  length             11  extra 0
      LcOpXRefTable                            flags 1      @    22 409 455  length            142  extra 0
    located: hierarchy 4 183 128 B, fragments 21 345 456 B, geometry 429 chunks / 28 077 032 B inflated, toc 90 752 B, guid store 40 B, shared nodes 1 390 392 B
    partition props: 12 streams
    === mode default
      InvalidDataException: LcOaPartitionProps stream 11 at byte 496172: class 76, which this slot does not allow
          stream length 974640, objects so far 4212 (next id 4312), nesting depth 0, strings read 10101
          last pointer slot: slot allows classes [86, 79, 66, 70], null no, back-reference no
          open objects (outermost first): 
          last objects (id:class@start): 4296:c86@495132 4297:c86@495352 4298:c86@495420 4299:c52@495432 4300:c52@495480 4301:c86@495564 4302:c52@495576 4303:c52@495624 4304:c52@495708 4305:c52@495776 4306:c52@495840 4307:c52@495896 4308:c86@495960 4309:c52@495972 4310:c52@496020 4311:c52@496096
          classes read in this stream: 52x110 70x559 86x3543
          i32 words [496012..496268) of 974640, '>' = the failing position, '#' = masked text, '~' = masked number (|f32| or |f64| >= 100):
              496012:  00000000 00000002 000010D6 00000034 0000000E ######## ######## ########
              496044:  ######## ~~~~~~~~ ######## ######## ######## ######## ######## 00000004
              496076:  0000000F ######## ######## ######## ######## 000010D7 00000034 ~~~~~~~~
              496108:  ######## ######## ######## ~~~~~~~~ ######## ######## ######## ########
              496140:  ######## 00000004 0000000A ######## ######## ######## 000010D8 0000004C
              496172: >0000000C ######## ######## ######## 000010D9 00000034 00000010 ########
              496204:  ######## ######## ######## ~~~~~~~~ ######## ######## ######## 00020000
              496236:  00000049 ######## ######## ######## ######## ######## ######## ########
        at NwcIO.Internal.Parsing.HierarchyParser.PartitionRoots.Take()  Internal/Parsing/HierarchyParser.cs:line 871
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadNode(Int32 classId)  Internal/Parsing/HierarchyParser.cs:line 392
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadBody(Int32 classId)  Internal/Parsing/HierarchyParser.cs:line 333
        at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)  Internal/Parsing/LcObjectReader.cs:line 164
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadNodes(ReadOnlySpan`1 allowedClasses)  Internal/Parsing/HierarchyParser.cs:line 358
    === mode no-tree
      InvalidDataException: LcOpNwdFragments at byte 12184332: null pointer in a slot that needs an object
          stream length 21345456, objects so far 213806 (next id 213906), nesting depth 1, strings read 0
          last pointer slot: slot allows classes [93], null no, back-reference yes
          open objects (outermost first): id 213902 class 13 @12184144
          last objects (id:class@start): 213890:c13@12183424 213891:c16@12183456 213892:c13@12183544 213893:c16@12183576 213894:c13@12183664 213895:c16@12183696 213896:c13@12183784 213897:c16@12183816 213898:c13@12183904 213899:c16@12183936 213900:c13@12184024 213901:c16@12184056 213902:c13(open)@12184144 213903:c16@12184176 213904:c55@12184248 213905:c54@12184260
          classes read in this stream: 13x88219 14x10258 15x46957 16x31004 54x135 55x135 93x37098
          i32 words [12184172..12184428) of 21345456, '>' = the failing position, '#' = masked text, '~' = masked number (|f32| or |f64| >= 100):
            12184172:  00014D39 0003438F 00000010 ~~~~~~~~ ~~~~~~~~ ######## ######## ~~~~~~~~
            12184204:  ~~~~~~~~ ######## ######## ######## ######## ######## ######## ~~~~~~~~
            12184236:  3FED906B 00000000 40240000 00034390 00000037 00000061 00034391 00000036
            12184268:  3F3FBFC0 3F3FBFC0 3F3FBFC0 3F3FBFC0 3F3FBFC0 3F3FBFC0 00000000 00000000
            12184300:  00000000 00000000 00000000 00000000 3E19999A 00000000 0000004B 00000000
            12184332: >00034392 0000005D 00000000 00000000 00000000 00000000 00000000 4206CCCD
            12184364:  00000000 00000000 00000000 00000000 00000000 00000000 00000000 ~~~~~~~~
            12184396:  ~~~~~~~~ 00004447 00034393 0000000D 00000000 40000000 401F68EC 000000B0
        at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)  Internal/Parsing/LcObjectReader.cs:line 168
        at NwcIO.Internal.Parsing.FragmentParser.Parser.ReadFragment()  Internal/Parsing/FragmentParser.cs:line 105
        at NwcIO.Internal.Parsing.FragmentParser.Parser.ReadBody(Int32 classId)  Internal/Parsing/FragmentParser.cs:line 87
        at NwcIO.Internal.Parsing.FragmentParser.Parser.ReadStream(Boolean paddedCount)  Internal/Parsing/FragmentParser.cs:line 74
        at NwcIO.Internal.Parsing.FragmentParser.Read(Byte[] data, SharedNodeTable sharedNodes, Boolean readTextures)  Internal/Parsing/FragmentParser.cs:line 46
    ################ I  (94 201 690 bytes, .nwd)
    format 448, loader '', encoding 'C', chunk 'lichunk-008', source extension ''
    file length 94 201 690, trailing gap 0, sections 3, streams 2632
      section 0: @0 'LcUStream-V1.1' [binary double release C lichunk-008]  streams 2631, compressed 94 200 892, inflated 215 716 640, kinds Geometryx2606 Tocx1 Unknownx20 SceneTreex1 Transformsx1 Guidsx1 XRefJsonx1
      section 1: @94 200 992 'LcUStream-V1.1' [binary double release utf8 navisworks:448 lizlib]  streams 1, compressed 558, inflated 1 608, kinds Unknownx1
      section 2: @94 201 638 'LcUStream-V1.1' [binary double release C lichunk-008]  streams 0, compressed 0, inflated 0, kinds 
    DbCache directory: 25 entries
      <source>\LcOpNwdGeometryCompress         flags 3      @            52  length             40  extra 0
      <source>\LcOpNwdGeometry                 flags 1      @            92  length     84 443 070  extra 1075958027124740
      <source>\LcOpNwdSharedNodes              flags 1      @    84 443 162  length             11  extra 0
      <source>\LcOpNwdPartition                flags 1      @    84 443 173  length          1 467  extra 0
      <source>\LcOaPartitionProps              flags 1      @    84 444 640  length         60 205  extra 68719476740
      <source>\LcOpNwdLogicalHierarchy         flags 1      @    84 504 845  length         58 601  extra 0
      <source>\LcOpNwdFragments                flags 1      @    84 563 446  length      9 122 668  extra 0
      <source>\LcOpNwdSpatialHierarchy         flags 1      @    93 686 114  length        507 161  extra 0
      <source>\LcOpGuidStore                   flags 1      @    94 193 275  length          4 064  extra 0
      <source>\LcOpNwdStats                    flags 1      @    94 197 339  length            945  extra 0
      <source>\LcOpOdyScenePropsChunk          flags 1      @    94 198 284  length             85  extra 0
      <source>\LcOpCurrentViewElement          flags 1      @    94 198 369  length            256  extra 0
      <source>\LcOpHeadlightElement            flags 1      @    94 198 625  length             18  extra 0
      <source>\LcOpSpeedElement                flags 1      @    94 198 643  length             13  extra 0
      <source>\LcOpCullingElement              flags 1      @    94 198 656  length             19  extra 0
      <source>\LcOpBackgroundElement           flags 1      @    94 198 675  length             69  extra 0
      <source>\LcOpHomeViewElement             flags 1      @    94 198 744  length            182  extra 0
      <source>\LcOpSavedViewsElement           flags 1      @    94 198 926  length             11  extra 0
      <source>\LcOpShadOverridesElement        flags 1      @    94 198 937  length             42  extra 0
      <source>\LcOpLightsElement               flags 1      @    94 198 979  length          1 741  extra 0
      <source>\LcOpZoneElement                 flags 1      @    94 200 720  length             11  extra 0
      <source>\LcOpToolElement                 flags 1      @    94 200 731  length             12  extra 0
      LcOpOdyFileInfoChunk                     flags 1      @    94 200 743  length            118  extra 0
      LcOpCommonSchemas                        flags 1      @    94 200 861  length             11  extra 0
      LcOpXRefTable                            flags 1      @    94 200 872  length            120  extra 0
    located: hierarchy 547 840 B, fragments 40 715 880 B, geometry 2606 chunks / 170 783 768 B inflated, toc 796 856 B, guid store 27 976 B, shared nodes none
    partition props: 1 streams
    === mode default
      InvalidDataException: LcOpNwdLogicalHierarchy at byte 543840: back-reference to unknown id 7434
          stream length 547840, objects so far 7333 (next id 7433), nesting depth 1, strings read 5709
          last pointer slot: slot allows classes [27], null no, back-reference yes
          open objects (outermost first): id 4542 class 32 @366416
          last objects (id:class@start): 7417:c22@539452 7418:c22@539492 7419:c22@539532 7420:c22@539604 7421:c22@539676 7422:c22@539748 7423:c53@539820 7424:c22@539876 7425:c22@539916 7426:c22@539956 7427:c53@539996 7428:c22@540052 7429:c22@540092 7430:c22@540132 7431:c27@540180 7432:c185@540192
          classes read in this stream: 22x6260 27x1 31x95 32x3 39x2 40x1 41x8 52x15 53x946 185x1
          i32 words [543680..543936) of 547840, '>' = the failing position, '#' = masked text, '~' = masked number (|f32| or |f64| >= 100):
              543680:  ######## ######## ######## ######## ######## ######## ######## ########
              543712:  ######## FFFFFFFF 00000000 00000000 00000000 00000000 00000000 00000000
              543744:  00000000 00000000 00000000 3FF00000 00000000 3FF00000 00000000 3FF00000
              543776:  00000000 3FF00000 00000000 3FF00000 00000000 3FF00000 3F2F7CB8 3FD7BEA6
              543808:  ~~~~~~~~ 3FE7C6D7 ~~~~~~~~ BFE1D315 00001D09 0000001B 00000001 00001D0A
              543840: >000000B9 00000DE8 ######## ######## ######## ######## ######## ########
              543872:  ######## ######## ######## ######## ######## ######## ######## ########
              543904:  ######## ######## ######## ######## ######## ######## ######## ########
        at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)  Internal/Parsing/LcObjectReader.cs:line 181
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadPartitionTrailer()  Internal/Parsing/HierarchyParser.cs:line 435
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadNode(Int32 classId)  Internal/Parsing/HierarchyParser.cs:line 415
        at NwcIO.Internal.Parsing.HierarchyParser.Parser.ReadBody(Int32 classId)  Internal/Parsing/HierarchyParser.cs:line 333
        at NwcIO.Internal.Parsing.LcObjectReader.ReadPointer(...)  Internal/Parsing/LcObjectReader.cs:line 218
    === mode no-tree
      InvalidDataException: LcOpNwdGeometry record 80: slot set does not match the class (class 95: UV no, normals yes, colour no; p1 6, positions 6, record 144 bytes, 16 bytes left after the slots) at +128
          width 16: failed at record 0: unused packed bit is set at +180
          width 8:  failed at record 80: slot set does not match the class (class 95: UV no, normals yes, colour no; p1 6, positions 6, record 144 bytes, 16 bytes left after the slots) at +128
          196606 records in 2606 chunks; record classes: 94x192835 95x188 96x775 104x1782 105x1026
          records around the failure (index:class/length): 75:c105/64B 76:c105/64B 77:c94/672B 78:c94/520B 79:c94/664B 80:c95/144B 81:c94/664B 82:c94/672B 83:c94/680B 84:c94/512B 85:c94/520B
        at NwcIO.Internal.Parsing.GeometrySegmentReader.ReadAsync(...)  Internal/Parsing/GeometrySegmentReader.cs:line 68
        at NwcIO.Internal.Parsing.ModelGraphReader.ReadAsync(...)  Internal/Parsing/ModelGraphReader.cs:line 159
        at NwcIO.NwcDocument.ParseContainer(...)  NwcDocument.cs:line 250
        at NwcIO.Internal.SynchronousResult.GetSynchronousResult[T](ValueTask`1 operation)  Internal/SynchronousResult.cs:line 7
        at NwcIO.NwcDocument.<>c__DisplayClass139_0.<Open>b__0(NwcContainer container)  NwcDocument.cs:line 169
    

    #296, SourceIfcGlobalId: it works. In A and B, 43 372 nodes have it, in C 7 775. On every one of them it
    is equal to Element / GlobalId and to Element / IfcGUID. No node has one without the other, and all values
    are distinct. For C I also have the source IFC file: all 7 775 values are GlobalIds of entities in it.
    Thank you, this is exactly what we need.

    About the files: thank you for the offer, but the models are under an NDA, so I cannot share them.
    I am glad to keep running your builds on them and to send back any diagnostic output without model content.
    If the masked context above is useful, I can send the patch that produces it.

  5. mahach666 commented on Dec 5, 2026

    @mahach666
    Collaborator

    @SergeyPriem
    Thanks for the detailed diagnostics. We’ve merged the follow-up fixes into main at df67a6f. They cover class 17 fragment transforms, class 76 text properties, class 95 lines with normals, the short partition-light record, and the material-name and appearance cases you reported. PR #298

    We reproduced class 17 locally in Navisworks 2027 with non-uniform and mirrored DXF block insertions and verified the resulting world coordinates. We added regression tests for the other layouts based on your diagnostics. The local checks and CI passed.

    Could you rerun D, E, G, H, and I on this commit, both with the default settings and with --no-tree? If a model still fails, the first error in each failing mode and any masked context you’re comfortable sharing would help us investigate. Redacted logs are enough. Thanks again for running these checks on your side.

  6. SergeyPriem commented on Dec 5, 2026

    @SergeyPriem
    ContributorAuthor

    Thanks for your effort and fast updates. I hope this will help:

    nwcio-reply-291-df67a6f.md
    nwcio-three-rules-df67a6f.patch

  7. mahach666 commented on Dec 5, 2026

    @mahach666
    Collaborator

    @SergeyPriem
    Thanks for the patch and the detailed diagnostics. We merged the three fixes in PR #299, and you’re credited as a co-author on the commit.

    Could you rerun all 11 models on main at 8ebcddb, both with the default settings and with --no-tree? That will confirm whether the merged version opens all 11 in both modes.

  8. SergeyPriem commented on Dec 6, 2026

    @SergeyPriem
    ContributorAuthor

    Thank you for merging #299 and for the credit.

    I ran all 11 files on main at 8ebcddb, unmodified: CLI, default settings and --no-tree, .NET SDK 10.0.404,
    Windows 11 x64.

    All 11 files open in both modes (22 of 22 runs, exit code 0).

    File Default --no-tree
    A 14.4 s 8.8 s
    B 8.3 s 6.5 s
    C 2.6 s 2.2 s
    D 67 s 17 s
    E 5.8 s 3.0 s
    F 1.3 s 0.9 s
    G 1.5 s 1.4 s
    H 4.6 s 5.9 s
    I 11.7 s 6.3 s
    OK-1 6.8 s 11.6 s
    OK-2 0.5 s 0.3 s
    • D, E and H read the same as my local reader: equal mesh, triangle, vertex, line and point counts, equal hash of
      the world-space vertices, equal node names, materials and number of replaced characters. Tab names and property
      values are equal in D and E. In H they differ only by the class 76 naming (label vs key), as expected.
    • Diagnostics is empty for D, E and H.
    • Your tests pass here on net10.0: NwcIO.Tests 1489 passed, 11 skipped; NwcIO.Scene.Tests 104 passed, 1 skipped.
      I did not run the net8.0 target (no .NET 8 runtime on this machine).

    From my side issue #291 can be closed. Thank you for the quick work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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