infographics and camera-app broken in build 71/72 - core dumped

Bug #1233396 reported by Matt Fischer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libusermetrics
Fix Released
Undecided
Pete Woods
touch-preview-images
Fix Released
Undecided
Pete Woods
lxc-android-config (Ubuntu)
Invalid
High
Stéphane Graber

Bug Description

Calling the infographics API using the standard calls that worked fine in 70 just broke in 71.

Here's an example from my simple fake infographics data call.

root@ubuntu-phablet:/# /custom/infographic/demometrics /custom/infographic/data.txt
terminate called after throwing an instance of 'std::logic_error'
  what(): Launch helper exited with unknown return code 1
Aborted (core dumped)

Chris Wayne (cwayne)
Changed in touch-preview-images:
status: New → Confirmed
Revision history for this message
Pete Woods (pete-woods) wrote :

Could you handle std::exception in your code, and print the underlying error message from e.what()?

i.e. something along the lines of:

try {
  //usermetrics stuff
} catch (std::exception &e) {
  qDebug() << "Error:" << e.what();
}

I'm going to update the source examples with this.

Revision history for this message
Pete Woods (pete-woods) wrote :

I've just tried out the build for today, and it still works with the camera app for me. So I'd really need to see your error message to know what's going wrong.

Changed in touch-preview-images:
assignee: nobody → Pete Woods (pete-woods)
Matt Fischer (mfisch)
Changed in sevilerow:
importance: Undecided → Critical
assignee: nobody → Matthew Fischer (mfisch)
status: New → Confirmed
Revision history for this message
Ricardo Salveti (rsalveti) wrote : Re: [Bug 1233396] [NEW] infographics broke in build 71 - core dumped

On Mon, Sep 30, 2013 at 6:51 PM, Matthew Fischer
<email address hidden> wrote:
> Public bug reported:
>
> Calling the infographics API using the standard calls that worked fine
> in 70 just broke in 71.
>
> Here's an example from my simple fake infographics data call.
>
> root@ubuntu-phablet:/# /custom/infographic/demometrics /custom/infographic/data.txt
> terminate called after throwing an instance of 'std::logic_error'
> what(): Launch helper exited with unknown return code 1
> Aborted (core dumped)

Are you using MIR without Unity8 running? If so, I had this issue for
every app I tried with friday's build, but didn't test with latest.

Revision history for this message
Matt Fischer (mfisch) wrote : Re: infographics broke in build 71 - core dumped

The camera does not work at all for me, so I cannot test it, but this is the exception that I get for the 3 calls to

Error: Launch helper exited with unknown return code 1
Error: Launch helper exited with unknown return code 1
Error: Launch helper exited with unknown return code 1

This is the line causing the issue. Did the API change?

MetricPtr metric(manager->add(dataSourceId, formatString, emptyDataString, TEXT_DOMAIN));

Revision history for this message
Matt Fischer (mfisch) wrote :

I did not enable Mir, so I have whatever is default in this image. Stuff like calculator does launch, although camera does not.

Revision history for this message
Pete Woods (pete-woods) wrote :

Hmm, that's some generic low-level dbus error :(

Can you see if the usermetricsservice daemon is running?

Can you have a poke around in the usermetrics service API using d-feet? Does it produce the same sort of errors?

Revision history for this message
Pete Woods (pete-woods) wrote :

Hmm, actually what that error means is that the usermetricsservice could not start for some reason.

Can you run "sudo -u usermetrics /usr/lib/*/libusermetrics/usermetricsservice". Hopefully that might give us something more to work with.

Revision history for this message
Matt Fischer (mfisch) wrote :

Usermetrics is not running. It's upset that the DB file is missing:

libusermetrics/usermetricsservice.cache/upstart# sudo -u usermetrics /usr/lib/*
Could not open database [ "/var/lib/usermetrics/usermetrics4.db" ]

Revision history for this message
Pete Woods (pete-woods) wrote : Re: [Bug 1233396] Re: infographics broke in build 71 - core dumped

Okay, this means something has gone wrong with the directory setup.
/var/lib/usermetrics should be created by the Debian maintainer scripts for
libusermetrics. The service creates the actual db file.

Is that folder missing, or read only?
On 1 Oct 2013 01:55, "Matthew Fischer" <email address hidden> wrote:

> Usermetrics is not running. It's upset that the DB file is missing:
>
> libusermetrics/usermetricsservice.cache/upstart# sudo -u usermetrics
> /usr/lib/*
> Could not open database [ "/var/lib/usermetrics/usermetrics4.db" ]
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1233396
>
> Title:
> infographics broke in build 71 - core dumped
>
> Status in The Sevilerow project:
> Confirmed
> Status in Touch Preview Images:
> Confirmed
>
> Bug description:
> Calling the infographics API using the standard calls that worked fine
> in 70 just broke in 71.
>
> Here's an example from my simple fake infographics data call.
>
> root@ubuntu-phablet:/# /custom/infographic/demometrics
> /custom/infographic/data.txt
> terminate called after throwing an instance of 'std::logic_error'
> what(): Launch helper exited with unknown return code 1
> Aborted (core dumped)
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/sevilerow/+bug/1233396/+subscriptions
>

Revision history for this message
Matt Fischer (mfisch) wrote : Re: infographics broke in build 71 - core dumped

I think it's only writable by root.

root@ubuntu-phablet:/# ls -al /var/lib/usermetrics/
total 8
drwxr-x--- 2 root root 4096 Sep 30 21:01 .
drwxr-xr-x 44 root root 4096 Oct 1 01:20 ..

Revision history for this message
Matt Fischer (mfisch) wrote :

Interestingly the camera-app has the same segfault:

phablet@ubuntu-phablet:~$ camera-app
__pthread_gettid -2
loaded the dummy plugin
loaded the Linux plugin
Registered the AalSensorPlugin types

terminate called after throwing an instance of 'std::logic_error'
  what(): Launch helper exited with unknown return code 1
Aborted (core dumped)

summary: - infographics broke in build 71 - core dumped
+ infographics and camera-app broken in build 71/72 - core dumped
Loïc Minier (lool)
Changed in lxc-android-config (Ubuntu):
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Stéphane Graber (stgraber)
Revision history for this message
Chris Wayne (cwayne) wrote :

This is fixed in image 75

Pete Woods (pete-woods)
Changed in libusermetrics:
status: New → Fix Released
assignee: nobody → Pete Woods (pete-woods)
Changed in touch-preview-images:
status: Confirmed → Fix Released
Chris Wayne (cwayne)
Changed in sevilerow:
status: Confirmed → Fix Released
Pete Woods (pete-woods)
Changed in lxc-android-config (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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