Merge lp:~jamesh/mediascanner/bug-1237484 into lp:mediascanner
Proposed by
James Henstridge
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Michal Hruby | ||||
Approved revision: | 394 | ||||
Merged at revision: | 394 | ||||
Proposed branch: | lp:~jamesh/mediascanner/bug-1237484 | ||||
Merge into: | lp:mediascanner | ||||
Diff against target: |
34 lines (+13/-0) 2 files modified
src/mediascanner-service/main.cpp (+8/-0) tests/auto/filesystemscannertest.cpp (+5/-0) |
||||
To merge this branch: | bzr merge lp:~jamesh/mediascanner/bug-1237484 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Michal Hruby (community) | Approve | ||
Review via email: mp+190882@code.launchpad.net |
Commit message
Create the GNetworkMonitor object earlier to avoid thread safety problems in its constructor, fixing bug #1237484.
Description of the change
Fix the "g_source_unref: assertion 'source != NULL' failed" warning coming from the media scanner.
The origin of the warning is inside the GNetworkMonitorBase class from libgio, and appears to be from a piece of code that assumes it is running in the main loop: an idle function is queued in the constructor and it doesn't expect it to run until the constructor finishes.
This branch just makes sure the GNetworkMonitor is created earlier on to avoid the problem.
To post a comment you must log in.
FAILED: Continuous integration, rev:394 /code.launchpad .net/~jamesh/ mediascanner/ bug-1237484/ +merge/ 190882/ +edit-commit- message
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http:// jenkins. qa.ubuntu. com/job/ mediascanner- ci/77/ jenkins. qa.ubuntu. com/job/ mediascanner- saucy-amd64- ci/77 jenkins. qa.ubuntu. com/job/ mediascanner- saucy-armhf- ci/77 jenkins. qa.ubuntu. com/job/ mediascanner- saucy-armhf- ci/77/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ mediascanner- saucy-i386- ci/77
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild: 10.97.0. 26:8080/ job/mediascanne r-ci/77/ rebuild
http://