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

GLib-CRITICAL: Source ID was not found when attempting to remove it (Ubuntu 14.04, client 2.3.0) #5578

Closed
s-ntech opened this issue Mar 6, 2017 · 6 comments
Labels
ReadyToTest QA, please validate the fix/enhancement
Milestone

Comments

@s-ntech
Copy link

s-ntech commented Mar 6, 2017

Expected behaviour

After fresh install (Ubuntu 14.04, client 2.3.0 using Qt 4.8.6), client should be able to sync folders and the client should not crash.

Actual behaviour

After downloading (syncing) a folder from remote for a short time (~10s) the client crashes. In the command line:

(owncloud:9634): GLib-CRITICAL **: Source ID 251 was not found when attempting to remove it
Aborted (core dumped)

Steps to reproduce

  1. sudo apt-get install owncloud-client
  2. Connect to remote folder and try to sync remote folder

Server configuration

Operating system: Ubuntu 14.04 (3.13.0-110-generic)

Web server: Apache2

Database: MySql

PHP version:

ownCloud version: 9.1.4

Storage backend (external storage):

Client configuration

Client version: 2.3.0

Operating system: Ubuntu 14.04

OS language: En

Qt version used by client package (Linux only, see also Settings dialog): 4.6.8

Client package (From ownCloud or distro) (Linux only):

Installation path of client:

Logs

