Giter VIP home page Giter VIP logo

Comments (32)

Nice3point avatar Nice3point commented on September 10, 2024 1

@jeremytammik yes, TagTextBug.zip contains a C# project with a full reproduction of this issue

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024 1

They are still looking at REVIT-221696 [IndependentTag TagText throws AccessViolationException]. i added your note on DatumPlane. Thank you!

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024 1

the development team confirmed the issue reported in REVIT-221696 [IndependentTag TagText throws AccessViolationException], closed it, and will address it in the separate new code fix ticket REVIT-223068 [IndependentTag TagText throws AccessViolationException].

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024 1

they confirm: The issue is on our end. We have identified a fix and are working on releasing it in the next update. The problem is that the system is attempting to use the Bending Detail type to access the tag data instead of the correct tag type. As a workaround, the customer can temporarily create a regular tag type instance to access the text data.

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024 1

thank you for the details. i passed them on.

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024 1

work on REVIT-223580 [DatumPlane.CanBeVisibleInView throws AccessViolationException] is in progress. As a temporary workaround, you can check views for the IsTemplate property. If the value is true, then assume CanBeVisibleInView is false without making the call on that view.

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024 1

REVIT-223580 [DatumPlane.CanBeVisibleInView throws AccessViolationException] has been closed now; Resolution: Fixed,
Submitted Version: next major release of Revit.

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

Initial investigation

Property: TagText
Exception: System.AccessViolationException Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@jeremytammik hi Jeremy. Issue for Revit Development team


Bug ticket

Revit version: 2025 only
Class: Autodesk.Revit.DB.IndependentTag
Property: TagText
Category: OST_RebarBendingDetails
Property access: IExternalEventHandler
Exception: System.AccessViolationException Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Issue level: Critical

Description: getting the tag text for "Structural Rebar Bending Details" results in an AccessViolationException. The problem is relevant in 2025 and is not observed in later Revit versions. Another problem is that this type of exception cannot be handled by a catch block since .Net Core, as it is considered unique and requires the application to be terminated.

Revit API fixes required

image

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

For now, we can just disable this property in RevitLookup until we see a fix in the API

from revitlookup.

maartendebeuf avatar maartendebeuf commented on September 10, 2024

Thanks for investigating!
I would also like to report that I discovered that it was successful via the "Revit DB Explorer' tool (https://github.com/NeVeSpl/RevitDBExplorer)

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@maartendebeuf this property also disabled manually in RevitDbExplorer https://github.com/NeVeSpl/RevitDBExplorer/blob/main/sources%2FRevitDBExplorer%2FDomain%2FDataModel%2FMemberAccessors%2FIndependentTag%2FIndependentTag_TagText.cs

I have alreade done it for RevitLookup. Wait for a new release.

But revit api issue still exists

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024

Dear Roman and Maarten,

Thank you both for reporting and analysing this. Sorry to hear about it.

I logged the issue REVIT-221696 [IndependentTag TagText throws AccessViolationException] with our development team for this on your behalf as it requires further exploration and possibly a modification to our software. Please make a note of this number for future reference.

You are welcome to request an update on the status of this issue or to provide additional information on it at any time quoting this change request number.

This issue is important to me. What can I do to help?

This issue needs to be assessed by our engineering team and prioritised against all other outstanding change requests. Any information that you can provide to influence this assessment will help. Please provide the following where possible:

  • Impact on your application and/or your development.
  • The number of users affected.
  • The potential revenue impact to you.
  • The potential revenue impact to Autodesk.
  • Realistic timescale over which a fix would help you.
  • In the case of a request for a new feature or a feature enhancement, please also provide detailed Use cases for the workflows that this change would address.

This information is crucial. Our engineering team has limited resources and must focus their efforts on the highest impact items. We do understand that this will cause you delays and affect your development planning, and we appreciate your cooperation and patience.

Best regards,

Jeremy

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@jeremytammik

Impact on your application and/or your development.

