DonationCoder.com Forum

DonationCoder.com Software => Mouser's Zone => Screenshot Captor => Topic started by: brotherS on October 07, 2005, 01:03 PM

Title: strange bug: load/display last image
Post by: brotherS on October 07, 2005, 01:03 PM
I found a very strange bug in the latest version. To reproduce,
It will not display that image :(

I first thought it was related to the name/size/whatever of the image, but the same happened when I removed that... you can click all other images after you start Screenshot Captor, just not the last one.
Title: Re: strange bug: load/display last image
Post by: mouser on October 07, 2005, 01:12 PM
i'm afraid this is probably the result of the new code i added which is supposed to detect the sitation when you delete the current image and its trying to change to a blank image..  must be a bad side effect of this i'm afraid.  let me try to recreate and study.
Title: Re: strange bug: load/display last image
Post by: mouser on October 07, 2005, 01:15 PM
im not sure exactly what is going on but here is what i think:
1) it THINKS it is already displaying the last image, but its not.
2) so when you click on it, its refusing to *redisplay* it.
3) so if you click on another, and then back on last, it displays it, is that right?

if so then i think i can fix it asap.
Title: Re: strange bug: load/display last image
Post by: mouser on October 07, 2005, 01:18 PM
if this bug happens reliably for you brotherS, please don't do anything like delete any files or change any settings -

can you try the new version i just uploaded (normal download link) and see if the problem is still there?
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 03:00 AM
3) so if you click on another, and then back on last, it displays it, is that right?
that's right!

if this bug happens reliably for you brotherS, please don't do anything like delete any files or change any settings -

can you try the new version i just uploaded (normal download link) and see if the problem is still there?
I tried - but that installer was *exactly* the same size as the installer I downloaded yesterday and has the same problem.
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 03:12 AM
ok, let me finish some more changes and then reupload a new version to test.
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 03:30 AM
ok, let me finish some more changes and then reupload a new version to test.
Great!  :up:

Btw, the download page says the latest version is "Screenshot Captor 2.00.14", the "about" info says it's .16 - a bit confusing...  ;)
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 03:53 AM
can you try the latest version and see if it still happens:
https://www.donationcoder.com/Software/Mouser/screenshotcaptor/downloads/ScreenshotCaptor.exe

if it does then we can try a version where i disable this new code and see if that fixes it.
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 04:04 AM
Btw, the download page says the latest version is "Screenshot Captor 2.00.14", the "about" info says it's .16 - a bit confusing...  ;)
I understand why you don't want to change "Screenshot Captor 2.00.14" on the download page.

Idea: use .1400, .1401, .1402 etc. in the "about" info instead of .14, .15, .16 etc.

if it does then we can try a version where i disable this new code and see if that fixes it.
The new version didn't fix it, lets try with disabled new code.
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 04:27 AM
i should increase middle version occasionally and use last version for builds instead of every update.
the reason i dont update the release page when doing tests is that
it gets picked up by sites like fileforum and announced.

ok new version up, see if it works.  if so then i still need help testing why the old code wasnt working.. if it doesnt work then its a dif bug we need to fix.  ps check your about box, it should say 2.00.18 now (i think previous version should have said 2.00.17 btw unless i messed up).
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 04:44 AM
i should increase middle version occasionally and use last version for builds instead of every update.
the reason i dont update the release page when doing tests is that
it gets picked up by sites like fileforum and announced.
Ah, ok! You should release 2.1 as soon as this bug is fixed :)

ok new version up, see if it works.  if so then i still need help testing why the old code wasnt working.. if it doesnt work then its a dif bug we need to fix.  ps check your about box, it should say 2.00.18 now (i think previous version should have said 2.00.17 btw unless i messed up).
It shows .18 but it's still not working :(
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 04:52 AM
ok i guess its something else then..
hmm.. trying to think what it could be..

so on startup the window is blank.
if you then adjust the zoom, does it suddenly display?

do you have your screenshot captor set to start minimized or not?
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 04:59 AM
so on startup the window is blank.
Yes - and I also just noticed that it DOES show the name of the last image beneath the empty space, so it seems it really tries to load that image but fails.

if you then adjust the zoom, does it suddenly display?
No.

do you have your screenshot captor set to start minimized or not?
Yes, I have.

Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 05:21 AM
ok, let's try again with 2.00.19 , same download url.

ps. i appreciate all the testing - i'm really going to have to have some kind of rewards for all you people who help so much with the testing..  any ideas?
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 05:32 AM
ok, let's try again with 2.00.19 , same download url.
Same problem there...

