Bug 8957 - gtk3 apps segfault after im module location fix
Summary: gtk3 apps segfault after im module location fix
Status: VERIFIED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: graphics (show other bugs)
Version: 2.1
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.1 M2
Assignee: Maxin B. John
QA Contact: Francisco Pedraza
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-20 14:55 UTC by Jussi Kukkonen
Modified: 2016-03-10 21:00 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jussi Kukkonen 2016-01-20 14:55:23 UTC
Yocto commit a8c25af9 ("matchbox-keyboard: export GTK_IM_MODULE_FILE location") broke gtk3 apps (they segfault in XSendEvent with gtk im stuff in backtrace).

The commit uses GTK_IM_MODULE_FILE to set the module location, which breaks because the env var is used by _both_ gtk2 and gtk3 (and the modules obviously are not compatible).

I think we need to fix the postinst script to generate the files in the right place to begin with. It should not be difficult (I think we can hard code the api-version-directory -- it's been 2.10.0 for gtk2 forever).



Ross: can you confirm what the state of matchbox-keyboard-as-IM-for-gtk3 should be? My guess was that it can't do that (or at least that the im module is not implemented) but I think I never tried before...
Comment 1 Ross Burton 2016-01-21 15:59:25 UTC
Yeah matchbox-keyboard, specifically the bridge, needs porting to GTK+ 3.
Comment 2 Maxin B. John 2016-01-25 09:21:18 UTC
I haven't checked the impact on gtk3 applications by that patch (GTK_IM_MODULE_FILE is used by both gtk2 and gtk3). Sorry for that.  

Yes, the proper way will be to fix gtk-immodules-cache.bbclass.
Comment 3 Maxin B. John 2016-02-02 11:06:03 UTC
Patch sent to the oe-core ML:
http://lists.openembedded.org/pipermail/openembedded-core/2016-February/116647.html
Comment 5 Francisco Pedraza 2016-03-10 20:17:28 UTC
(In reply to comment #4)
> http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/
> ?id=333dce483fc056512443a7a318f55abace7ca98a

Hi
I need a little more details in order to verify this one.
Comment 6 Ross Burton 2016-03-10 20:22:17 UTC
We don't have any gtk3 apps in sato by default, so I think you need to take Jussi not reopening this as verification.
Comment 7 Francisco Pedraza 2016-03-10 21:00:22 UTC
Based on Ross comments this can be closed.