Bug#850569: jstest-gtk: Crash for missing data files

2017-01-09 Thread Lluís Vilanova
James Cowgill writes:

> Control: forcemerge 850022 -1
> Hi,

> On 07/01/17 21:43, Lluís Vilanova wrote:
>> Package: jstest-gtk
>> Version: 0.1.1~git20160825-1
>> Severity: important
>> 
>> Starting jstest-gtk with a PS3 controller connected crashes the application 
>> with
>> the following message:
>> 
>> Error: Failed to open file '/usr/bin/data/PS3.png': No such file or directory

> Duplicate of #850022 (different symptoms but caused by the same bug).

>> If I start the app with a disconnected controller, an unhandled exception 
>> error
>> is shown after connecting the controller and clicking refresh.

> Just to clarify, is this the same message as above (ie not a separate bug)?

Same message, but seems like it's happening inside a signal handler and GTK
catches it to show a report instead of terminating the application:

  unhandled exception (type Glib::Error) in signal handler:
  domain: g-file-error-quark
  code  : 4
  what  : Failed to open file '/usr/bin/data/PS3.png': No such file or directory


Thanks,
  Lluis



Bug#850569: jstest-gtk: Crash for missing data files

2017-01-07 Thread James Cowgill
Control: forcemerge 850022 -1

Hi,

On 07/01/17 21:43, Lluís Vilanova wrote:
> Package: jstest-gtk
> Version: 0.1.1~git20160825-1
> Severity: important
> 
> Starting jstest-gtk with a PS3 controller connected crashes the application 
> with
> the following message:
> 
>   Error: Failed to open file '/usr/bin/data/PS3.png': No such file or 
> directory

Duplicate of #850022 (different symptoms but caused by the same bug).

> If I start the app with a disconnected controller, an unhandled exception 
> error
> is shown after connecting the controller and clicking refresh.

Just to clarify, is this the same message as above (ie not a separate bug)?

Thanks,
James



signature.asc
Description: OpenPGP digital signature


Bug#850569: jstest-gtk: Crash for missing data files

2017-01-07 Thread Lluís Vilanova
Package: jstest-gtk
Version: 0.1.1~git20160825-1
Severity: important

Starting jstest-gtk with a PS3 controller connected crashes the application with
the following message:

  Error: Failed to open file '/usr/bin/data/PS3.png': No such file or directory

If I start the app with a disconnected controller, an unhandled exception error
is shown after connecting the controller and clicking refresh.

It seems like the program is calculating the data path from its main program's
basename. This is useful for running from the build directory, but does not
follow the installation structure (the missing file is installed at
/usr/share/jstest-gtk/data/PS3.png).


Thanks,
  Lluis


-- System Information:
Debian Release: stretch/sid
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.8.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=ca_ES.UTF-8, LC_CTYPE=ca_ES.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages jstest-gtk depends on:
ii  libatkmm-1.6-1v52.24.2-2
ii  libc6   2.24-8
ii  libcairomm-1.0-1v5  1.12.0-1+b1
ii  libgcc1 1:6.2.1-5
ii  libglibmm-2.4-1v5   2.50.0-1
ii  libgtkmm-2.4-1v51:2.24.5-1
ii  libsigc++-2.0-0v5   2.10.0-1
ii  libstdc++6  6.2.1-5
ii  libx11-62:1.6.4-2

Versions of packages jstest-gtk recommends:
ii  joystick  1:1.6.0-1

jstest-gtk suggests no packages.

-- no debconf information