Critical. This bug causes the domain to be terminated, without possibility to catch it.
Normal behaviour: Autodesk.Revit.Exceptions.InvalidOperationException
Current behaviour: System.AccessViolationException

The number of users affected.
All add-in developers. No impact on engineers, as the bug can only be detected by an API call

The potential revenue impact to you.
Negative impact on the structural developers

The potential revenue impact to Autodesk.
The Revit crash is having a negative impact

Realistic timescale over which a fix would help you.
Nearest hotfix

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@jeremytammik

Addin solution with example:
TagTextBug.zip

Select Debug R25 configuration and run debug.

Only Revit 2025. Bundled Snowdon Towers Structural project

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024

thank you very much!

the development team do indeed insist on a complete minimal reproducible case, saying: I do not see a code snippet or a dataset to reproduce this issue. Would the customer provide this information?

I assume that TagTextBug.zip includes all they need?

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@jeremytammik hi Jeremy. The same exception with DatumPlane class. Revit 2025 only #232
ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅

Revit 2024 and lower works fine
ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅

Any updates?

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024

The development team ask: can you provide a sample Revit project that has the category etc. setup? I have nothing handy and would be a big help. Thank you.

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@jeremytammik for Bending Detail you can use dafault revit project
ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅

Plan L1_43_High
ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅

and after placing Bending Detail try to get TagText property using api
ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@jeremytammik as for DatumPlane you can select any Grid and call CanBeVisibleInView using the API
ΠΈΠ·ΠΎΠ±Ρ€Π°ΠΆΠ΅Π½ΠΈΠ΅

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024

I created a separate Jira issue for the access violation caused by datum plane: REVIT-222687 [DatumPlane.CanBeVisibleInView throws AccessViolationException].

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024

thank you for the detailed instructions to reproduce.

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

great news, thanks

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024

Dear Roman and Maarten,

Thank you for your patience with this. The development team are analysing the code fix issue REVIT-222687 [DatumPlane.CanBeVisibleInView throws AccessViolationException] that was created to address the original ticket REVIT-221696 [IndependentTag TagText throws AccessViolationException]. However, they are having trouble reproducing this issue for Grids. They tried calling CanBeVisibleInView on every Grid for every View in the sample project and haven't had any issues. Can you provide the exact Revit version used, the exact RVT file, and the element IDs of the grids that are throwing an exception? Thank you.

Best regards,

Jeremy

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@jeremytammik hi Jeremy.
FIle: "C:\Program Files\Autodesk\Revit 2025\Samples\Snowdon Towers Sample Architectural.rvt"
ElementID: 1275291
Revit version: 25.1.0.44 | 20240516_1515(x64)

The project ships with Revit. I found that this error does not appear in all projects. But it is present in this one. If the bug is not reproduced on this element, it may be that it has been fixed by a fix for IndependentTag

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024

problem reported in REVIT-222687 [DatumPlane.CanBeVisibleInView throws AccessViolationException] was confirmed.

new code fix issue created: REVIT-223580 [DatumPlane.CanBeVisibleInView throws AccessViolationException].

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

Great πŸŽ‰ Then we are waiting for details, I wonder if the reason was the same or not. After all, if different, there are probably other properties/methods that throw AccessViolationException.

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024

REVIT-223068 [IndependentTag TagText throws AccessViolationException] has been resolved and scheduled for inclusion in the next update release.

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

@jeremytammik thanks Jeremy, happy to hear it πŸ™‚

from revitlookup.

Nice3point avatar Nice3point commented on September 10, 2024

I'll disable the restrictions in RevitLookup as soon as this patch comes out for Revit

from revitlookup.

maartendebeuf avatar maartendebeuf commented on September 10, 2024

Thanks Roman and Jeremy for the updates and especially the great work you put into this!

from revitlookup.

jeremytammik avatar jeremytammik commented on September 10, 2024

REVIT-223068 [IndependentTag TagText throws AccessViolationException] has been closed now; Resolution: Fixed,
Submitted Versions: next major release of Revit + next update release of Revit 2025.

from revitlookup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.