LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Crash when replacing a TabControl with "Replace No Attributes" method

Solved!
Go to solution

Hi,

 

In the same vein as my previous topic: https://forums.ni.com/t5/LabVIEW/Crash-when-undoing-a-TabControl-replace/m-p/4426977

 

This time, just replacing a TabControl using GObject method "Replace No Attributes" is enough to crash LabVIEW.

I have tested by providing both inputs (either "Style" or "Path"), with LV2020 SP1 (32bit), LV2021 SP1 (32bit) and LV2023 Q3 (64bit).

 

LabVIEW message:

raphschru_1-1741484154082.png

 

Crash report:

e:\builds\penguin\labview\branches\2020\dev\source\panel\datamgr.cpp(1487) : DAbort 0xAC04EE80: replace should have set typeChanged? 

 

Here is the (very) minimal script to reproduce the crash:

raphschru_0-1741482568696.png

I am currently coding a scripting tool that helps customizing GUIs by replacing existing controls by new ones, and a bug like this is potentially a showstopper for TabControls.

This is surprising because it works like a charm for clusters, which are much more complex data structures to replace, especially when initial and final data types don't match.

 

The only other way I can think of is way more complicated:

1. Create (from path) a new TabControl on the target VI;

2. Position it where there is the current TabControl (control on the FP and terminal on the BD);

3. Disconnect the current and reconnect the new terminal on the BD and potentially the connector pane;

4. Get a list of all static links to the current TabControl (references, property nodes, invoke nodes, locals, event structure cases), disconnect those links and reconnect them to the new TabControl.

5. Get a list of all contained controls and decorations by page and move them to the new TabControl;

6. Finally remove the old TabControl...

 

A huge amount of work compared to just calling a single method...

 

Regards,

Raphaël.

Message 1 of 3
(657 Views)
Solution
Accepted by topic author raphschru

I've reported this issue to LabVIEW R&D as Bug 3045969.

I was able to reproduce it LabVIEW 2025 Q1 Patch 1 as well.

Message 2 of 3
(609 Views)
Solution
Accepted by topic author raphschru

It seems the bug was corrected in LabVIEW 2025 Q3.

 

It appears in the LabVIEW 2025 Q3 bug fixes as bug #3045969:

"LabVIEW Crashes When Executing Replace No Attributes Method on Tab Control"

 

Another related bug fix is also bug #3040552:

"LabVIEW Sometimes Crashes After Replacing Tab Control with Another Tab Control"

 

This second bug fix may also include indirectly bug #3030762 since it was also corrected!

 

Thanks NI guys for improving LabVIEW!

0 Kudos
Message 3 of 3
(58 Views)