Math

My script Math widget is crashing in Android Naugat(Android 7)

Hi,

I'm using myscript Math widget from a while ago in my mobile which is working fine always. but after i upgraded my mobile to Android N (Naugat), the same app is crashing always when i'm clicking the widget icon. and the stack trace is:

2914-12178/? A/google-breakpad: M ABF98000 00000000 00005000 40A7210F98569AA29EAAD44F80DDADA90 app_process32

01-09 10:58:23.590 12914-12178/? A/google-breakpad: M 71CA6000 0056E000 002EF000 000000000000000000000000000000000 boot.oat

01-09 10:58:23.590 12914-12178/? A/google-breakpad: M 72414000 0047D000 00240000 000000000000000000000000000000000 boot-core-libart.oat

01-09 10:58:23.590 12914-12178/? A/google-breakpad: M 726C2000 0006C000 0003D000 000000000000000000000000000000000 boot-conscrypt.oat

01-09 10:58:23.590 12914-12178/? A/google-breakpad: M 72786000 00085000 00049000 000000000000000000000000000000000 boot-okhttp.oat

01-09 10:58:23.590 12914-12178/? A/google-breakpad: M 727DB000 0000A000 00002000 000000000000000000000000000000000 boot-core-junit.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 72949000 0016A000 00034000 000000000000000000000000000000000 boot-bouncycastle.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 72A9A000 0011B000 00030000 000000000000000000000000000000000 boot-ext.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 740C2000 015F6000 00C06000 000000000000000000000000000000000 boot-framework.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 74FE5000 0031B000 001A3000 000000000000000000000000000000000 boot-telephony-common.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 751B9000 0002F000 0000D000 000000000000000000000000000000000 boot-voip-common.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 751F4000 0002C000 00016000 000000000000000000000000000000000 boot-ims-common.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 7535C000 00150000 0001C000 000000000000000000000000000000000 boot-apache-xml.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 75422000 000A8000 00055000 000000000000000000000000000000000 boot-org.apache.http.legacy.boot.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 7547C000 00003000 00001000 000000000000000000000000000000000 boot-prcui-config.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 75482000 00003000 00001000 000000000000000000000000000000000 boot-tcmiface.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 7548B000 00006000 00001000 000000000000000000000000000000000 boot-telephony-ext.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 754A7000 00019000 00003000 000000000000000000000000000000000 boot-qcom.fmradio.oat

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 84E26000 00A3B000 007D7000 000000000000000000000000000000000 base.odex

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 85695000 00000000 001C0000 D8BEBB458D7A853C1A8726286CFFAEAD0 libATKCore.so

01-09 10:58:23.591 12914-12178/? A/google-breakpad: M 85898000 00000000 00040000 A7CB87DC1F4C0F4C4309362B66C58B7C0 libMyScriptDocument.CPP.so

01-09 10:58:23.592 12914-12178/? A/google-breakpad: M 858DB000 00000000 0011A000 4C3AC582A0CB9DBAAB6EF43754D47BD40 libc++_shared.so

01-09 10:58:23.592 12914-12178/? A/google-breakpad: M 85B85000 00000000 0000A000 09D824DBCDE17A0389D930F5B8F3DEDC0 libMyScriptGesture.CPP.so

01-09 10:58:23.592 12914-12178/? A/google-breakpad: M 85B92000 00000000 0001B000 D20E6F14E0803A4FF26C6136BE15383B0 libMyScriptInk.CPP.so

01-09 10:58:23.592 12914-12178/? A/google-breakpad: M 85BAF000 00000000 00029000 B371270260C09C039E7F7B2C5FE7657A0 libMyScriptEngine.CPP.so

01-09 10:58:23.592 12914-12178/? A/google-breakpad: M 872A3000 00000000 000A3000 135A9C1D6C559F3710A368856287715A0 libMyScriptInk.so

01-09 10:58:23.592 12914-12178/? A/google-breakpad: M 87563000 00000000 0004B000 0E28DCE11692A10BA7A9344E8A1986D70 libMyScriptGesture.so