Please use Gist (https://gist.github.com/) or a similar code paster for longer
logs.

Template for output < 10 lines

  1. Client logfile: Output of owncloud --logwindow or owncloud --logfile log.txt (I'm showing the last 10 or so lines here, but can upload full log if required as well)
    03-06 10:43:54:952 0x1d07070 void OCC::AbstractNetworkJob::slotFinished() 2 "Connection closed" QVariant(int, 200) 03-06 10:43:54:952 0x1d07070 void OCC::PropagateDownloadFile::slotGetFinished() QUrl( "https://******.de/remote.php/webdav/instr/2011-Linear_Algebra_I/Aufgabeblätter/R Vektorräume.pdf" ) FINISHED WITH STATUS 2 "Connection closed" 0 179340 189666 0 "" "189666" 03-06 10:43:54:952 0x1d07070 void OCC::SyncEngine::slotItemCompleted(const SyncFileItemPtr&) "2011-Linear_Algebra_I/Aufgabeblätter/R Vektorräume.pdf" INSTRUCTION_NEW 1 "Connection closed" 03-06 10:43:54:971 0x1d07070 void OCC::AbstractNetworkJob::slotFinished() 5 "Operation canceled" QVariant(, ) 03-06 10:43:54:971 0x1d07070 void OCC::PropagateDownloadFile::slotGetFinished() QUrl( "https://******.de/remote.php/webdav/instr/2011-Linear_Algebra_I/Aufgabeblätter/la1-1.pdf" ) FINISHED WITH STATUS 5 "Operation canceled" 0 0 124166 0 "" "" 03-06 10:43:54:971 0x1d07070 "DELETE FROM downloadinfo WHERE path=?1" "2011-Linear_Algebra_I/Aufgabeblätter/la1-1.pdf" 03-06 10:43:54:971 0x1d07070 void OCC::SyncEngine::slotItemCompleted(const SyncFileItemPtr&) "2011-Linear_Algebra_I/Aufgabeblätter/la1-1.pdf" INSTRUCTION_NEW 1 "Operation canceled" 03-06 10:43:54:972 0x1d07070 void OCC::AbstractNetworkJob::slotFinished() 5 "Operation canceled" QVariant(, ) 03-06 10:43:54:972 0x1d07070 void OCC::PropagateDownloadFile::slotGetFinished() QUrl( "https://******.de/remote.php/webdav/instr/2011-Linear_Algebra_I/Aufgabeblätter/la1-10.pdf" ) FINISHED WITH STATUS 5 "Operation canceled" 0 0 203363 0 "" "" 03-06 10:43:54:972 0x1d07070 "DELETE FROM downloadinfo WHERE path=?1" "2011-Linear_Algebra_I/Aufgabeblätter/la1-10.pdf" 03-06 10:43:54:972 0x1d07070 void OCC::SyncEngine::slotItemCompleted(const SyncFileItemPtr&) "2011-Linear_Algebra_I/Aufgabeblätter/la1-10.pdf" INSTRUCTION_NEW 1 "Operation canceled" 03-06 10:43:54:977 0x1d07070 * Ignoring file "/home/fh/instr/2011-Linear_Algebra_I/Aufgabeblätter/.la1-1.pdf.~1b3fdec" 03-06 10:43:54:978 0x1d07070 * Ignoring file "/home/fh/instr/2011-Linear_Algebra_I/Aufgabeblätter/.la1-10.pdf.~513e23d7" 03-06 10:43:54:978 0x1d07070 * Ignoring file "/home/fh/instr/2011-Linear_Algebra_I/Aufgabeblätter/.R Vektorräume.pdf.~373f3585" 03-06 10:43:54:978 0x1d07070 ASSERT: "i >= 0" in file /usr/src/packages/BUILD/src/libsync/owncloudpropagator.cpp, line 665

  2. Web server error log: No webserver errors

  3. Server logfile: ownCloud log (data/owncloud.log): No errors

Comment

My first bug report. I would really like to help getting to the bottom of this issue. Please let me know if and how I can supply further information.

@ogoffart
Copy link
Contributor

ogoffart commented Mar 6, 2017

The actual crash is

ASSERT: "i >= 0" in file /usr/src/packages/BUILD/src/libsync/owncloudpropagator.cpp, line 665

This seems to happen for "Connection closed" errors.

This looks like the crash we tries to fix during the rc phase but were not able to reproduce.

@ogoffart
Copy link
Contributor

ogoffart commented Mar 6, 2017

Pull request: #5579

@guruz guruz added this to the 2.3.1 milestone Mar 6, 2017
ogoffart added a commit that referenced this issue Mar 6, 2017
…ausing crash

When there is a FatalError, we ended up emiting the finished signal for
the directory job several times, which would lead to crashes

Issue #5578
ogoffart added a commit that referenced this issue Mar 6, 2017
…ausing crash

When there is a FatalError, we ended up emiting the finished signal for
the directory job several times, which would lead to crashes

Issue #5578
@ogoffart ogoffart added the ReadyToTest QA, please validate the fix/enhancement label Mar 6, 2017
@ogoffart
Copy link
Contributor

ogoffart commented Mar 6, 2017

Normally fixed for 2.3.1

@ogoffart ogoffart closed this as completed Mar 6, 2017
@s-ntech
Copy link
Author

s-ntech commented Mar 7, 2017

Thanks. I'm assuming that this will only fix the crash and not the "Connection Closed" error that I have been having on Ubuntu 14.04 since at least client 2.1.0? Is there any chance this could be looked into more? I do not see the Connection Closed error on any other machines - just on this Ubuntu 14.04. No fresh client install was able to solve the issue. The only thing that ever helped is going back to clients < 2.1.0 and limit the download bandwidth.

@ogoffart
Copy link
Contributor

ogoffart commented Mar 7, 2017

Try upgrading to Qt 5.6.

@s-ntech
Copy link
Author

s-ntech commented Mar 7, 2017

Thanks for the reply. I'm not able to compile the client with Qt 5.6. I think I've come pretty far but now another lot of unmet dependencies have cropped up:

/usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5.1.1: undefined reference to QWindowSystemInterface::registerTouchDevice(QTouchDevice*)' /usr/lib/x86_64-linux-gnu/libQt5Quick.so.5.2.1: undefined reference to QOpenGLTextureGlyphCache::QOpenGLTextureGlyphCache(QFontEngineGlyphCache::Type, QTransform const&)'
/usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5.2.1: undefined reference to QPdfEnginePrivate::pageRect() const' /usr/lib/x86_64-linux-gnu/libQt5OpenGL.so.5.2.1: undefined reference to QFontEngine::glyphCache(void const*, QFontEngineGlyphCache::Type, QTransform const&) const'
/usr/lib/x86_64-linux-gnu/libQt5Quick.so.5.2.1: undefined reference to QShortcutMap::tryShortcutEvent(QObject*, QKeyEvent*)' /usr/lib/x86_64-linux-gnu/libQt5PrintSupport.so.5.2.1: undefined reference to QPdfEnginePrivate::paperRect() const'
collect2: error: ld returned 1 exit status

I don't think I'll be able to compile it in the end. Through extensive reading, I'm now aware of #2558. Sticking it out until 2.3.1 hits might be a good idea then? Will I get Qt5 on Ubuntu 14.04 as well with 2.3.1?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ReadyToTest QA, please validate the fix/enhancement
Projects
None yet
Development

No branches or pull requests

3 participants