Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync large files doesn't work down #19

Closed
MTRichards opened this issue Oct 23, 2012 · 7 comments
Closed

Sync large files doesn't work down #19

MTRichards opened this issue Oct 23, 2012 · 7 comments
Labels

Comments

@MTRichards
Copy link

Syncing large files doesn't work for me. The large (1.4GB) file uploads to ownCloud 4.5 via the 1.1.1 works client just fine (from windows client on windows 7) and I can see the file in the web client, but the same file will not be downloaded to the other desktop clients.

Reposted in CORE as well, since it seems a joint effort. owncloud/core#71

Tried 2 windows 7 machines, and 1 ubuntu 12.04 machine running the ownCloud client.

Log:
[Tue Oct 23 15:04:14 2012] [error] [client 192.168.1.27] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 445646849 bytes) in /srv/www/htdocs/owncloud/3rdparty/Sabre/HTTP/Response.php on line 146
[Tue Oct 23 15:04:15 2012] [error] [client 192.168.1.27] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1317734401 bytes) in /srv/www/htdocs/owncloud/3rdparty/Sabre/HTTP/Response.php on line 146
[Tue Oct 23 15:05:14 2012] [error] [client 192.168.1.14] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 445646849 bytes) in /srv/www/htdocs/owncloud/3rdparty/Sabre/HTTP/Response.php on line 146
[Tue Oct 23 15:05:14 2012] [error] [client 192.168.1.14] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 1317734401 bytes) in /srv/www/htdocs/owncloud/3rdparty/Sabre/HTTP/Response.php on line 146
[Tue Oct 23 15:05:19 2012] [error] [client 192.168.1.3] PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 445646849 bytes) in /srv/www/htdocs/owncloud/3rdparty/Sabre/HTTP/Response.php on line 146

@danimo
Copy link
Contributor

danimo commented Oct 23, 2012

I think the message here is that we should also have chunked downloading. @dragotin: is this part of the chunked upload plan already?

@fmms
Copy link

fmms commented Oct 23, 2012

This is related to issue #17 I would say.

@dragotin
Copy link
Contributor

I think we need a fix on the server for that. I am not sure if that requires chunked download? How can we "reassign" this bug to server?

@DeepDiver1975
Copy link
Member

We cannot move tickets between repos.
I'd suggest to create a new issue on the server referring to this one.

@dragotin
Copy link
Contributor

This is addressed by issue owncloud/core#71

That said, we could think about doing chunked download as well.

@karlitschek
Copy link

Theoretically this should work already because it is a http feature: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35 Haven´t tested it if SabreDAV is going the right thing but it should

@eMerzh
Copy link
Member

eMerzh commented Oct 26, 2012

If i understand correctly it's a plugin in SabreDAV http://code.google.com/p/sabredav/wiki/Sabre_DAV_PartialUpdate_Plugin and it does not seems to be used in OC

ogoffart added a commit that referenced this issue Jan 7, 2016
The Qt HTTP thread calls authenticationRequired (indirectly) using a
BlockingQueuedConnection. So when we call invalidateToken from slot
connected to this signal and end up calling QNAM::clearAccessCache which
waits on the thread for 5 seconds

Backtraces:

Qt HTTP thread:
 #0  0x00007ffff20c707f in pthread_cond_wait@@GLIBC_2.3.2 ()
 #1  0x00007ffff43f0c0b in QWaitConditionPrivate::wait
 #2  QWaitCondition::wait
 #3  0x00007ffff43ea06b in QSemaphore::acquire
 #4  0x00007ffff45dcf6f in QMetaObject::activate
[...]
 #9  0x00007ffff45dd607 in QMetaObject::activate
 #10 0x00007ffff4edbaf7 in QHttpNetworkReply::authenticationRequired
 #11 0x00007ffff4e0b2b4 in QHttpNetworkConnectionPrivate::handleAuthenticateChallenge
 #12 0x00007ffff4e10753 in QHttpNetworkConnectionChannel::handleStatus
 #13 0x00007ffff4e11cc9 in QHttpNetworkConnectionChannel::allDone
 #14 0x00007ffff4e14605 in QHttpProtocolHandler::_q_receiveReply