01-09 10:58:23.592 12914-12178/? A/google-breakpad: M 87686000 00000000 000BE000 214FA99A2E55319142FFAC8FBD0BD0120 libMyScriptDocument.so

01-09 10:58:23.592 12914-12178/? A/google-breakpad: M 87749000 00000000 00069000 2ACD53C83DD0E52AC0B48F561A798AC50 libMyScriptMath.so

01-09 10:58:23.592 12914-12178/? A/google-breakpad: M 877B6000 00000000 00064000 6B9CFDF6199DDBBBCC0956DC3FF276F90 libMyScript2D.so

01-09 10:58:23.592 12914-12178/? A/google-breakpad: M 8781D000 00000000 0012A000 8D393F0E2C120C35B909845D16607B200 libMyScriptEngine.so

Hope this issue will solved soon

Thanks and Regards,

Raviteja.



Dear Raviteja,


I am glad issue is solved.


Feel free to contact us if you have any other question.


Best regards,


Olivier

Hi Oliver,

Thank you for the support you provided.The Issue is solved!!!!. The issue is solved by upgrading the libraries in provided MathWidget sample project to my project. In virtual and Nexus devices, it works fine but for other devices in naugat(Android 7) app crashes. After updating libraries, it works fine in all the devices.

 

Dear Raviteja,


Thank you for the project.


On my side, I was not able to reproduce the issue, it ran immediately without any issue on both virtual device and android N device. I was able to start, run and do calculation without any difficulty.


Here is my Android N device configuration:

-Nexus 9 device

-Android 7.1.1

-Kernel version: 3.10.103-ge912b1


For the Virtual device:

-Android 7.0

-Kernel version: 3.10.0+


At which step is it crashing on your side? Are you able to start? Run a simple calculation? Do your devices have a particulare configuration? Architecture? Can you do step by step?


Can you also try on virtual device?


Best regards,


Olivier

Dear Ravitja,


thank you for the link to the application.


On my side, I did the following:

-Install on Android M => it works fine

-Install on Android N => Both keyboard and Writing Panel are not starting. The error rather seems to occur when starting your input method. Can you please investigate this way? Or can you please try in step by step mode, or only use the ATK not your keyboard?


On my side, I got the following logcat with your application:

01-17 14:57:36.166  793  793 E PhoneInterfaceManager: [PhoneIntfMgr] queryModemActivityInfo: Empty response
01-17 14:57:36.177  562  634 I WifiHAL : Got channel list with 13 channels
01-17 14:57:36.183  562  634 I WifiHAL : Got channel list with 4 channels
01-17 14:57:36.183  562  634 I WifiHAL : Got channel list with 15 channels
01-17 14:57:36.186  562  603 E BatteryStatsService: modem info is invalid: ModemActivityInfo{ mTimestamp=0 mSleepTimeMs=0 mIdleTimeMs=0 mTxTimeMs[]=[0, 0, 0, 0, 0] mRxTimeMs=0 mEnergyUsed=0}
01-17 14:57:36.194  562  600 I ActivityManager: Killing 2426:com.android.printspooler/u0a81 (adj 906): empty #17
01-17 14:57:36.353  562  812 D ActivityManager: cleanUpApplicationRecord -- 2426
01-17 14:57:38.022  1151  1189 W GmsLocationProvider: Error removing location updates: 16
01-17 14:57:40.669  2610  2610 E My script Recognition: Configuration Begins..
01-17 14:57:40.669  2610  2610 E My script Recognition: Configuration Begins..
01-17 14:57:40.669  2610  2610 D My script Recognition: Math Widget configured!
01-17 14:57:40.689  2610  2610 D My script Recognition: Math Widget configured!
01-17 14:57:42.687  2610  2799 D Question Written: \text{Choose the correct answer:}
01-17 14:57:42.691  2610  2610 W View  : WebView not displayed because it is too large to fit into a software layer (or drawing cache), needs 13787136 bytes, only 12582912 available
01-17 14:57:44.547  678  678 V DeadZone: consuming errant click: (741.25867,21.365723)
01-17 14:57:45.194  562  622 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.google.android.googlequicksearchbox/com.google.android.launcher.GEL (has extras)} from uid 1000 on display 0
01-17 14:57:45.309  1113  1113 I GEL  : handleIntent(Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=com.google.android.googlequicksearchbox/com.google.android.launcher.GEL (has extras) })
01-17 14:57:45.395  562  571 I art  : Background partial concurrent mark sweep GC freed 50741(2MB) AllocSpace objects, 8(176KB) LOS objects, 33% free, 11MB/17MB, paused 2.632ms total 144.412ms
01-17 14:57:45.425  1151  1164 I AttachedClient: Adding client event 2 to pending list.
01-17 14:57:45.475  1151  1151 I OptInState: There is a new client and it does not support opt-in. Dropping request.
01-17 14:57:45.483  1151  1151 I MicroDetectionWorker: Micro detection mode: [mDetectionMode: [1]].
01-17 14:57:45.494  1151  5791 I MicroRecognitionRunner: Starting detection.


