Page MenuHomeFeedback Tracker

"lnbDeleteColumn" => CRASH CRASH and more CRASH!
Closed, ResolvedPublic

Description

this command is broken

Details

Legacy ID
2830178173
Severity
None
Resolution
Fixed
Reproducibility
Have Not Tried
Category
Game Crash
Steps To Reproduce

simple crash:

lnbDeleteColumn [-1]

^^^^ passing array that is shorter than size 2

more sophisticated crash:

  • spawn {

with uiNamespace do {

		lnb = findDisplay 46 ctrlCreate ["RscListNBox", -1];
		lnb ctrlSetPosition [0,0,1,1];
		lnb ctrlCommit 0;
		hint str lnbGetColumnsPosition lnb;

};
for "_i" from 1 to 3 do {

		sleep 2;
		with uiNamespace do {
			lnb lnbDeleteColumn 0;
			hint str lnbGetColumnsPosition lnb;
		};

};
};

^^^^^^^^^^^ deleting last column causes crash

+related crash, related to deleting of the columns, as it will be resizing columns array:

with uiNamespace do {
lnb = findDisplay 46 ctrlCreate ["RscListNBox", -1];
lnb lnbSetColumnsPos [];
};

Additional Information

As it happens, creating LNB control in description.ext with columns[] = {}; and then trying to display it will also cause a crash. It seems no matter what LNB doesn't like to have no columns.

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Game Crash.
Killzone_Kid set Reproducibility to Have Not Tried.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Fixed.
Killzone_Kid set Legacy ID to 2830178173.May 8 2016, 11:57 AM
Killzone_Kid edited a custom field.

FFFFFFFFFFFFFFFFFIXED!