It is currently April 23rd, 2024, 6:54 am

[D2D][Fixed] Image Meter - ImageCrop Not Working Properly

Backwards compatibility issues related to the conversion of Rainmeter to D2D.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Image Meter - ImageCrop Not Working Properly

Post by jsmorley »

eclectic-tech wrote:Okay... it' will be removed (again) ;-)
Ok, great. The team is in the underground emergency response bunker wearing level three bio-suits and working on this as we speak. Thanks for reporting and for scaring the shit out of me.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Image Meter - ImageCrop Not Working Properly

Post by eclectic-tech »

jsmorley wrote:Ok, great. The team is in the underground emergency response bunker wearing level three bio-suits and working on this as we speak. Thanks for reporting and for scaring the shit out of me.
It's probably a good thing I didn't include the full screen version! :lol:

I did tell you it crashed my system :x :twisted: ;-)

Hope you didn't spill your morning coffee! :great:
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Image Meter - ImageCrop Not Working Properly

Post by jsmorley »

eclectic-tech wrote:It's probably a good thing I didn't include the full screen version! :lol:

I did tell you it crashed my system :x :twisted: ;-)

Hope you didn't spill your morning coffee! :great:
You are a terrorist, and I'm reporting you to the FBI...

Ok, I think we have found and corrected the issue, get the r3206 version and see if your skin works properly with it.

What was going on was that some math in the skin resulted in Rainmeter trying to create a bitmap with a negative width. Due to the way casting numbers between types are are handled in C++, this resulted in a bitmap of infinite size, or basically an antimatter bitmap, with predictable results, the kind you see in a bad science fiction movie... What it would do is instantly use all, and I mean all, RAM and VRAM (if hardware acceleration is turned on) and cause your system to immediately asphyxiate.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Image Meter - ImageCrop Not Working Properly

Post by eclectic-tech »

jsmorley wrote:You are a terrorist, and I'm reporting you to the FBI...

Ok, I think we have found and corrected the issue, get the r3206 version and see if your skin works properly with it.

What was going on was that some math in the skin resulted in Rainmeter trying to create a bitmap with a negative width. Due to the way casting numbers between types are are handled in C++, this resulted in a bitmap of infinite size, or basically an antimatter bitmap, with predictable results, the kind you see in a bad science fiction movie...
Okay, so now it doesn't crash :thumbup: , but the resulting cropped bar images are "distorted"... fix one thing only to find another! ;-)
Click if you dare...
pic-ugh.gif
At least now they can remove their bio-suits! :D
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Image Meter - ImageCrop Not Working Properly

Post by jsmorley »

eclectic-tech wrote:Okay, so now it doesn't crash :thumbup: , but the resulting cropped bar images are "distorted"... fix one thing only to find another! ;-)
Click if you dare...pic-ugh.gif
At least now they can remove their bio-suits! :D
Can you do a .gif with 4.2 and the same image? I gather that rather than just "cropping" it is somehow cropping and "resizing" when that isn't the expected behavior?
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Image Meter - ImageCrop Not Working Properly

Post by eclectic-tech »

I was going to attach this to the last one... it is from a year or so ago.
music.gif
Will this help?
You do not have the required permissions to view the files attached to this post.
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Image Meter - ImageCrop Not Working Properly

Post by jsmorley »

eclectic-tech wrote:I was going to attach this to the last one... it is from a year or so ago.
music.gif
Will this help?
Yep. We will try to figure this one out today. Somehow the "cropped" image(s) are not being created the same size as the meter W and H that results, and it is resizing them.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5406
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Image Meter - ImageCrop Not Working Properly

Post by eclectic-tech »

Okay... sorry for creating these "Frankenstein" skins that cause you guys so much grief! :17flag

I will wait to see what you find. Thanks for all your help :rosegift:
User avatar
jsmorley
Developer
Posts: 22629
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Image Meter - ImageCrop Not Working Properly

Post by jsmorley »

eclectic-tech wrote:Okay... sorry for creating these "Frankenstein" skins that cause you guys so much grief! :17flag

I will wait to see what you find. Thanks for all your help :rosegift:
No, thank you!