Announcement

Collapse
No announcement yet.

New Phones are crashing when downloading code or app

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • New Phones are crashing when downloading code or app

    We just purchased a new computer and new phones. We downloaded all the newest versions for Android Studio and the Driver station/Robot Controllers on the new phones following the manual. However, when we try to download opmodes onto the new RC phone it crashes. We updated our old phones to the new apps off of the Github. The old phones work fine but the new ones (purchased as part of the kit) are not working. We can successfully use any of the programs on the old phones just fine. But the new phone stops working and closes out as the programs are down loading. The phone will no longer open the app. We uninstalled the app and reinstalled it. It open fine, but once we try to put any opmodes on the phone it crashes.

    Suggestions?

  • #2
    afield2017 This is a longshot, however, at our regions post kick-off build event, we saw one team's phones behave as you've described, and the problem resolved itself once the sim cards were removed. Presumably, this is because the phone is searching for cell network and doesn't react well when it can't find one.

    Again, a longshot as it sounds like you have experience with phone setup, but it's an easy thing to miss in the excitement of getting new gear.

    Have a great season!
    Michael P Clark
    Founding Mentor, FTC 9958
    http://www.redfishrobotics.com
    "We're Hooked on FIRST"

    Comment


    • #3
      afield2017 You should probably post the logs of the crashes to receive more helpful assistance.

      Comment


      • #4
        The simm cards are removed. The phone says "failed to open". This is the error from the computer:

        Comment


        • #5

          Comment


          • #6
            Our RC phone is still crashing. Android version is 7.1.1

            Order of events:
            1. New MotoG4 phones
            2. Setup according to the FTC Manual
            a. removed sim card
            3. App launches fine
            4. Connects to the DS phone
            5. Download Android Studio program
            6. crashes and won't start

            We have tried reseting to factory default and redo. No difference. We have tried download the FTC RC app via computer and by wifi - No difference

            When it crashes initially we get the following:


            Then the log shows the following:
            W/robotcontroller: type=1400 audit(0.0:17): avc: denied { read } for uid=10132 name="gpuclk" dev="sysfs" ino=11560 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=ubject_r:sysfs:s0 tclass=file permissive=0
            V/OnBotJava: OnBotJavaManager::static
            D/AndroidRuntime: Shutting down VM
            E/AndroidRuntime: FATAL EXCEPTION: main
            Process: com.qualcomm.ftcrobotcontroller, PID: 6715
            java.lang.ExceptionInInitializerError
            at org.firstinspires.ftc.robotcore.internal.opmode.Re gisteredOpModes.<init>(RegisteredOpModes.java:95)
            at org.firstinspires.ftc.robotcore.internal.opmode.Re gisteredOpModes$InstanceHolder.<clinit>(Registered OpModes.java:70)
            at org.firstinspires.ftc.robotcore.internal.opmode.Re gisteredOpModes.getInstance(RegisteredOpModes.java :72)
            at com.google.blocks.ftcrobotcontroller.runtime.Block sOpMode.addOpModeRegistrar(BlocksOpMode.java:575)
            at com.google.blocks.ftcrobotcontroller.runtime.Block sOpMode.setActivityAndWebView(BlocksOpMode.java:55 7)
            at org.firstinspires.ftc.robotcontroller.internal.Ftc RobotControllerActivity.onCreate(FtcRobotControlle rActivity.java:289)
            at android.app.Activity.performCreate(Activity.java:6 687)
            at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1140)
            at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2631)
            at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:2743)
            at android.app.ActivityThread.-wrap12(ActivityThread.java)
            at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1490)
            at android.os.Handler.dispatchMessage(Handler.java:10 2)
            at android.os.Looper.loop(Looper.java:154)
            at android.app.ActivityThread.main(ActivityThread.jav a:6165)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:888)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:778)
            Caused by: java.lang.RuntimeException: exception in extractJavaLibraryAsset()
            at org.firstinspires.ftc.robotcore.internal.opmode.On BotJavaManager.extractJavaLibraryAsset(OnBotJavaMa nager.java:246)
            at org.firstinspires.ftc.robotcore.internal.opmode.On BotJavaManager.extractAssets(OnBotJavaManager.java :220)
            at org.firstinspires.ftc.robotcore.internal.opmode.On BotJavaManager.initialize(OnBotJavaManager.java:18 7)
            at org.firstinspires.ftc.robotcore.internal.opmode.On BotJavaManager.<clinit>(OnBotJavaManager.java:180)
            at org.firstinspires.ftc.robotcore.internal.opmode.Re gisteredOpModes.<init>(RegisteredOpModes.java:95)
            at org.firstinspires.ftc.robotcore.internal.opmode.Re gisteredOpModes$InstanceHolder.<clinit>(Registered OpModes.java:70)
            at org.firstinspires.ftc.robotcore.internal.opmode.Re gisteredOpModes.getInstance(RegisteredOpModes.java :72)
            at com.google.blocks.ftcrobotcontroller.runtime.Block sOpMode.addOpModeRegistrar(BlocksOpMode.java:575)
            at com.google.blocks.ftcrobotcontroller.runtime.Block sOpMode.setActivityAndWebView(BlocksOpMode.java:55 7)
            at org.firstinspires.ftc.robotcontroller.internal.Ftc RobotControllerActivity.onCreate(FtcRobotControlle rActivity.java:289)
            at android.app.Activity.performCreate(Activity.java:6 687)
            at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1140)
            at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2631)
            at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:2743)
            at android.app.ActivityThread.-wrap12(ActivityThread.java)
            at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1490)
            at android.os.Handler.dispatchMessage(Handler.java:10 2)
            at android.os.Looper.loop(Looper.java:154)
            at android.app.ActivityThread.main(ActivityThread.jav a:6165)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:888)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:778)
            Caused by: java.io.FileNotFoundException: /storage/emulated/0/FIRST/java/lib/android.jar (Permission denied)
            at java.io.FileOutputStream.open(Native Method)
            at java.io.FileOutputStream.<init>(FileOutputStream.j ava:221)
            at java.io.FileOutputStream.<init>(FileOutputStream.j ava:169)
            at org.firstinspires.ftc.robotcore.internal.system.Ap pUtil.copyStream(AppUtil.java:412)
            at org.firstinspires.ftc.robotcore.internal.opmode.On BotJavaManager.extractJavaLibraryAsset(OnBotJavaMa nager.java:239)
            at org.firstinspires.ftc.robotcore.internal.opmode.On BotJavaManager.extractAssets(OnBotJavaManager.java :220)
            at org.firstinspires.ftc.robotcore.internal.opmode.On BotJavaManager.initialize(OnBotJavaManager.java:18 7)
            at org.firstinspires.ftc.robotcore.internal.opmode.On BotJavaManager.<clinit>(OnBotJavaManager.java:180)
            at org.firstinspires.ftc.robotcore.internal.opmode.Re gisteredOpModes.<init>(RegisteredOpModes.java:95)
            at org.firstinspires.ftc.robotcore.internal.opmode.Re gisteredOpModes$InstanceHolder.<clinit>(Registered OpModes.java:70)
            at org.firstinspires.ftc.robotcore.internal.opmode.Re gisteredOpModes.getInstance(RegisteredOpModes.java :72)
            at com.google.blocks.ftcrobotcontroller.runtime.Block sOpMode.addOpModeRegistrar(BlocksOpMode.java:575)
            at com.google.blocks.ftcrobotcontroller.runtime.Block sOpMode.setActivityAndWebView(BlocksOpMode.java:55 7)
            at org.firstinspires.ftc.robotcontroller.internal.Ftc RobotControllerActivity.onCreate(FtcRobotControlle rActivity.java:289)
            at android.app.Activity.performCreate(Activity.java:6 687)
            at android.app.Instrumentation.callActivityOnCreate(I nstrumentation.java:1140)
            at android.app.ActivityThread.performLaunchActivity(A ctivityThread.java:2631)
            at android.app.ActivityThread.handleLaunchActivity(Ac tivityThread.java:2743)
            at android.app.ActivityThread.-wrap12(ActivityThread.java)
            at android.app.ActivityThread$H.handleMessage(Activit yThread.java:1490)
            at android.os.Handler.dispatchMessage(Handler.java:10 2)
            at android.os.Looper.loop(Looper.java:154)
            at android.app.ActivityThread.main(ActivityThread.jav a:6165)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCa ller.run(ZygoteInit.java:888)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:778)
            Application terminated.

            Any suggestions?

            Thanks!
            Attached Files

            Comment


            • #7
              AnnaF, revert your build.gradle back to the version that shipped with the SDK.

              Comment


              • #8
                dmssargent, before I do that, would that possible affect my other phones that do work with Android Studio. One set of phones work, but the new ones do not. Could this mess with the working phones?

                Comment


                • #9
                  Nope, I'm assuming the old phones are using an old version of Android versus the new phones. Certain modifications to the build.gradle tell newer versions of Android that the app is compatible with APIs that the app is not yet compatible with resulting in this crash.

                  Comment


                  • #10
                    Thank you for your feedback. Someone from the CocoNuts team helped us out. We installed the newest SDK (4.3 version) and pushed the Driver station apk file to the new phone. This cleared up what was happening. Now all our phones are working!

                    Comment

                    Working...
                    X