Hi, I change my phone to a Google Pixel 7 with Android 16. The Companion app crash automatically when trying to start the app. Any idea how to resolve the situation?
Thank you
Hi, I change my phone to a Google Pixel 7 with Android 16. The Companion app crash automatically when trying to start the app. Any idea how to resolve the situation?
Thank you
What project are you testing? I have the same configuration. What extensions are you using? You could search for extensions that are not compatible with Android 15 or 16 anymore on the community.
I am not even at loading a project by scanning a QR code. The application "Companion" itself does not load at all. I have a sort of splash screen showing for a fraction of second. I gave all the authorization possible..
What version of the companion are you running?
Could you take a screenshot of it?
Here's a screenshot. I downloaded the version 2.76 from Play store, and then try with 2.76u from inventor web link
to find out what's going on use logcat
Taifun
Here is the output log of the "adb logcat *:E" exactly when I press the application button.
10-26 15:38:37.863 6495 6495 E or.aicompanion3: Not starting debugger since process cannot load the jdwp agent.
10-26 15:38:37.866 1215 1215 E AOC : F1:ERR: mix_creator.cc, 136: Source CHP is not registered with AHWSinkSPKR
10-26 15:38:37.887 614 614 E hwc-display: [PrimaryDisplay] resetColorMappingInfoForClientComp:: resetColorMappingInfo() idx=2 error(-22)
10-26 15:38:37.887 614 614 E hwc-display: Fail to open file /data/vendor/log/hwc/PrimaryDisplay_hwc_error_log0.txt, error: Permission denied
10-26 15:38:37.887 614 614 E hwc-display: Fail to open file /data/log/PrimaryDisplay_hwc_error_log0.txt, error: No such file or directory
10-26 15:38:37.887 614 614 E hwc-display: Unable to open log file for PrimaryDisplay_hwc_error_log0.txt
10-26 15:38:37.899 6495 6495 E ashmem : Pinning is deprecated since Android Q. Please use trim or other methods.
10-26 15:38:37.903 6495 6495 E TransactionExecutor: Failed to execute the transaction: tId:-152581693 ClientTransaction{
10-26 15:38:37.903 6495 6495 E TransactionExecutor: tId:-152581693 transactionItems=[
10-26 15:38:37.903 6495 6495 E TransactionExecutor: tId:-152581693 LaunchActivityItem{activityToken=android.os.BinderProxy@1276c0c,intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 xflg=0x4 cmp=edu.mit.appinventor.aicompanion3/.Screen1 bnds=[305,722][521,973] },ident=203289708,info=ActivityInfo{b6375ef edu.mit.appinventor.aicompanion3.Screen1},curConfig={1.0 302mcc370mnc [fr_CA,en_US_#u-mu-celsius] masculine ldltr sw411dp w411dp h914dp 420dpi nrml long compactNeeded hdr widecg port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2400) mAppBounds=Rect(0, 0 - 1080, 2400) mMaxBounds=Rect(0, 0 - 1080, 2400) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mActivityType=undefined mAlwaysOnTop=undefined mRotation=ROTATION_0} s.1185 fontWeightAdjustment=0},overrideConfig={1.0 302mcc370mnc [fr_CA,en_US_#u-mu-celsius] masculine ldltr sw411dp w411dp h914dp 420dpi nrml long compactNeeded hdr widecg port night finger -keyb/v/h -nav/h winConfig={ mBounds=Rect(0, 0 - 1080, 2400) mAppBounds=Rect(0, 0 - 1080, 2400) mMaxBounds=Rect(0, 0 - 1080, 2400) mDisplayRotation=ROTATION_0 mWindowingMode=fullscreen mActivityType=standard mAlwaysOnTop=undefined mRotation=ROTATION_0} s.2 fontWeightAdjustment=0},deviceId=0,referrer=null,procState=2,state=null,persistentState=null,pendingResults=null,pendingNewIntents=null,sceneTransitionInfo=null,profilerInfo=null,assistToken=android.os.BinderProxy@d85efd0,shareableActivityToken=android.os.BinderProxy@bf8abc9,activityWindowInfo=ActivityWindowInfo{isEmbedded=false, taskBounds=Rect(0, 0 - 1080, 2400), taskFragmentBounds=Rect(0, 0 - 1080, 2400)}}
10-26 15:38:37.903 6495 6495 E TransactionExecutor: tId:-152581693 ResumeActivityItem{mActivityToken=android.os.BinderProxy@1276c0c,procState=-1,isForward=true,shouldSendCompatFakeFocus=false}
10-26 15:38:37.903 6495 6495 E TransactionExecutor: tId:-152581693 Target activity: edu.mit.appinventor.aicompanion3.Screen1
10-26 15:38:37.903 6495 6495 E TransactionExecutor: tId:-152581693 ]
10-26 15:38:37.903 6495 6495 E TransactionExecutor: tId:-152581693 }
10-26 15:38:37.904 6495 6495 E AndroidRuntime: FATAL EXCEPTION: main
10-26 15:38:37.904 6495 6495 E AndroidRuntime: Process: edu.mit.appinventor.aicompanion3, PID: 6495
10-26 15:38:37.904 6495 6495 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{edu.mit.appinventor.aicompanion3/edu.mit.appinventor.aicompanion3.Screen1}
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4318)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4504)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:222)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeNonLifecycleItem(TransactionExecutor.java:133)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.executeTransactionItems(TransactionExecutor.java:103)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:80)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2830)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:110)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.os.Looper.dispatchMessage(Looper.java:315)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:251)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.os.Looper.loop(Looper.java:349)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:9041)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:593)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:929)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String java.io.File.getAbsolutePath()' on a null object reference
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at com.google.appinventor.components.runtime.util.QUtil.getExternalStoragePath(QUtil.java:39)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at com.google.appinventor.components.runtime.util.QUtil.getExternalStoragePath(QUtil.java:59)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at com.google.appinventor.components.runtime.util.QUtil.getReplAssetPath(QUtil.java:167)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at com.google.appinventor.components.runtime.ReplForm.onCreate(ReplForm.java:135)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at edu.mit.appinventor.aicompanion3.Screen1.onCreate(Screen1.yail:10003)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:9244)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:9222)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1524)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4302)
10-26 15:38:37.904 6495 6495 E AndroidRuntime: ... 14 more
10-26 15:38:37.973 614 614 E hwc-display: [PrimaryDisplay] resetColorMappingInfoForClientComp:: resetColorMappingInfo() idx=0 error(-22)
10-26 15:38:37.973 614 614 E hwc-display: Fail to open file /data/vendor/log/hwc/PrimaryDisplay_hwc_error_log0.txt, error: Permission denied
10-26 15:38:37.973 614 614 E hwc-display: Fail to open file /data/log/PrimaryDisplay_hwc_error_log0.txt, error: No such file or directory
10-26 15:38:37.973 614 614 E hwc-display: Unable to open log file for PrimaryDisplay_hwc_error_log0.txt
10-26 15:38:37.973 614 614 E hwc-display: [PrimaryDisplay] resetColorMappingInfoForClientComp:: resetColorMappingInfo() idx=1 error(-22)
10-26 15:38:37.973 614 614 E hwc-display: Fail to open file /data/vendor/log/hwc/PrimaryDisplay_hwc_error_log0.txt, error: Permission denied
10-26 15:38:37.973 614 614 E hwc-display: Fail to open file /data/log/PrimaryDisplay_hwc_error_log0.txt, error: No such file or directory
10-26 15:38:37.973 614 614 E hwc-display: Unable to open log file for PrimaryDisplay_hwc_error_log0.txt
10-26 15:38:37.973 614 614 E hwc-display: [PrimaryDisplay] resetColorMappingInfoForClientComp:: resetColorMappingInfo() idx=2 error(-22)
10-26 15:38:37.973 614 614 E hwc-display: Fail to open file /data/vendor/log/hwc/PrimaryDisplay_hwc_error_log0.txt, error: Permission denied
10-26 15:38:37.973 614 614 E hwc-display: Fail to open file /data/log/PrimaryDisplay_hwc_error_log0.txt, error: No such file or directory
10-26 15:38:37.973 614 614 E hwc-display: Unable to open log file for PrimaryDisplay_hwc_error_log0.txt
10-26 15:38:37.973 611 611 E CompositionEngine: [Home to launcher blur layer#6152] Invalid device requested composition type change: Client (1) --> Device (2)
Show us a screenshot of your Screen1 Initialize event
Taifun
I should have written "the companion app". I cannot even get to "QR code" button. It is not related to the app I'm trying to build.
Thanks for the report. We will look into it.
By chance, does your phone have a physical SD card slot?
No SD slot.
Here is a link to a test build that includes an adjustment that should prevent the crash. Note that you will have to enable sideloading of APKs to install it.
Thank you! It worked perfectly
Thanks for testing. I'll submit a patch for our next release.