Based on this information, I see the ATK is starting, but no crash is raised.


As said above, the tests I did on my side were with ATK 2.2 and your gradle configuration all went fine on the same Android N i used for the test.


So, I am afraid without further log/debug we are stuck. Can you please try the above (disable keyboard, do step by step...)?


Best regards,


Olivier

Here is our app google play link:-

https://play.google.com/store/apps/details?id=com.thirdleap.euler

Thanks,

Ravi


Dear Raviteja,

can you please provide us with a link to your project? This may help reproducing.
Indeed, as said previously, the default MathWidget sample with your build.gradle configuration worked fine on our side.

Best regards,

Olivier

I have tired it on multiple device with Android Naugat(Android 7). Its crashing on all devices. 

tanks,

Ravi.

Dear Raviteja,

I tried to reproduce with your configuration, but was not able to, the sample worked fine.

Does your device have any special configuration?

Best regards,

Olivier

 

Thanks for the Reply Olivier,

I'm using math widget in my another sample application.

and these are my contents of build.gradle file

`

apply plugin: 'com.android.application'

android {

    compileSdkVersion 24

    buildToolsVersion "24.0.3"

    useLibrary 'org.apache.http.legacy'

    dexOptions {

        preDexLibraries = false

        javaMaxHeapSize "4g"

    }

    lintOptions {

        abortOnError false

    }

    defaultConfig {

        applicationId "com.example.ravi"

        minSdkVersion 19

        targetSdkVersion 24

        versionCode 20

        versionName "1.0.0.2"

    }

    buildTypes {

        release {

            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

        }

    }

}

dependencies {

    compile fileTree(dir: 'libs', include: ['*.jar'])

    testCompile 'junit:junit:4.12'

   compile('com.android.support:cardview-v7:23.2.0') {

        force = true

    }

    compile(name: 'MyScript_ATK-Core-android-component', ext: 'aar')

    compile(name: 'MyScript_ATK-Math-android-component', ext: 'aar')

    compile(name: 'MyScript_ATK-MathWidget-android-widget', ext: 'aar')

    compile 'com.android.support:appcompat-v7:24.2.0'

    compile 'com.android.support:design:24.2.0'

    compile 'com.google.android.gms:play-services-auth:9.6.1'

    compile 'com.facebook.android:facebook-android-sdk:4.+'

    compile 'com.android.volley:volley:1.0.0'

}

apply plugin: 'com.google.gms.google-services'

`

Hope this helps,

Raviteja

Dear Raviteja Peddinti,

Thank you for contacting us.

Is it occuring with the default MathWidget sample?
Is it possible to get the content of your build.gradle file for the MathWidget?

Thank you,

Best regards,

Olivier

 

Login or Signup to post a comment