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

Tigl viewer crashes without report when xml not valid #994

Open
PSeelemeyer opened this issue Jan 22, 2024 · 3 comments
Open

Tigl viewer crashes without report when xml not valid #994

PSeelemeyer opened this issue Jan 22, 2024 · 3 comments

Comments

@PSeelemeyer
Copy link

When an invalid xml scheme is opened, Tigl crashes without a report. The event is for exemple triggered by this block:

                        <positioning uID="Turbine_Blade1_Sec1_Pos">
                            <name>MyPosition</name>
                            <length>1.5</length>
                            <sweepAngle/>
                            <dihedralAngle>0.0</dihedralAngle>
                            <toSectionUID>ExpTurb_Blade1_Sec1</toSectionUID>
                        </positioning>

where the sweep angle should be defined as

                            <sweepAngle>0.0</sweepAngle>

, however a report from tigl about the error would be helpful.

@joergbrech
Copy link
Contributor

Thanks for opening an issue here! Would you be able to upload a minimal example CPACS file here, so that I can try to reproduce this?

@PSeelemeyer
Copy link
Author

Yes, I created a short example. The xml will instantly crash the TIGL viewer (TiXI: v3.3.0, TiGL: v3.3.0, OpenCASCADE: v.7.4.0). If the positioning of "ExpTurb_Blade1_Sec2_Pos" is changed to the commented formulation, the file works.

You need to change the ending back to .xml after downloading.

Instant_Crash_short.xml.txt

@joergbrech
Copy link
Contributor

I can confirm this. I believe the crash originates in this line, so this may be a tixi bug.

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

No branches or pull requests

2 participants