Page MenuHomeFeedback Tracker

Game crashes to desktop when using 'lbClear' and a couple of mods
Need More Info, NormalPublic

Description

Title says it all.
I can't figure out whether it's down to any of the mods or basegame.

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
19043.1288
Category
Game Crash
Steps To Reproduce
  1. Load either CUP Weapons or RHS AFRF. CBA is optional, crash occurs whether it's loaded or not. CBA is only useful for buttons in this example.
  2. Make a mission or load into the virtual arsenal (just get access to the debug console in mission).
  3. Execute this code.
  4. Select the 'AK_762x39' category when using CUP Weapons, 'AK_545x39' when using RHS AFRF.
  5. Select one or multiple entries (magazines) in the 2nd listbox using shift. You must just shift click once, so you get it like in the picture.
  6. Select the 'AK_545x39' category when using CUP Weapons,, 'AK_762x39' when using RHS AFRF.
  7. Game crashes to desktop.
Additional Information

If you follow the logs I made, it crashes when it tries to clear.

I have tried to workaround the problem by using 'lbDelete' on every entry in the listbox (see commented out code), but it only pushes the problem further down the line:
When trying to add stuff back into the listbox after having removed everything, it crashes.

Arma version is 2.06 profiling branch, latest release.


Picture that I forgot to include.

Event Timeline

johnb43 created this task.Oct 18 2021, 1:38 PM
johnb43 edited Steps To Reproduce. (Show Details)
johnb43 edited Additional Information. (Show Details)
johnb43 edited Additional Information. (Show Details)Oct 18 2021, 1:42 PM
dedmen changed the task status from New to Need More Info.Oct 20 2021, 12:40 PM
dedmen added a subscriber: dedmen.

cma_x64AVX2!cma_x64AVX2 [fail:0]

crash is in your custom cma_x64AVX2 memory allocator, try not using that, that will probably fix it.
Also get rid of your -maxvram=6000 start parameter, thats nonsense.

cma_x64AVX2!cma_x64AVX2 [fail:0]

crash is in your custom cma_x64AVX2 memory allocator, try not using that, that will probably fix it.
Also get rid of your -maxvram=6000 start parameter, thats nonsense.

I have removed the memory allocator and set it to default, removing the maxvram parameter aswell - but to no avail, still crashes at the exact same spot.

Disabled Large-page Support too, but also the same result:

johnb43 edited Additional Information. (Show Details)Oct 23 2021, 7:08 PM
johnb43 edited Steps To Reproduce. (Show Details)Oct 24 2021, 10:21 AM

have you reported this issue to CUP and RHS?

johnb43 added a comment.EditedOct 24 2021, 1:06 PM

have you reported this issue to CUP and RHS?

No, as I figured it was mod independent. I have managed to reproduce it just now with only NIArms and CBA loaded.
I had a friend try to reproduce it with RHS: First time it crashed for him, then it didn't after that.

EDIT:
I forgot to mention that I managed to reproduce this bug on a different computer with the 2.04 legacy branch and the 2.06 stable branch.

I forgot to mention that I managed to reproduce this bug on a different computer with the 2.04 legacy branch and the 2.06 stable branch.

Could you please provide a repro with no mods loaded. The mods might have lb event handlers set which could conflict with lbClear and thus cause crash. Not much we can do about that. However if the crash happens in vanilla content, we can investigate the cause more thoroughly. Thanks

I forgot to mention that I managed to reproduce this bug on a different computer with the 2.04 legacy branch and the 2.06 stable branch.

Could you please provide a repro with no mods loaded. The mods might have lb event handlers set which could conflict with lbClear and thus cause crash. Not much we can do about that. However if the crash happens in vanilla content, we can investigate the cause more thoroughly. Thanks

I couldn't get it to crash when there were only a few items in the list (say up to 20 or 30). But when there is more than a certain amount, it crashes.
I added 3x more entries to the list (see here) which made it crash consistently on my end.

Tenshi added a subscriber: Tenshi.EditedThu, Nov 18, 1:52 PM

Tested on Profiling build 2.06.148478
Tested the script with only CBA and CUP weapons loaded, had no crashes or freezing while preforming the repro.
Can you test if the issue persists on profiling for you?

Tested on Profiling build 2.06.148478
Tested the script with only CBA and CUP weapons loaded, had no crashes or freezing while preforming the repro.
Can you test if the issue persists on profiling for you?

I have reproduced it on the most recent profiling branch with this code. No mods loaded whatsoever, which makes me believe it's OS/PC not playing nicely with Arma 3.

I can do it with CBA and CUP Weapons too if wanted.

Tenshi added a comment.EditedFri, Nov 19, 9:59 AM

Thanks for the response. Which weapon did you choose to crash yourself with, in your test without mods?
I want to see if I'm able to reproduce it on my device.
Edit: https://youtu.be/Q5FTMVSJJN0 this is my repro attempt on Profiling. Am I doing the same as what causes your crash?

Thanks for the response. Which weapon did you choose to crash yourself with, in your test without mods?
I want to see if I'm able to reproduce it on my device.
Edit: https://youtu.be/Q5FTMVSJJN0 this is my repro attempt on Profiling. Am I doing the same as what causes your crash?

As far as I have been able to tell, as long as the category you choose on the far left has enough entries you will make it crash by doing what I do in the video.

https://youtu.be/CjpJ00t9GcM