You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1.10.0-beta2
Tested with latest nightly (20200202-master) - win64 - Windows 10
Issue details
Under some circumstances a crash (assertion failed) happens when the user CTRL+click to open/'bring to front' the vehicle group window and to show/select a vehicle's group (feature introduced in 1.10.0-beta2, #7800).
It seems to only (and always) happen when both these conditions apply:
a) the vehicle's group has at least one parent (is not at root level) and at least one of its parents is collapsed (feature introduced in 1.10.0-beta1, #7417)
b) the vehicle group window would need a scroll down to show the clicked vehicle's group on the tree-view.
I set up 3 savegames with some of the simplest example cases for the issue:
9 groups, each being a subgroup of the previous one (a 9-deep level group structure)
(cases 1 and 2 crash with a default group window size of 8 groups shown, or smaller)
9 groups, each being a root group except one, which is a subgroup of the last root group
3 groups, 2 at root level and another being a subgroup of the last one
(case 3 only crashes with a resized group window, to its minimum height of 2 groups shown)
Expected result
The vehicle group window is opened (if not already), and scrolled if needed to show/select the vehicle's group.
Actual result
The game crashes with the error message:
Assertion failed at line 702 of d:\a\1\s\src\widget_type.h: this->count <= this->cap ? (position == 0) : (position + this->cap <= this->count)
Steps to reproduce
Load one of the 3 saves
Click on the 'Display list of company's road vehicles' button on the toolbar to open the road vehicle group window
Collapse any group/node on the tree-view of the groups, to hide its subgroups
If testing case 3, resize the vehicle group window to its minimum height (only 2 groups shown)
CTRL+click on the vehicle and the game will crash with "Assertion failed at line 702 of src\widget_type.h"
Version of OpenTTD
1.10.0-beta2
Tested with latest nightly (20200202-master) - win64 - Windows 10
Issue details
Under some circumstances a crash (assertion failed) happens when the user CTRL+click to open/'bring to front' the vehicle group window and to show/select a vehicle's group (feature introduced in 1.10.0-beta2, #7800).
It seems to only (and always) happen when both these conditions apply:
a) the vehicle's group has at least one parent (is not at root level) and at least one of its parents is collapsed (feature introduced in 1.10.0-beta1, #7417)
b) the vehicle group window would need a scroll down to show the clicked vehicle's group on the tree-view.
I set up 3 savegames with some of the simplest example cases for the issue:
9 groups, each being a subgroup of the previous one (a 9-deep level group structure)
(cases 1 and 2 crash with a default group window size of 8 groups shown, or smaller)
9 groups, each being a root group except one, which is a subgroup of the last root group
3 groups, 2 at root level and another being a subgroup of the last one
(case 3 only crashes with a resized group window, to its minimum height of 2 groups shown)
Expected result
The vehicle group window is opened (if not already), and scrolled if needed to show/select the vehicle's group.
Actual result
The game crashes with the error message:
Assertion failed at line 702 of d:\a\1\s\src\widget_type.h: this->count <= this->cap ? (position == 0) : (position + this->cap <= this->count)
Steps to reproduce
Files
Features 7800 7417 issue - savegames.zip
The text was updated successfully, but these errors were encountered: