Merge lp:~larryprice/libertine/fix-crash-on-start into lp:libertine

Proposed by Larry Price
Status: Merged
Approved by: Christopher Townsend
Approved revision: 306
Merged at revision: 308
Proposed branch: lp:~larryprice/libertine/fix-crash-on-start
Merge into: lp:libertine
Diff against target: 25 lines (+2/-2)
2 files modified
libertine/libertine.cpp (+1/-1)
libertine/libertine.h (+1/-1)
To merge this branch: bzr merge lp:~larryprice/libertine/fix-crash-on-start
Reviewer Review Type Date Requested Status
Christopher Townsend Approve
Libertine CI Bot continuous-integration Approve
Review via email: mp+307457@code.launchpad.net

Commit message

Fix crash on start in unity 7 when launching from the dash.

Description of the change

Fix crash on start in unity 7 when launching from the dash.

I found a StackOverflow question with a very similar bug which points out the proper use of the QGuiApplication constructor (https://stackoverflow.com/questions/33271398/c-segmentation-fault-when-inheritance). Since making this change, I have installed the deb on several machines and no longer see the crash on startup.

To post a comment you must log in.
306. By Larry Price

consistency, my dear

Revision history for this message
Libertine CI Bot (libertine-ci-bot) wrote :

PASSED: Continuous integration, rev:306
https://jenkins.canonical.com/libertine/job/lp-libertine-ci/148/
Executed test runs:
    SUCCESS: https://jenkins.canonical.com/libertine/job/build/379
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=default/300
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=default/300
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=amd64,release=yakkety,testname=default/300
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=i386,release=vivid+overlay,testname=default/300
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=i386,release=xenial+overlay,testname=default/300
    SUCCESS: https://jenkins.canonical.com/libertine/job/test-0-autopkgtest/label=i386,release=yakkety,testname=default/300
    None: https://jenkins.canonical.com/libertine/job/lp-generic-update-mp/289/console
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-0-fetch/381
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-1-sourcepkg/release=vivid+overlay/363
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-1-sourcepkg/release=xenial+overlay/363
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-1-sourcepkg/release=yakkety/363
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=vivid+overlay/362
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=vivid+overlay/362/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=xenial+overlay/362
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=xenial+overlay/362/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=yakkety/362
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=amd64,release=yakkety/362/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=vivid+overlay/362
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=vivid+overlay/362/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=xenial+overlay/362
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=xenial+overlay/362/artifact/output/*zip*/output.zip
    SUCCESS: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=yakkety/362
        deb: https://jenkins.canonical.com/libertine/job/build-2-binpkg/arch=i386,release=yakkety/362/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://jenkins.canonical.com/libertine/job/lp-libertine-ci/148/rebuild

review: Approve (continuous-integration)
Revision history for this message
Christopher Townsend (townsend) wrote :

Ok

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libertine/libertine.cpp'
2--- libertine/libertine.cpp 2016-07-15 18:39:58 +0000
3+++ libertine/libertine.cpp 2016-10-03 15:54:47 +0000
4@@ -84,7 +84,7 @@
5 * environment variables, and configurations files and displays the GUI.
6 */
7 Libertine::
8-Libertine(int argc, char* argv[])
9+Libertine(int& argc, char** argv)
10 : QGuiApplication(argc, argv)
11 , main_qml_source_file_(find_main_qml_source_file())
12 {
13
14=== modified file 'libertine/libertine.h'
15--- libertine/libertine.h 2016-07-15 18:39:58 +0000
16+++ libertine/libertine.h 2016-10-03 15:54:47 +0000
17@@ -38,7 +38,7 @@
18 Q_OBJECT
19
20 public:
21- Libertine(int argc, char* argv[]);
22+ Libertine(int& argc, char** argv);
23 ~Libertine();
24
25 private:

Subscribers

People subscribed via source and target branches