XbimGeometry icon indicating copy to clipboard operation
XbimGeometry copied to clipboard

StackOverflowException when opening IFC file (V5). Freeze with v6.

Open santiagoIT opened this issue 2 years ago • 8 comments

When opening the IFC file with Xbim.Geometry.Engine.Interop.5.1.437 a StackOverflow exception occurs.

Stackoverflow

The old XBim-Explorer (V4) can open the file. The new XBim-Explorer (V5 - compiled locally) completely crashes (process dies) while 'creating geometry'...

I tried using the develop nuget feed (v 6.0.414-develop) and then the program just freezes.

To reproduce the problem the following is sufficient:

using (var model = IfcStore.Open(ifcFilePath))
            {
                var modelcontext = new Xbim3DModelContext(model);
                modelcontext.CreateContext(XbimProgressDelegate);  // StackOverflow happens during this call
            }

Please let me know if I can be of any help. I am willing to assist. But I need some guidance.

StackOverflow.zip

santiagoIT avatar Mar 15 '23 20:03 santiagoIT

@SteveLockley We have run into this issue with another IFC file. I am willing to spend time on this. Would it be possible for you to give me some quick guidance on how to best approach this?

santiagoIT avatar Jun 12 '23 17:06 santiagoIT

Hi @santiagoIT , it is great you are giving a try to several versions of xbim. There is also recent development branch targeting .NET 6, which also uses different approach to process many geometry types. Running our tooling, this has processed the model, but raised two warnings, which might be the shapes making V4 and V5 fail:

[WRN] Cut operation on IfcProduct #12241 failed. Body shape only has been used. See log for details.
[WRN] Cut operation on IfcProduct #465274 failed. Body shape only has been used. See log for details.

Is this what you would expect to see? image

martin1cerny avatar Jun 13 '23 14:06 martin1cerny

@martin1cerny Thank you for looking into this!! It is great to hear that the .NET 6 version can open the file.

Yes, the screenshot looks fine!

Do you have a rough estimate to when the .NET 6 version will be released?

santiagoIT avatar Jun 13 '23 17:06 santiagoIT

The code is available in a branch: https://github.com/xBimTeam/XbimGeometry/tree/feature/netcore It is not production ready, so we use private Nuget feed. Would you be interested to participate in the testing and development?

martin1cerny avatar Jun 16 '23 12:06 martin1cerny

@martin1cerny Yes, I would be happy to assist with testing and development :-) Thank you!!

santiagoIT avatar Jun 16 '23 16:06 santiagoIT

Hi,

I am having the same issue with the version 5.1.437, and likely in the version 5.1.666-develop the problem has been fixed. Can you please clarify when the new production release is planned?

Thanks

vchekalin avatar Jul 11 '23 09:07 vchekalin

Hi @martin1cerny, are there any plan for a new release? Please see my comment above.

vchekalin avatar Jul 24 '23 10:07 vchekalin

Hi, i have the same error.

terroj avatar Jul 27 '23 13:07 terroj