LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Right-clicking in large project locks up LabVIEW for a minute or two

Solved!
Go to solution

@thutch79 wrote:

 

Happy to share code to help you find a fix/workaround. 


I sent you a PM through the forums with contact info.

0 Kudos
Message 11 of 23
(1,228 Views)

@thutch79 wrote:

I've done some work removing ini files to narrow it down. It is clearly MessageMaker.ini that is acting up. With that removed, right clicking is instant. With it there, there's at least a few second delay, if not very long delay some times.

 

Happy to share code to help you find a fix/workaround. Please contact me privately, provide source distribution instructions and a place to upload.


Well, that fix doesn't work for me.

 

Could it just be coincidence? I don't always have this issue, so disabling MessageMaker.ini might be a red haring.

 

A few things I noticed:

Sometimes it takes forever (have to use task manager).

Sometimes I get 'not enough memory' though.

I do seem to get this when an arrays comes out of an (class) unbundle.

If I get it, restarting LabVIEW and trying again always crashes too.

0 Kudos
Message 12 of 23
(1,203 Views)

How did you disable MessageMaker.ini? I found that just adding a -bak to the extension didn't disable it. Labview must not filter by file type when loading those. It must find all the files and as long as it finds the info it's looking for in them, they work. I actually backed up the entire directory to a separate spot, deleted all of them, then added the 4 AF ones back one by one until I saw the delay in right clicks to find it's MessageMaker.ini.

Message 13 of 23
(1,191 Views)

@thutch79 wrote:

How did you disable MessageMaker.ini? I found that just adding a -bak to the extension didn't disable it. Labview must not filter by file type when loading those. It must find all the files and as long as it finds the info it's looking for in them, they work. I actually backed up the entire directory to a separate spot, deleted all of them, then added the 4 AF ones back one by one until I saw the delay in right clicks to find it's MessageMaker.ini.


I did rename them. I'll try to zip them instead. Thanks.

0 Kudos
Message 14 of 23
(1,189 Views)

Update: I worked with @thutch79 to narrow down the issue and get a bug filed to LV R&D (Bug 2361987) regarding project right-click menus slowing down in large projects with lots of classes in LabVIEW 2022 Q3 and later. I know of two possible workarounds at this time:

 

1. Disable the Actor Framework project providers as described upthread.

2. Replace the following VI with the one attached to this reply in LabVIEW 2022 Q3 and 2023 Q1.

[LabVIEW 20xx]\vi.lib\Utility\LVClass\Read Class Ancestry.vi

 

I know for a fact that (1) works, and thutch79 confirmed that (2) works on his codebase as well. Thanks thutch79 for sharing your code with me and LabVIEW R&D so we could narrow down the issue, get you a workaround, and get a bug filed.

Message 15 of 23
(1,152 Views)

@Darren wrote:

Update: I worked with @thutch79 to narrow down the issue and get a bug filed to LV R&D (Bug 2361987) regarding project right-click menus slowing down in large projects with lots of classes in LabVIEW 2022 Q3 and later. I know of two possible workarounds at this time:

 

1. Disable the Actor Framework project providers as described upthread.

2. Replace the following VI with the one attached to this reply in LabVIEW 2022 Q3 and 2023 Q1.

[LabVIEW 20xx]\vi.lib\Utility\LVClass\Read Class Ancestry.vi

 

I know for a fact that (1) works, and thutch79 confirmed that (2) works on his codebase as well. Thanks thutch79 for sharing your code with me and LabVIEW R&D so we could narrow down the issue, get you a workaround, and get a bug filed.


I know for a fact that 1) doesn't work for me.😑

 

And it's not just a slow down; I often have to use task manager to quit (even after a 40 minutes lunch).

0 Kudos
Message 16 of 23
(1,130 Views)

Try 2. To test, I opened my project as normal and right clicked a vi in a class. I had to kill labview after no response for 20 minutes.  I applied Darren’s fix to the labview version I’m using (2023Q1 64bit) and right clicking now takes a second or two. Dramatic difference. 

0 Kudos
Message 17 of 23
(1,124 Views)

@thutch79 wrote:

Try 2. To test, I opened my project as normal and right clicked a vi in a class. I had to kill labview after no response for 20 minutes.  I applied Darren’s fix to the labview version I’m using (2023Q1 64bit) and right clicking now takes a second or two. Dramatic difference. 


I would, but there's no such VI in LV20.

 

Also, the Vi is in LV22.

0 Kudos
Message 18 of 23
(1,111 Views)

@weibe The fix I shared with thutch79 was specific to a bug introduced in LabVIEW 2022 Q3, so if you're having issues in LabVIEW 2020 it would be a different cause.

 

If there's any way you could share your code and steps to reproduce the issue, please PM me and we can talk through more details, I want to get you unstuck if I can.

0 Kudos
Message 19 of 23
(1,093 Views)

@Darren wrote:

@weibe The fix I shared with thutch79 was specific to a bug introduced in LabVIEW 2022 Q3, so if you're having issues in LabVIEW 2020 it would be a different cause.


Well, I have to upgrade someday...

 


@Darren wrote:

If there's any way you could share your code and steps to reproduce the issue, please PM me and we can talk through more details, I want to get you unstuck if I can.


I'm not sure if it's a specific project, I've seen it happen in a single VI, and after crashing it happened again with the same VI.

 

I think I'll have to disable a custom right click plug in menu, because there's a change it is the cause (although it doesn't do much, there is a loop in there).

 

If I ever 'catch' this bug, I'll let you know.

0 Kudos
Message 20 of 23
(1,082 Views)