de en es fr
Let the machine help
Light teasing, exhibition, BDSM, sissyfication, watersports... with sounds and pictures


Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Null Images
PostPosted: Sun Nov 18, 2018 7:56 pm 
Offline
Veteran
User avatar
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.


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Mon Nov 19, 2018 11:37 am 
Offline
Site Admin
User avatar
Possibly a problem with the june changes correcting some picture upload. I'll need to get some more information (what fails, when..)


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Tue Nov 20, 2018 7:19 am 
Offline
Veteran
User avatar
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...


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Tue Nov 20, 2018 12:33 pm 
Offline
Site Admin
User avatar
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.


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Wed Nov 21, 2018 6:13 am 
Offline
Veteran
User avatar
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.


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Wed Dec 12, 2018 3:05 pm 
Offline
Veteran
User avatar
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!


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Sun Dec 16, 2018 1:48 pm 
Offline
Site Admin
User avatar
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


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Mon Dec 17, 2018 4:02 am 
Offline
Veteran
User avatar
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.


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Tue Feb 26, 2019 12:31 pm 
Offline
Veteran
User avatar
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!


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Fri Mar 01, 2019 1:12 pm 
Offline
Site Admin
User avatar
Do you know how many time elapsed between upload and first download ?


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Sat Mar 02, 2019 2:52 am 
Offline
Veteran
User avatar
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?


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Mon Mar 04, 2019 8:03 pm 
Offline
Site Admin
User avatar
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.


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Tue May 28, 2019 8:48 pm 
Offline
Addict
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


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Wed May 29, 2019 2:43 pm 
Offline
Site Admin
User avatar
Ok, with those informations I found a bug on the server that was deleting some big files uploaded the day before. Corrected.


Top
 Profile Send private message 
 
 Re: Null Images
PostPosted: Wed May 29, 2019 6:36 pm 
Offline
Addict
Thanks doti


Top
 Profile Send private message 
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Maroon Fusion theme created by Oxydo
Software, theme modifications, phpBB modification by Doti 2010, 2015
This website uses session cookies only.