Main Thread:
 #0  0x00007ffff20c7428 in pthread_cond_timedwait@@GLIBC_2.3.2 ()
 #1  0x00007ffff43f0b56 in QWaitConditionPrivate::wait_relative (time=5000, this=0x136c580)
 #2  QWaitConditionPrivate::wait (time=5000, this=0x136c580)
 #3  QWaitCondition::wait (this=this@entry=0x136c788, mutex=mutex@entry=0x136c760, time=time@entry=5000)
 #4  0x00007ffff43efa6e in QThread::wait (this=<optimized out>, time=time@entry=5000)
 #5  0x00007ffff4e1edd3 in QNetworkAccessManagerPrivate::clearCache
 #6  0x00007ffff7b6fb03 in OCC::HttpCredentials::invalidateToken()
 #7  0x000000000057adb4 in OCC::AccountState::slotInvalidCredentials()
 #8  0x000000000057ac76 in OCC::AccountState::slotConnectionValidatorResult(OCC::ConnectionValidator::Status, QStringList const&) ()
 #9  0x00000000005ab45c in OCC::AccountState::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)
 #10 0x00007ffff45dcd30 in QMetaObject::activate
 #11 0x00007ffff7b78671 in OCC::ConnectionValidator::connectionResult(OCC::ConnectionValidator::Status, QStringList) ()
 #12 0x00007ffff7ae2514 in OCC::ConnectionValidator::reportResult(OCC::ConnectionValidator::Status) ()
 #13 0x00007ffff7ae39b7 in OCC::ConnectionValidator::slotAuthFailed(QNetworkReply*) ()
 #14 0x00007ffff7b784a9 in OCC::ConnectionValidator::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
 #15 0x00007ffff45dcd30 in QMetaObject::activate
 #16 0x00007ffff7b766dc in OCC::AbstractNetworkJob::networkError(QNetworkReply*)
 #17 0x00007ffff7af9f6e in OCC::AbstractNetworkJob::slotFinished()
 #18 0x00007ffff7b7654d in OCC::AbstractNetworkJob::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
 #20 0x00007ffff45dd607 in QMetaObject::activate
 #21 0x00007ffff4edd143 in QNetworkReply::finished
 #22 0x00007ffff4e3fec7 in QNetworkReplyHttpImplPrivate::finished
 #23 0x00007ffff4e41818 in QNetworkReplyHttpImpl::close
 #24 0x00007ffff7b7047b in OCC::HttpCredentials::slotAuthentication(QNetworkReply*, QAuthenticator*) ()
 #25 0x00007ffff7b79092 in OCC::HttpCredentials::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
 #27 0x00007ffff45dd607 in QMetaObject::activate
 #28 0x00007ffff4e1d6fb in QNetworkAccessManager::authenticationRequired
 #29 0x00007ffff4e1ea07 in QNetworkAccessManagerPrivate::authenticationRequired
 #30 0x00007ffff4e3c784 in QNetworkReplyHttpImplPrivate::httpAuthenticationRequired

Another case of Main Thread:
 #5  0x00007ffff4e1edd3 in QNetworkAccessManagerPrivate::clearCache
 #6  0x00007ffff7b6fb03 in OCC::HttpCredentials::invalidateToken()
 #7  0x000000000057b1e4 in OCC::AccountState::slotInvalidCredentials() ()
 #8  0x00000000005abb8a in OCC::AccountState::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
 #9  0x00007ffff45dcd30 in QMetaObject::activate
 #10 0x00007ffff7b76ed5 in OCC::Account::invalidCredentials() ()
 #11 0x00007ffff7ad55f5 in OCC::Account::handleInvalidCredentials()
 #12 0x00007ffff7afa69a in OCC::AbstractNetworkJob::slotFinished()
 #13 0x00007ffff7b7654d in OCC::AbstractNetworkJob::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
 #15 0x00007ffff45dd607 in QMetaObject::activate
 #16 0x00007ffff4edd143 in QNetworkReply::finished
 #17 0x00007ffff4e3fec7 in QNetworkReplyHttpImplPrivate::finished
 #18 0x00007ffff4e41818 in QNetworkReplyHttpImpl::close
 #19 0x00007ffff7b7047b in OCC::HttpCredentials::slotAuthentication(QNetworkReply*, QAuthenticator*) ()
 #20 0x00007ffff7b79092 in OCC::HttpCredentials::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) ()
 #22 0x00007ffff45dd607 in QMetaObject::activate
 #23 0x00007ffff4e1d6fb in QNetworkAccessManager::authenticationRequired
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants