Bug 306088 - crash if i try to include QtSystemInfo library
Summary: crash if i try to include QtSystemInfo library
Status: RESOLVED FIXED
Alias: None
Product: Necessitas
Classification: Applications
Component: Android Qt4 Mobility (show other bugs)
Version: alpha4
Platform: Android Android 4.x
: HI crash
Target Milestone: Alpha 4
Assignee: BogDan Vatra
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-31 15:29 UTC by strupfinger
Modified: 2012-08-31 17:55 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description strupfinger 2012-08-31 15:29:46 UTC
After adding the library to our project, app will die immediately after the Necessitas splash screen. 

log:
I/dalvikvm(22489):   at dalvik.system.NativeStart.main(Native Method)
I/dalvikvm(22489): 
E/dalvikvm(22489): VM aborting
F/libc    (22489): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1)

test project: https://dl.dropbox.com/u/1575961/androtest.zip

Reproducible: Always

Steps to Reproduce:
1. add <item>QtSystemInfo</item> to /android/res/values/libs.xml file
2. add:
CONFIG += mobility
MOBILITY = systeminfo
to *.pro file
3. build and run on adroid 4.x
Comment 1 BogDan Vatra 2012-08-31 17:45:53 UTC
Make sure you add "android.permission.DISABLE_KEYGUARD" permission.
Comment 2 BogDan Vatra 2012-08-31 17:55:49 UTC
Git commit 5977d098ae1b577e684f08d5d3463a968fa4a61f by BogDan Vatra.
Committed on 31/08/2012 at 19:48.
Pushed by vatra into branch 'alpha4'.

Don't crash if DISABLE_KEYGUARD permission is not set.

M  +18   -11   src/android/jar/src/org/kde/necessitas/mobile/QtSystemInfo.java

http://commits.kde.org/android-qt/5977d098ae1b577e684f08d5d3463a968fa4a61f
Comment 3 BogDan Vatra 2012-08-31 17:55:49 UTC
Git commit 5977d098ae1b577e684f08d5d3463a968fa4a61f by BogDan Vatra.
Committed on 31/08/2012 at 19:48.
Pushed by vatra into branch 'alpha4'.

Don't crash if DISABLE_KEYGUARD permission is not set.

M  +18   -11   src/android/jar/src/org/kde/necessitas/mobile/QtSystemInfo.java

http://commits.kde.org/android-qt/5977d098ae1b577e684f08d5d3463a968fa4a61f