Android Crashes with Parsing Version number

Android Crashes with Parsing Version number

magicsethgmagicsethg Member Posts: 4

I'm trying to get the demos running on my android with my AR Frames.


When I click on my device's name to make it connect, it crashes, Is this a known inssue?


07-01 11:01:49.217 25030 25030 E AndroidRuntime: FATAL EXCEPTION: main

07-01 11:01:49.217 25030 25030 E AndroidRuntime: Process: com.bose.demo.wearableunity, PID: 25030

07-01 11:01:49.217 25030 25030 E AndroidRuntime: java.lang.NumberFormatException: For input string: "080665U83581593AE"

07-01 11:01:49.217 25030 25030 E AndroidRuntime: at java.lang.Integer.parseInt(Integer.java:615)

07-01 11:01:49.217 25030 25030 E AndroidRuntime: at java.lang.Integer.parseInt(Integer.java:650)

07-01 11:01:49.217 25030 25030 E AndroidRuntime: at com.bose.wearable.firmwareupgrade.Version.parse(Version.java:89)

07-01 11:01:49.217 25030 25030 E AndroidRuntime: at com.bose.wearable.firmwareupgrade.FirmwareUpgradeResultImpl.upgradeAvailable(FirmwareUpgradeResultImpl.java:39)

07-01 11:01:49.217 25030 25030 E AndroidRuntime: at unity.bose.com.wearableplugin.proxy.SessionProxy.onFirmwareUpgradeReceived(SessionProxy.java:189)


Comments

  • magicsethgmagicsethg Member Posts: 4
    It seems like it is getting the serial number and trying to parse it as a number
  • Filip@Bose[email protected] Member Posts: 43
    Can you attempt this using the new version 4.0.0 of the SDK available on our portal 
  • AbigailAbigail Member Posts: 2
    @[email protected]

    I am getting a nearly identical crash using Unity 2019.1.4/2019.1.10/2019.1.11 as well as 2018.4LTS with version 4.0.0 of the SDK and updated firmware on my Frames.

    This error occurs with both my own Scenes and when building the Wearable Demo. Using the previous version of the SDK, I was able to build both my own Scenes and the Wearable Demo successfully.

    ADB logcat:
    07-23 15:00:37.190  1782  1782 E ActivityManager: TouchDown intent received, starting ActiveLaunch
    07-23 15:00:37.651 21070 21086 I Unity   : SystemInfo CPU = ARMv7 VFPv3 NEON, Cores = 4, Memory = 3722mb
    07-23 15:00:37.651 21070 21086 I Unity   : SystemInfo ARM big.LITTLE configuration: 2 big (mask: 0xc), 2 little (mask: 0x3)
    07-23 15:00:37.654 21070 21086 I Unity   : ApplicationInfo com.bose.demo.wearableunity version 1.0 build 1a8235d1-7bcb-405b-9a25-63bbcace9a15
    07-23 15:00:37.654 21070 21086 I Unity   : Built from '2019.1/staging' branch, Version '2019.1.4f1 (ffa3a7a2dd7d)', Build type 'Release', Scripting Backend 'mono', CPU 'armeabi-v7a', Stripping 'Disabled'
    --------- beginning of crash
    07-23 15:01:10.203 21070 21070 E AndroidRuntime: FATAL EXCEPTION: main
    07-23 15:01:10.203 21070 21070 E AndroidRuntime: Process: com.bose.demo.wearableunity, PID: 21070
    07-23 15:01:10.203 21070 21070 E AndroidRuntime: java.lang.NumberFormatException: For input string: "080665U90210058AE"
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at java.lang.Integer.parseInt(Integer.java:608)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at java.lang.Integer.parseInt(Integer.java:643)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at com.bose.wearable.firmwareupgrade.Version.parse(Version.java:89)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at com.bose.wearable.firmwareupgrade.FirmwareUpgradeResultImpl.upgradeAvailable(FirmwareUpgradeResultImpl.java:39)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at unity.bose.com.wearableplugin.proxy.SessionProxy.onFirmwareUpgradeReceived(SessionProxy.java:186)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at unity.bose.com.wearableplugin.proxy.SessionProxy.access$000(SessionProxy.java:42)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at unity.bose.com.wearableplugin.proxy.SessionProxy$2.onComplete(SessionProxy.java:138)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at com.google.android.gms.tasks.zzj.run(Unknown Source:4)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at android.os.Handler.handleCallback(Handler.java:789)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:98)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:164)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:6944)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
    07-23 15:01:10.203 21070 21070 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

  • Filip@Bose[email protected] Member Posts: 43
    This definitely seems to be an Android Studio / Java configuration issue, have you tried from a different machine with any success?
  • AbigailAbigail Member Posts: 2
    Thanks Filip, I'm still running into the same issues on my laptop, even after re-installing Android Studio and various SDKs (Android SDK/Build Tools/Platform Tools). However, things are working smoothly on my main development machine, so it definitely seems as though it must be a configuration issue. I'll do a full 'reset' on the laptop to see if I can get back to a workable state there and report back with the solution once I've found one.
Sign In or Register to comment.