g15 macro segfaults when macros are saved

Bug #572679 reported by Santiago Radeff
36
This bug affects 7 people
Affects Status Importance Assigned to Milestone
g15macro (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: g15macro

g15macro launches for its first time without problems. You can record macros and use them flawlessly but when you exit g15macro and try to launch it again segfaults with this output:

The application (or it's libraries) caught a Segmentation Fault. Backtrace follows:
Backtrace: /usr/lib/libg15daemon_client.so.1(g15_sighandler+0x68) [0xb7796bf8]
Backtrace: [0xb77ab400]
Backtrace: /lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x5c) [0xb74b0f9c]
Backtrace: /usr/lib/libfreetype.so.6(+0x705d) [0xb771a05d]
Backtrace: /usr/lib/libfreetype.so.6(ft_mem_qalloc+0x1b) [0xb771e12b]
Backtrace: /usr/lib/libfreetype.so.6(ft_mem_alloc+0x33) [0xb771fe23]
Backtrace: /usr/lib/libfreetype.so.6(FT_GlyphLoader_New+0x31) [0xb77205b1]
Backtrace: /usr/lib/libfreetype.so.6(FT_Add_Module+0x133) [0xb77222f3]
Backtrace: /usr/lib/libfreetype.so.6(FT_Add_Default_Modules+0x37) [0xb771a3c7]
Backtrace: /usr/lib/libfreetype.so.6(FT_Init_FreeType+0x4a) [0xb771a42a]
Backtrace: /usr/lib/libg15render.so.1(g15r_initCanvas+0x51) [0xb778d1f1]
Backtrace: g15macro() [0x804ada2]
Backtrace: /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xb7457bd6]
Backtrace: g15macro() [0x80495c1]
End of Backtrace.

It is like if the g15macro cannot understand the g15macro.conf file if you delete it, the program runs well but without the saved macros.

Searching the g15macro forum i found this:

"I encountered the same bug and fixed it by commenting the line g15r_initCanvas(canvas); in g15macro.c on line number 922 in the following code section:

if (canvas != NULL) {
//g15r_initCanvas(canvas);
} else {
printf("Unable to initialise the libg15render canvas\nExiting\n");
return 1;
}"

but i was unable to compile g15daemon and libraries from source.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: g15macro 1.0.3-3
ProcVersionSignature: Ubuntu 2.6.32-21.32-generic-pae 2.6.32.11+drm33.2
Uname: Linux 2.6.32-21-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Sat May 1 00:38:58 2010
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
ProcEnviron:
 LANG=es_ES.utf8
 SHELL=/bin/bash
SourcePackage: g15macro

Revision history for this message
Santiago Radeff (santiago-dragontech) wrote :
Revision history for this message
turqoisehex (rich-kobelt) wrote :

It would be great if someone could release a patch, so that those of us using Lucid could apply it at the same time we use the patch to make g15daemon work on Lucid

(see: https://bugs.launchpad.net/ubuntu/+source/g15daemon/+bug/538259)

Revision history for this message
Santiago Radeff (santiago-dragontech) wrote :

Hi turqoisehex.
I have found a solution here: http://www.g15tools.com/node/154#comment-861
Compile from source and it works fine.

regards :)

Revision history for this message
Moritz M (moritz-muenst) wrote :

This still seams to be a Problem.
And the stated solution leads to a new error while configuring the package.
configure: error: "libg15daemon_client (or its devel package) not found. please install it"

But libg15daemon_client isn't available in the repository. Somewhere I read it is part of libg15daemon_client.
But:
 Couldn't find package "libg15daemon-client". However, the following
 packages contain "libg15daemon-client" in their name:
   libg15daemon-client1 libg15daemon-client1 libg15daemon-client-dev
   libg15daemon-client-dev

after installing _both_ of them I still get the same error. So what should I do next?

bye

Revision history for this message
Moritz M (moritz-muenst) wrote :

Can't find a "edit" button, so i have to make a new post, sorry.

It does work if I run g15macro as root. But I'm pretty sure that this is not a good idea... :/
What do you think?

Revision history for this message
Rutger de Knijf (rutger-5) wrote :

I can confirm that this problem still exists. But rebuilding g15macro from source after commenting out the "g15r_initCanvas(canvas);" as described above works, at least to get the MR working. I am using a G11 keyboard on Ubuntu 14.04.

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.