Print at Dec 18, 2025, 4:32:26 PM View all posts in this thread on one page
Posted by hal9000 at May 9, 2012, 10:41:23 AM
BUG: Persistent background image on file after deletion
First of all, sorry to post here, but I wanted to attach a file larger than the maximum allowed by the bug tracker. Although now I'm writing here I cannot see controls to upload a file at all. thinking

I cannot reproduce it using a new SH3D project but I had the problem with the project I'm working on with SH3D 3.5 installed on Windows 7.

I have a copy of the file (I'll try to upload some how) on which I deleted all the content except the background image. It takes about 1.7M, since it's the size of the background image.

If you load that file, delete the background and then save the file again, the size of the file is still 1.7M. More than that, if you then add another background image and save the size of the file will be 1.7M plus the new background size.
----------------------------------------
If a long walk every day were healthy, mailmen would be immortal. tongue

Posted by hansmex at May 9, 2012, 11:16:31 AM
Re: BUG: Persistent background image on file after deletion
Angel,

Read this message to learn about sharing files and images.

Hans
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by hal9000 at May 9, 2012, 11:34:03 AM
Re: BUG: Persistent background image on file after deletion
Thanks Hans.

So no way to attach... :(

I'll try to share it from SkyDrive then, but in that case I'll post it on the bug tracker. I just did it here for the attachments.

Regards.
----------------------------------------
If a long walk every day were healthy, mailmen would be immortal. tongue

Posted by hal9000 at May 9, 2012, 11:43:19 AM
Re: BUG: Persistent background image on file after deletion
Ok, bug opened on the tracker.

Anyway, this is the file in case some one want to check it:
https://skydrive.live.com/redir.aspx?cid=124d...;authkey=!AFColpei6a0uCbg

Thanks again.
----------------------------------------
If a long walk every day were healthy, mailmen would be immortal. tongue

Posted by hansmex at May 9, 2012, 3:32:36 PM
Re: BUG: Persistent background image on file after deletion
Angel, Emmanuel,

I downloaded your file, and opened it on my computer (Ubuntu 12.04 with SH3D 3.5).

1 - The file opens, but the screen does strange things: it seems as if the program opens on a screen that is much bigger than my screen: at first I thought I was looking at a screen shot. In the top left corner there is a small window with SH3D, about 3x smaller than usual. Sub-windows (like Preferences) open in normal size and are accessible. I deleted the background image and saved the empty file again. It has the same size as before. I then closed that window.

2 - I extracted your image from the SH3D file, and saved it as a JPG. I then opened SH3D again and imported that JPG as a background image. I then saved the file, deleted the background image and saved it again. The file with image is 1.8 Mb, the file without image is 5.7 Kb. Both files now open in normal windows, and seem to behave normally.

If you need further testing, please let me know.
I attach the new file with image.

Hans

http://www.mediafire.com/?ycor2gi9f2j3ak4
----------------------------------------
Hans

new website - under constuction
hansdirkse.info

Posted by hal9000 at May 9, 2012, 6:08:38 PM
Re: BUG: Persistent background image on file after deletion
Thanks for your testing Hans.

So if I understand well you had to import the same background image (extracted from the zip SH3D container)over the supposedly deleted background image and then the second deletion is correctly made, right?

A weird thing... in addition I don't see the window size problem that you saw. on my PC all is normal except for the background image remain inside the SH3D file after being "deleted".

Regards.
----------------------------------------
If a long walk every day were healthy, mailmen would be immortal. tongue

Posted by hal9000 at May 9, 2012, 6:16:08 PM
Re: BUG: Persistent background image on file after deletion
No way...

I deleted the background on my file and saved (size 1.7M). I extracted "0" and renamed it to "0.jpg", then imported it as background and saved (size 3.5M). Finally I deleted the background again and saved (size 1.7 again). :(

Anything different of what you did, Hans?
----------------------------------------
If a long walk every day were healthy, mailmen would be immortal. tongue

Posted by Puybaret at May 9, 2012, 7:22:50 PM
Re: BUG: Persistent background image on file after deletion
Guys don't look further, I perfectly know why it behaves like this, because it's the way I programmed it.
The remaining background image is bound to the default level that exists in Sweet Home 3D before you add a first level, and as soon as you create a level this image can't be removed.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by hal9000 at May 9, 2012, 7:29:17 PM
Re: BUG: Persistent background image on file after deletion
Oh, I see. Mystery solved then.

Certainly I created additional levels which I removed when I deleted all the content, leaving only the first level with the background image.

I hope it can be fixed easily. It's not a big problem, but it's more annoying when the imported background image has a large size, like the one I used.

Puybaret, if for some reason the fixing implies many or complex changes, I guess at least you could make a simple substitution of the actual image file for a dummy image file (0 bytes or 1x1 pixels), that way the wasted space is released.

Thanks and regards.
----------------------------------------
If a long walk every day were healthy, mailmen would be immortal. tongue

Posted by Puybaret at May 16, 2013, 5:55:51 PM
Re: BUG: Persistent background image on file after deletion
This issue was fixed in version 3.6.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator