topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Thursday March 28, 2024, 8:11 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Error Box -- Cannot create new PNG  (Read 8830 times)

imscottb

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 38
    • View Profile
    • Donate to Member
Error Box -- Cannot create new PNG
« on: January 03, 2020, 08:41 AM »
Hello Mouser,
I have Automatic Screen Shotter set to start automatically and take screenshots automatically. I have been getting error boxes all day lately and I do NOT know why. I think since the update the other day.
All I can do is click OKAY and then it happens again.
Any ideas why or what to do to fix this??
Thanks, Scott

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #1 on: January 03, 2020, 09:30 AM »
So you're using the latest version that was just put out a couple of days ago?
What does the error say?

imscottb

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 38
    • View Profile
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #2 on: January 03, 2020, 10:05 AM »
Hello Mouser,
Yes, the latest version from a few days ago and you will see what it says if you can see this or let me know how I can send you a picture maybe.
Hopefully, you can see what I see from this link I created in Evernote. https://www.evernote...Od7m-N9ut6yb0i8dNSQ/         Let me know.
I KEEP on getting this and it is soo FRUSTRATING.
I have restarted my computer several times and it is not stopping!!

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #3 on: January 03, 2020, 10:15 AM »
Ok let me try to track this down..  I may have to get you a debug compiled version of the program to figure out where it's freaking out..

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #4 on: January 03, 2020, 10:25 AM »
If you kill the program from task manager and start it up again.. do the errors start happening immediately?
If you right-click on tray and tell it to take a screenshot now, does the error happen?
I'm trying to get a feel for whether the error is happening on EVERY screenshot, or only at a certain point..

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #5 on: January 03, 2020, 10:32 AM »
Email me so we can talk about it offline via email ([email protected]).

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #6 on: January 03, 2020, 11:13 AM »
I've uploaded a test version here:


If you could give that a try.  It won't fix the error per se, but it might stop showing an error box and instead just beep and log an error line to its troubleshooting log.  That would at least be a starting point for me to figure out what's wrong..

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #7 on: January 03, 2020, 11:25 AM »
You know that I have remembered a very recent error, that i think i fixed with my most recent update, that someone reported was causing the same "Error on creating PNG".
It was described here: https://www.donation...x.php?topic=45791.25

Essentially it was related to compression level being set to 1.

Can you check that you have downloaded the very latest version, and check that your compression level is not set to 1 or 10 in the File Saving tab.

imscottb

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 38
    • View Profile
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #8 on: January 03, 2020, 12:17 PM »
I am not sure if my compression level is set to 1 or 10. And I just emailed you a message with the pictures. Hope that helps.
Scott

imscottb

  • Supporting Member
  • Joined in 2010
  • **
  • Posts: 38
    • View Profile
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #9 on: January 03, 2020, 12:18 PM »
No worries, Mouser, with me. I just hope we can figure this out together. I know you do GREAT work. I know you will work with me to resolve it.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #10 on: January 03, 2020, 01:47 PM »
I've uploaded an alpha version which will hopefully be better at pinpointing the error:

https://www.donation...reenshotterSetup.exe
Or portable version:
https://www.donation...nshotterPortable.zip

horst39

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 13
    • View Profile
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #11 on: January 08, 2020, 06:24 AM »
I also am getting since 2 days an error message "Error on creating PNG file".
The file is created but is completely black (in different sizes according to the screenshotted window)
I uninstalled v.1.17.1 and reinstalled v1.16.1 but am getting the same error.
Where are the settings saved? I am surprised as even after uninstalling I get my settings instead of factory settings.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #12 on: January 08, 2020, 08:08 AM »
The fact that the files are there and black and the right size is a real clue.. it seems to rule out a problem with actually saving the file, and more to do with the png data being somehow problematic.. I wonder if it could be something to do with the auxilliary data in the png file (exif, file comments) somehow causing it problems..

Before I work on that hypothesis, can you try redownloading the latest alpha version (see link in previous post above), and then assuming the error is still happening can you tell me:
1. Your operating system.. win10 or winxp?
2. Does the error happen with every capture, or are some successful? Any pattern as to which work and which give error?
3. What are your settings on the File Saving tab? Does changing the compression level make the error go away?
4. If you change format to jpg on the File Saving tab, does the error go away?



Regarding settings -- in the installed version the settings will be in your MyDocuments\DonationCoder\AutomaticScreenshotter directory, and will not be deleted when you uninstall.
« Last Edit: January 08, 2020, 08:20 AM by mouser »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #13 on: January 08, 2020, 08:21 AM »
The most valuable thing would be if someone could figure out a pattern to when the error occurs and doesn't.. 

horst39

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 13
    • View Profile
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #14 on: January 08, 2020, 08:56 AM »
Ops!
Probably you helped me to find the cause of this error!
When I entered into options in order to change from png to jpg, I realized that both "format" and "Quality" fields where empty!
I just reselected "png" and "2" and now everything seems to be OK again!
You should just change your code in order not to allow that these fields may be blank.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #15 on: January 08, 2020, 09:27 AM »
Ops!
Probably you helped me to find the cause of this error!
When I entered into options in order to change from png to jpg, I realized that both "format" and "Quality" fields where empty!
I just reselected "png" and "2" and now everything seems to be OK again!
You should just change your code in order not to allow that these fields may be blank.

Well that's a good clue.

As for them being blank.. They should never be blank.. That shouldn't quite be possible.. The fact that they were suggests that the program may have malfunctioned while shutting down and saving its settings..

But this does give me something I can check for at startup, to alert the user about if it finds the settings blank..

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #16 on: January 08, 2020, 07:55 PM »
I've added code in the new version to detect the situation where those values might be missing and complain/warn the user.

horst39

  • Participant
  • Joined in 2006
  • *
  • default avatar
  • Posts: 13
    • View Profile
    • Donate to Member
Re: Error Box -- Cannot create new PNG
« Reply #17 on: January 09, 2020, 05:45 AM »
Error 404 - Page Not Found: /Software/Mouser/AutomaticScreenshotter/downloads/alpha/AutomaticScreenshotterSetup.exe

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member