ps. i appreciate all the testing - i'm really going to have to have some kind of rewards for all you people who help so much with the testing..  any ideas?
Err, no idea right now... but that may change ;)
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 05:42 AM
does the name and comments box show info for the file?
and in the status bar, it says "Loaded xxxxxx"?

if you change screenshot captor to not start minimized, does it still happen?

can you also try this, while it is still showing blank, go to File menu and select "discard all changes to file", see if that causes it to display or else give an error in status bar.
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 09:18 AM
does the name and comments box show info for the file?
and in the status bar, it says "Loaded xxxxxx"?
No, nothing in there on startup.

if you change screenshot captor to not start minimized, does it still happen?
Yes.

can you also try this, while it is still showing blank, go to File menu and select "discard all changes to file", see if that causes it to display or else give an error in status bar.
Err... should that really be there?  :huh:

(http://img281.imageshack.us/img281/1836/captor8fx.png)
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 09:28 AM
i guess you're right, thats a bad place for it..
where would be better?

still remaining question:
while it is still showing blank, go to File menu and select "discard all changes to file", see if that causes it to display or else give an error in status bar?
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 09:50 AM
Err, what I meant with that screenshot was: Do you see "discard all changes to file" in that screenshot? Me neither...  :redface:
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 10:55 AM
sorry my bad, i disabled that function.
actually it doesnt matter anyway, i realized it should be trying to reload the file when you click on it in thumbnail anyway.

this is really strange.

can you tell me 1) the format of the file.
2) what is shown on statusbar when you click on it (after program loads)
3) anything unusual about the file? does it have objects?
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 11:31 AM
can you tell me 1) the format of the file.
It's that ~1 MB big PNG. But the same happened when I tried another snapshot and again just now when I captured the image below. It just WON'T load the last one...

2) what is shown on statusbar when you click on it (after program loads)
Nothing (tried several times) - but as soon as I click another image there will be "Loaded 'image'.png" displayed.

Btw: why does it say 'image'.png instead of 'image.png' or just image.png there?

3) anything unusual about the file? does it have objects?
No, see above... but when I accidently right-clicked between two thumbnails I got this:

(http://img8.imageshack.us/img8/2/menubugwhenclickingbetweenthum.png)

And when I clicked there some more times I got an "Access violation at address 41001F96. Read of address 41001F96." GUI was still visible but non-reactive after that.

Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 12:06 PM
ok im fixing those other problems..

if you change to saving a dif file format, and the last file is a dif file format does the problem go away?

if so, then here's what im thinking, there is something about those png it doesnt like - once another file is loaded, it sets some parameters and after that the pngs can be loaded ok.  can you compress and send me one of your evil png files?

([email protected])..
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 12:15 PM
Same problem when I saved another screenshot as JPG instead of PNG :(

I'm beginning to think it's somehow my PC causing that? Maybe others could confirm or not confirm this? I'm using Windows 2000 Pro, latest SP.
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 12:26 PM
well -
it's not really the kind of bug that can be blamed on your computer i don't think..
though it would be nice to see if a reboot fixed it..

i am really curious what could be causing this though..

when you click on the last image, and nothing happens.
what does the status bar show?

does it say anything about "loading, loaded, etc.?"

once you remind me the answer to this i think i may be able to narrow down the problem.

will be quite interesting to hear what this turns out to be..  :-[
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 12:42 PM
:)

2) what is shown on statusbar when you click on it (after program loads)
Nothing (tried several times) - but as soon as I click another image there will be "Loaded 'image'.png" displayed.
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 01:08 PM
ok then i think we have a clue as to what's happening.. let me add some stuff and upload a new test for you.
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 01:13 PM
Just say when ready :)
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 02:21 PM
ok let's try this one if you don't mind:
https://www.donationcoder.com/Beta/ScreenshotCaptor.exe
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 04:07 PM
YES, you did it!! :) Weeeee!

It looks a bit like the thumbnail images are loaded twice but the last image is now displayed! :)

Btw: before reading your post I restarted Windows (1 month + 3 days uptime :) ) but that didn't fix the problem in the version before this.
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 04:10 PM
WOOT!!!

yes, they are being loaded twice the first time, i'm going to try to remove that now that we know this works.

the source of the trouble again was that damn shell browser component that shows thumbnails.. i really have to replace that soon, its the source of so much trouble...
Title: Re: strange bug: load/display last image
Post by: brotherS on October 08, 2005, 04:14 PM
(https://www.donationcoder.com/forum/esmileys/gen0/Medium/partytime_sign.gif)
Title: Re: strange bug: load/display last image
Post by: mouser on October 08, 2005, 04:21 PM
i have only one thing to say to you after all this:
THANK YOU.

thanks for testing about a million different versions and not getting too frustrated  :up:

so nice to have people willing to test and help me solve these issues.