1
Bug reports / Crash to desktop
« on: April 11, 2023, 12:18:15 PM »
A couple of years ago I posted a bug report about milkweed causing a crash to desktop, after some discussions and tests it was marked as not a bug as it seemed to stop happening. It seems it was a linux problem and only affected my install.
Around the time of the last update fix it started happening again, this could be a coincidence or that I only started harvesting milkweed then. I can pick young leaves, I can harvest plants and thresh them without picking the plant up, if I have plants in my inventory then opening the inventory to drop them causes a ctd.
I was not going to report it again as it seems a specific problem with just my install and I have a work around to prevent the ctd, but this week a user reported a bug in BAC that seemed similar. When he tried to create a dry quarter log the system suffered a cstd, he is also on linux. It seems there is a limit to the length of filenames in linux and when the mod tried to add ww-dry_lb_wood.png it crashed. It was suggested that gfx names needed to be less than 10 characters andshortening the name of the file and the recipe solved the problem. I wondered if the same thing was causing thye milkweed problem.
I started urw from a terminal and tried the dry log recipe and the terminal showed
*** buffer overflow detected ***: terminated
/usr/bin/urw: line 170: 180287 Aborted (core dumped)
I then tried opening my inventory with a milkweed plant in it and got
*** buffer overflow detected ***: terminated
/usr/bin/urw: line 170: 161937 Aborted (core dumped)
This seems to imply the problems are similar but the milkweed image. flo-milkweed.png, is the same length as several other plants like flo-lakereed.png which work as expected. Another difference between the two cases is the dry log fails when trying to add the item in the world as a being prepared object, the milkweeds are displayed correctly in the world just fail when trying to display the image in the inventory screen.
Around the time of the last update fix it started happening again, this could be a coincidence or that I only started harvesting milkweed then. I can pick young leaves, I can harvest plants and thresh them without picking the plant up, if I have plants in my inventory then opening the inventory to drop them causes a ctd.
I was not going to report it again as it seems a specific problem with just my install and I have a work around to prevent the ctd, but this week a user reported a bug in BAC that seemed similar. When he tried to create a dry quarter log the system suffered a cstd, he is also on linux. It seems there is a limit to the length of filenames in linux and when the mod tried to add ww-dry_lb_wood.png it crashed. It was suggested that gfx names needed to be less than 10 characters andshortening the name of the file and the recipe solved the problem. I wondered if the same thing was causing thye milkweed problem.
I started urw from a terminal and tried the dry log recipe and the terminal showed
*** buffer overflow detected ***: terminated
/usr/bin/urw: line 170: 180287 Aborted (core dumped)
I then tried opening my inventory with a milkweed plant in it and got
*** buffer overflow detected ***: terminated
/usr/bin/urw: line 170: 161937 Aborted (core dumped)
This seems to imply the problems are similar but the milkweed image. flo-milkweed.png, is the same length as several other plants like flo-lakereed.png which work as expected. Another difference between the two cases is the dry log fails when trying to add the item in the world as a being prepared object, the milkweeds are displayed correctly in the world just fail when trying to display the image in the inventory screen.