Page 1 of 1

[0.16.51] Game crashes if you press Enter near too many cars

Posted: Tue Jul 31, 2018 4:00 am
by beiju
In a mod I made a car entity with no collision mask and spawned 3,000 of them on top of each other (for a reason, I swear). I pressed Enter, just to see what would happen, and the game crashed.

I didn't save the version of the code that crashed because I wasn't planning to report what a dumb thing I did, but people suggested I report it anyway. If necessary I can re-create the mod that caused it.

Re: [0.16.51] Game crashes if you press Enter near too many cars

Posted: Tue Jul 31, 2018 4:21 am
by beiju
Since I saw you couldn't reproduce it on stream, maybe it's to do with the prototype of the car I used, which has no collision mask

Code: Select all

local test_marker = {
    type = "car",
    name = "test-marker",
    collision_mask = {},
    selection_box = {{-1.5, -1.5}, {.5, .5}},
    minable = {mining_time = 0},
    flags = {"not-repairable", "not-on-map", "not-blueprintable", "not-deconstructable", "placeable-off-grid"},
    time_before_removed = 60 * 10,
    final_render_layer = "lower-object",
    splash_speed = .5,
    splash = {
        {
            filename = "__ProofOfConcept__/graphics/fading_arrow_orange.png",
            line_length = 7,
            width = 64,
            height = 64,
            frame_count = 14,
        }
    },
    
    weight = 1,
    braking_force = 1,
    friction_force = 1,
    energy_per_hit_point = 1,
    animation = data.raw.car.car.animation,
    effectivity = 1,
    consumption = "1kW",
    rotation_speed = 1,
    burner = data.raw.car.car.burner,
    inventory_size = 1,
}


Re: [0.16.51] Game crashes if you press Enter near too many cars

Posted: Tue Jul 31, 2018 4:40 am
by beiju
I attached a simplified version of the mod and a save game with too many cars (spawned by command). When I load this save and hit enter, I get the crash whose log is also in that zip file.

Re: [0.16.51] Game crashes if you press Enter near too many cars

Posted: Tue Jul 31, 2018 6:00 pm
by Rseding91
Thanks for the report however I can't reproduce the crash.

Based off the crash log it looks like it ran out of video memory after you entered the car.