SexScripts : Null Images - https://ss.deviatenow.com:443/viewtopic.php?f=6&t=805 Page 1 of 2

Null Images

ptdw [ Sun Nov 18, 2018 7:56 pm ]

I've noticed a lot of null images recently, often followed by the player mentioning something in the game thread about pics not showing after a successful upload. Any idea why an upload would return an image key, but subsequent access returns a null image? I guess I've always figured it was an issue with the player's connection, but it seems to be happening more often and people seem confident they've sent pics correctly.

Re: Null Images

doti [ Mon Nov 19, 2018 11:37 am ]

Possibly a problem with the june changes correcting some picture upload. I'll need to get some more information (what fails, when..)

Re: Null Images

ptdw [ Tue Nov 20, 2018 7:19 am ]

I've never seen it happen to me (that I know of), but the symptoms are:

- player sends a normal jpeg via sendImage
- sendImage returns a valid key after upload
- receiveImage with the correct key returns a null string

This has happened in Courtroom (especially), Spin the Bottle, Strip or Die, Human Paperboard (and likely others). Note that the image key is almost NEVER retrieved immediately, so there's likely some time that passes between when a player sends and when another player receives.

This wouldn't be a security feature, would it? For example, accepting the image and immediately deleting if from a "bad" IP address...

Re: Null Images

doti [ Tue Nov 20, 2018 12:33 pm ]

Possibly a security feature, but not likely. I guess an error in some algorithms server side.

If possible I'd like to know an example of image key that fails, from anybody.

Re: Null Images

ptdw [ Wed Nov 21, 2018 6:13 am ]

doti wrote:
Possibly a security feature, but not likely. I guess an error in some algorithms server side.

If possible I'd like to know an example of image key that fails, from anybody.


Next time I see it, I'll grab the key and report it.

Re: Null Images

ptdw [ Wed Dec 12, 2018 3:05 pm ]

doti wrote:
If possible I'd like to know an example of image key that fails, from anybody.


Hi Doti, I've seen this happening more and more recently and finally remembered this thread. It seems 37cfce64.jpeg is a good example.

My scripts all do null checking, but in this case the file exists and is returned as 0 bytes, so the script continues and then runs into trouble. I checked this file on both Mac and PC and they both have the same issue.

It would be great if the sexscripts server would return null in this case instead. Otherwise, we need to check all images for null, and then also check the byte length.

Thanks for your help!

Re: Null Images

doti [ Sun Dec 16, 2018 1:48 pm ]

The file was not on the server. Most probably it was removed because without any access 14 days after its upload ; possibly something else.
3 updates :
- This removal period is increased from 14 to 30 days
- An error will occur (sendImage wll fail) if the file cannot be saved on the server
- (sexScripts release from today) A good null value will be received if the image code has no matching on the server

Re: Null Images

ptdw [ Mon Dec 17, 2018 4:02 am ]

doti wrote:
- This removal period is increased from 14 to 30 days
- An error will occur (sendImage wll fail) if the file cannot be saved on the server
- (sexScripts release from today) A good null value will be received if the image code has no matching on the server


Thank you very much! This will make a big difference and should fix a lot of issues.

Re: Null Images

ptdw [ Tue Feb 26, 2019 12:31 pm ]

Hi @doti,

We've been running into an image problem in Courtroom fairly regularly--it seems related to the null image thing. Players upload successfully, but when people go to view the evidence there's nothing there. Here are two recent examples: 5345293d and e1c1f573. Any insight you could provide from the server side would be really useful in debugging. Thanks!

Re: Null Images

doti [ Fri Mar 01, 2019 1:12 pm ]

Do you know how many time elapsed between upload and first download ?

Re: Null Images

ptdw [ Sat Mar 02, 2019 2:52 am ]

doti wrote:
Do you know how many time elapsed between upload and first download ?


Since these were from Courtroom it would have been a relatively short time. Under 72 hours I'm guessing. Some cases in Courtroom have a longer evidence gathering time, so the images get uploaded and nobody views them for a few days, then they're needed for the trial. Perhaps that's related to the problem? Maybe when the evidence gathering time is short it works, and when long it runs into trouble?

Re: Null Images

doti [ Mon Mar 04, 2019 8:03 pm ]

If an image is never ever seen, it is deleted. I can check but I'll say 30 days later.

But 72h means there's a bug. I've a hard time to investigate, I can see nothing in the (light) logs about those images.
I'll add some more logs I think, I have no idea of the problem.

Re: Null Images

cgut2001 [ Tue May 28, 2019 8:48 pm ]

Hi doti,

when test-playing HurrahForSchool the script showed me a null-image during the presentation of a punishment record.

Digging into the code I noticed the script does a null-check before upload. So I guess this happened during upload or on the server.

I wrote a short test-script to find null-images in the 20 images kept by HurrahForSchool and print out the image number and the upload-date of the image stored in the school-record (a string on the server).

Here's the list

Code:
Image      Date

846ddc81.jpeg   26/5/2019
8dc4a428.jpeg   26/5/2019
df00d144.jpeg   27/5/2019
437f6005.jpeg   27/5/2019
88060666.jpeg   27/5/2019
38dd04ba.jpeg   25/5/2019
9be1a169.jpeg   26/5/2019
01b387db.jpeg   27/5/2019
0ede6747.jpeg   27/5/2019
c28ed515.jpeg   27/5/2019
fdafb204.jpeg   22/5/2019


From this I dare to deduce

  • The problem is not specific to courtroom.
  • The problem occurs more often than we might have guessed.
  • The deletion-time on the server is not the reason.

Hope this helps to find the cause of the problem. From what I saw it started to occur after a certain update of sexscripts. I just don't remember the last working version.

Regards

cgut2001

Re: Null Images

doti [ Wed May 29, 2019 2:43 pm ]

Ok, with those informations I found a bug on the server that was deleting some big files uploaded the day before. Corrected.

Re: Null Images

cgut2001 [ Wed May 29, 2019 6:36 pm ]

Thanks doti

Page 1 of 2 All times are UTC + 1 hour [ DST ]
https://ss.deviatenow.com:443/
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2011