Mir

SDL apps either "Failed to connect to the mir server: ..." or segfault in protobuf via mir_connect_sync

Bug #1667352 reported by dinamic
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Stephen M. Webb
Mir
Invalid
High
Brandon Schaefer
0.26
Invalid
High
Unassigned
libsdl2 (Ubuntu)
Invalid
Critical
Unassigned
protobuf (Ubuntu)
Fix Released
High
Alexandros Frantzis

Bug Description

ubuntu 17.04 unity8, trying to run neverball game

Feb 23 17:46:43 pixel-desktop systemd[2629]: Starting ubuntu-app-launch-application-legacy-neverball-1487864803635991.service...
Feb 23 17:46:44 pixel-desktop neverball[3591]: Failure to initialize SDL (Failed to connect to the mir server: std::bad_alloc)
Feb 23 17:46:44 pixel-desktop systemd[2629]: ubuntu-app-launch-application-legacy-neverball-1487864803635991.service: Main process exited, code=exited, status=1/FAI
Feb 23 17:46:44 pixel-desktop systemd[2629]: Failed to start ubuntu-app-launch-application-legacy-neverball-1487864803635991.service.
Feb 23 17:46:44 pixel-desktop systemd[2629]: ubuntu-app-launch-application-legacy-neverball-1487864803635991.service: Unit entered failed state.
Feb 23 17:46:44 pixel-desktop systemd[2629]: ubuntu-app-launch-application-legacy-neverball-1487864803635991.service: Failed with result 'exit-code'.

Tags: patch mir

Related branches

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds like a snap-specific problem.

neverball seems to run OK (with some other bugs) on Unity8 17.04 (deb) and in Mir demo servers.

Can you run it under gdb and get a stack trace of the crash?

Changed in mir:
status: New → Incomplete
Changed in libsdl2 (Ubuntu):
status: New → Incomplete
Changed in neverball (Ubuntu):
status: New → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Oh, I could reproduce the crash once. Only once...

$ mirrun /usr/games/neverball -- --desktop_file_hint=unity8
<WORKED>

$ mirrun /usr/games/neverball -- --desktop_file_hint=unity8
Failure to initialize SDL (Failed to connect to the mir server: std::bad_alloc)

$ mirrun /usr/games/neverball -- --desktop_file_hint=unity8
Segmentation fault (core dumped)

$ mirrun /usr/games/neverball -- --desktop_file_hint=unity8
Segmentation fault (core dumped)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

^^^
Logged bug 1667542 for the segfaults.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I think this will turn out to be the same issue as bug 1667542.

Changed in libsdl2 (Ubuntu):
status: Incomplete → Confirmed
Changed in neverball (Ubuntu):
status: Incomplete → Confirmed
Changed in mir:
status: Incomplete → Confirmed
tags: added: mir
Changed in libsdl2 (Ubuntu):
importance: Undecided → Critical
Changed in neverball (Ubuntu):
importance: Undecided → Critical
Changed in mir:
status: Confirmed → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Same bug in Neverputt. Looks like a bug in the Mir port of libSDL2.

Changed in neverball (Ubuntu):
status: Confirmed → Invalid
Changed in mir:
milestone: none → 1.0.0
assignee: nobody → Brandon Schaefer (brandontschaefer)
importance: Undecided → Critical
importance: Critical → High
status: Incomplete → In Progress
summary: - Failure to initialize SDL (Failed to connect to the mir server:
- std::bad_alloc)
+ SDL apps "Failed to connect to the mir server: std::bad_alloc" or crash
+ in
+ google::protobuf::MessageLite::InternalSerializeWithCachedSizesToArray
+ from mir_connect_sync
Changed in protobuf (Ubuntu):
importance: Undecided → High
status: New → Confirmed
summary: - SDL apps "Failed to connect to the mir server: std::bad_alloc" or crash
- in
- google::protobuf::MessageLite::InternalSerializeWithCachedSizesToArray
- from mir_connect_sync
+ SDL apps either "Failed to connect to the mir server: std::bad_alloc" or
+ crash in protobuf via mir_connect_sync
Changed in canonical-devices-system-image:
status: New → Triaged
importance: Undecided → High
assignee: nobody → Stephen M. Webb (bregma)
milestone: none → u8c-1
summary: - SDL apps either "Failed to connect to the mir server: std::bad_alloc" or
- crash in protobuf via mir_connect_sync
+ SDL apps either "Failed to connect to the mir server: ..." or crash in
+ protobuf via mir_connect_sync
summary: - SDL apps either "Failed to connect to the mir server: ..." or crash in
- protobuf via mir_connect_sync
+ SDL apps either "Failed to connect to the mir server: ..." or segfault
+ in protobuf via mir_connect_sync
Changed in canonical-devices-system-image:
status: Triaged → In Progress
Changed in protobuf (Ubuntu):
assignee: nobody → Alexandros Frantzis (afrantzis)
status: Confirmed → In Progress
Revision history for this message
Alexandros Frantzis (afrantzis) wrote :

I have attached a protobuf debdiff fix for this issue. It's a backport from upstream (more details in the debian patch metadata).

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "protobuf package fix debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Mathew Hodson (mhodson)
no longer affects: neverball (Ubuntu)
Revision history for this message
Michael Terry (mterry) wrote :

@Alexandros, I uploaded this to zesty, thanks! Since we're in freeze for zesty (and releasing a beta on Thursday), it may not land in short order, but I'll keep an eye on it.

Revision history for this message
Brandon Schaefer (brandontschaefer) wrote :

Bug is in protobuf leaking symbols, so not a mir/sdl2 bug.

Changed in libsdl2 (Ubuntu):
status: Confirmed → Invalid
Changed in mir:
status: In Progress → Invalid
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package protobuf - 3.0.0-9ubuntu2

---------------
protobuf (3.0.0-9ubuntu2) zesty; urgency=low

  * debian/patches/Hide-unnecessary-exported-library-symbols.patch:
    - Backport upstream fix to hide unnecessary exported symbols
      (LP: #1667352)
  * debian/patches/fix-reload.diff:
    - Removed, not needed anymore.

 -- Alexandros Frantzis <email address hidden> Thu, 16 Mar 2017 12:10:45 +0200

Changed in protobuf (Ubuntu):
status: In Progress → Fix Released
Stephen M. Webb (bregma)
Changed in canonical-devices-system-image:
status: In Progress → Fix Released
Stephen M. Webb (bregma)
Changed in mir:
milestone: 1.0.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.