It is currently December 12th, 2019, 9:38 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: 19864
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Image Meter - ImageCrop Not Working Properly

jsmorley » July 28th, 2018, 12:40 pm

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: 3641
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Image Meter - ImageCrop Not Working Properly

eclectic-tech » July 28th, 2018, 1:04 pm

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: 19864
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Image Meter - ImageCrop Not Working Properly

jsmorley » July 28th, 2018, 1:27 pm

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: 3641
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Image Meter - ImageCrop Not Working Properly

eclectic-tech » July 28th, 2018, 1:46 pm

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: 19864
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Image Meter - ImageCrop Not Working Properly

jsmorley » July 28th, 2018, 1:53 pm

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: 3641
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Image Meter - ImageCrop Not Working Properly

eclectic-tech » July 28th, 2018, 2:04 pm

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: 19864
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Image Meter - ImageCrop Not Working Properly

jsmorley » July 28th, 2018, 2:06 pm

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: 3641
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Image Meter - ImageCrop Not Working Properly

eclectic-tech » July 28th, 2018, 2:11 pm

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: 19864
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Image Meter - ImageCrop Not Working Properly

jsmorley » July 28th, 2018, 2:13 pm

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!