News on 4.8.1 Syncing Bug

Discussion of the version of HanDBase that runs on the iPhone and iPod touch devices. This includes the synchronization conduits as well.

News on 4.8.1 Syncing Bug

Postby dhaupert » Fri Oct 21, 2011 10:09 am

Hi all,

I've finally been able to duplicate the hanging sync on my machine. I tried with many databases in the size range of 200-500KB and they always transferred just fine. I got it to happen with a 730KB database and realized that the size limit before the problem differs depending on the user.

For those that are curious what is going wrong, the system log reports this error:

Error while sending response (/DatabaseName.PDB -- http://192.168.0.175:8080/): *** -[NSConcreteFileHandle writeData:]: Resource temporarily unavailable

This doesn't happen with a device running iOS4 with the latest builds, only iOS5. I did some research on this error and there are others who are having problems with iOS5 and the NSFileHandle networking methods, which is the method I implemented to do a web server in HanDBase since the first iPhone build. Apparently while there is an issue with this suddenly failing, Apple's response has been to switch to using a different networking protocol that works better. This is frustrating, there is a lot of code that has been written to design and embed an HTTP server in the app and now I have to rewrite much of it. It also means that something that has been stable and reliable in the past will need lots of testing and tweaking.

I'm quite worried about this to be frank, but I am trudging forward with investigating and beginning the work. Unfortunately it does not appear that I'll have any quick fix to offer to you on this. Very sorry to report this and I will post updates to this thread as I make progress...
dhaupert
 
Posts: 4111
Joined: Tue May 26, 2009 11:51 am

Re: News on 4.8.1 Syncing Bug

Postby Brian_Houghton » Fri Oct 21, 2011 10:39 am

Hi, Thanks for the status update!

Sent from my SCH-I500 using Tapatalk
Kind Regards,
Brian Houghton, DDH Software
Brian_Houghton
 
Posts: 2246
Joined: Wed May 20, 2009 8:30 am

Re: News on 4.8.1 Syncing Bug

Postby Dlevymd1 » Fri Oct 21, 2011 11:08 am

Other programs, such as iFiles and Fileapp, have the same desktop connect with WiFi function and did not have an issue with the IOS5 upgrade. Maybe there is a easy solution. I hope so!!!
Dan
Dlevymd1
 
Posts: 111
Joined: Wed Jun 03, 2009 12:07 pm

Re: News on 4.8.1 Syncing Bug

Postby dhaupert » Fri Oct 21, 2011 11:14 am

Dan,

They probably implemented their Desktop Connect mode using a different protocol like I mentioned above. There are often many ways to accomplish the same thing in programming. I chose one path and they likely chose another. There are developers posting to the private Apple boards with this same problem so I'm not alone with this issue!
dhaupert
 
Posts: 4111
Joined: Tue May 26, 2009 11:51 am

Re: News on 4.8.1 Syncing Bug

Postby dhaupert » Mon Oct 24, 2011 7:54 pm

Here's an update on my progress...

I have been working on implementing a whole new set of communications libraries into HanDBase's Desktop Connect mode. This is a huge change to the program, but I'm grudgingly making it. The Apple developer I spoke to suggested doing this as opposed to waiting for any future iOS5 update that fixed the bug I'm encountering in one particular communications (socket) call.

Candidly my hope is that I will be able to finish the development of this by the end of the week. No promises there, and there will then need to be much testing done here to verify it all works reliably, but that is what I'm shooting for.

I'm about to stop working for the night but wanted to share that I have the new library running within HanDBase ahead of schedule! It is not complete, but does all the file downloading stuff. On top of that, it works with large files as well, which is a huge relief. Of course, download is only half of the direction needed to fully support desktop connect so tomorrow I will start on the second half. If I have as successful a day tomorrow as today I'd be several days ahead of schedule and ready to start testing! Here's hoping...

I'll let you know how things progress. Thanks so much for your patience with this issue and with me in particular. You are all the greatest customers in the world!!
dhaupert
 
Posts: 4111
Joined: Tue May 26, 2009 11:51 am

Re: News on 4.8.1 Syncing Bug

Postby ArGiEs » Tue Oct 25, 2011 5:55 am

Dave,

Thanks so much for your communication. Keep up the good work!

Regards,
Bob
Regards,
Bob
ArGiEs
 
Posts: 216
Joined: Tue Feb 02, 2010 1:22 am
Location: North-Central Florida

Re: News on 4.8.1 Syncing Bug

Postby Max » Tue Oct 25, 2011 11:25 am

dhaupert wrote:Here's an update on my progress...

I have been working on implementing a whole new set of communications libraries into HanDBase's Desktop Connect mode. ... I'll let you know how things progress....


We all appreciate your hard work, Dave, and understand the fix that Apple has put you in. In the meantime, let me see if I understand what's going on--because I'm eager (otherwise) to upgrade my iPhone to iOS 5.

So HanDBase 4.8.1 runs okay in iOS5, right? But there are (or may be) problems when syncing large databases on some iPhones. Transferring data by email is a workaround. What I'm not confident about is database integrity: Can this problem corrupt databases? If so, how can we protect against it--just not sync at all until your new version comes out?
Max
 
Posts: 17
Joined: Sat Oct 24, 2009 3:10 pm

Re: News on 4.8.1 Syncing Bug

Postby Brian_Houghton » Tue Oct 25, 2011 4:10 pm

Hi Max,

You are perfectly okay to email and / or use iTunes' file sharing to manually move databases between your computer and handheld. This definitely shouldn't result in any file corruption.

The one issue you might see is that databases using calculated fields aren't opening properly. You could either manually disable the calculated field in HanDBase Desktop prior to installing OR roll back to version 4.8.0 of HanDBase, using it on iOS 5.
Kind Regards,
Brian Houghton, DDH Software
Brian_Houghton
 
Posts: 2246
Joined: Wed May 20, 2009 8:30 am

Re: News on 4.8.1 Syncing Bug

Postby dhaupert » Tue Oct 25, 2011 6:47 pm

Here's today's update. Been working on the upload capability which is divided into two parts- the upload from Desktop Connect via a browser and the upload via the conduit. After spending the entire day debugging an issue with Multi-part encoding of messages in the new library I finally got it working for the browser side, and I'm now uploading all sorts of things to test. I still have the Conduit upload to work on and will start on that tomorrow.

But I did find a problem which is very disconcerting- I uploaded the database that failed for me with the other library (a 750KB database file). It uploaded just fine and opened fine, but when I try to download it, it stops at exactly 512KB :( No errors or exceptions, just seems to stop sending at that point. I'm pretty frustrated about it but hope to be able to find a solution. I'll keep you posted!
dhaupert
 
Posts: 4111
Joined: Tue May 26, 2009 11:51 am

Re: News on 4.8.1 Syncing Bug

Postby dhaupert » Tue Oct 25, 2011 7:06 pm

dhaupert wrote:But I did find a problem which is very disconcerting- I uploaded the database that failed for me with the other library (a 750KB database file). It uploaded just fine and opened fine, but when I try to download it, it stops at exactly 512KB :( No errors or exceptions, just seems to stop sending at that point. I'm pretty frustrated about it but hope to be able to find a solution. I'll keep you posted!


Good news about this one- was a bug that I just found and fixed, so now it seems to download large files just fine. Still lots of testing and completion to do but things are looking good! Hope to be in testing before the week is over..
dhaupert
 
Posts: 4111
Joined: Tue May 26, 2009 11:51 am

Next

Return to HanDBase for iPhone and iPod touch

Who is online

Users browsing this forum: No registered users and 2 guests