question

Sim avatar image
Sim asked

Asset in ZMenuItem not Valid

Has anyone encountered the following stacktrace? 03-07 11:20:56.001 20726-20726/com.vihsnuinc.dynmotiongeorge3 D/dalvikvm﹕ No JNI_OnLoad found in /system/lib/ libkinesis_api_jni.so 0x0, skipping init 03-07 11:20:56.011 20726-20726/com.vihsnuinc.dynmotiongeorge3 I/IntentKinesisManager﹕ getInstance 03-07 11:20:56.011 20726-20726/com.vihsnuinc.dynmotiongeorge3 D/TraceUtils﹕ Initializing trace class 03-07 11:20:56.041 20726-20726/com.vihsnuinc.dynmotiongeorge3 E/ZHeaderNavigationBar﹕ Asset in this ZMenuItem is not valid. [vblid:0, buildInVblName:null, sceneName:null] java.lang.IllegalArgumentException: Asset in this ZMenuItem is not valid. [vblid:0, buildInVblName:null, sceneName:null] at com.amazon.euclid.widget.ZHeaderNavigationBar.isAssetValid(ZHeaderNavigationBar.java:569) at com.amazon.euclid.widget.ZHeaderNavigationBar.access$1600(ZHeaderNavigationBar.java:65) at com.amazon.euclid.widget.ZHeaderNavigationBar$ZHeaderNavigationBarSubwidgetWrapper.applyNewAsset(ZHeaderNavigationBar.java:942) at com.amazon.euclid.widget.ZHeaderNavigationBar$ZHeaderNavigationBarSubwidgetWrapper.access$000(ZHeaderNavigationBar.java:842) at com.amazon.euclid.widget.ZHeaderNavigationBar.invalidateActionsMenu(ZHeaderNavigationBar.java:411) at com.amazon.euclid.widget.ZHeaderNavigationBar.setActionsMenu(ZHeaderNavigationBar.java:379) at amazon.widget.HeaderNavigationBar. (HeaderNavigationBar.java:442) at com.amazon.euclid.widget.ZHeaderNavigationBar. (ZHeaderNavigationBar.java:130) at com.amazon.euclid.widget.ZHeaderNavigationBar. (ZHeaderNavigationBar.java:116) at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:417) at android.view.LayoutInflater.createView(LayoutInflater.java:641) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:745) at android.view.LayoutInflater.rInflate(LayoutInflater.java:842) at android.view.LayoutInflater.rInflate(LayoutInflater.java:845) at android.view.LayoutInflater.rInflate(LayoutInflater.java:845) at android.view.LayoutInflater.inflate(LayoutInflater.java:543) at android.view.LayoutInflater.inflate(LayoutInflater.java:450) at android.view.LayoutInflater.inflate(LayoutInflater.java:406) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:283) at android.app.Activity.setContentView(Activity.java:1925) at com.vihsnuinc.dynmotiongeorge3.DynMotionGeorge3Activity.onCreate(DynMotionGeorge3Activity.java:31) at android.app.Activity.performCreate(Activity.java:5175) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2189) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2290) at android.app.ActivityThread.access$600(ActivityThread.java:148) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1251) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:151) at android.app.ActivityThread.main(ActivityThread.java:5211) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:816) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:583) at dalvik.system.NativeStart.main(Native Method) 03-07 11:20:56.041 20726-20726/com.vihsnuinc.dynmotiongeorge3 V/HeadTrackingManager﹕ Unregister listener null @42213320 03-07 11:20:56.041 20726-20726/com.vihsnuinc.dynmotiongeorge3 E/ZHeaderNavigationBar﹕ Asset in this ZMenuItem is not valid. [vblid:0, buildInVblName:null, sceneName:null] java.lang.IllegalArgumentException: Asset in this ZMenuItem is not valid. [vblid:0, buildInVblName:null, sceneName:null] at com.amazon.euclid.widget.ZHeaderNavigationBar.isAssetValid(ZHeaderNavigationBar.java:569) at com.amazon.euclid.widget.ZHeaderNavigationBar.access$1600(ZHeaderNavigationBar.java:65) at com.amazon.euclid.widget.ZHeaderNavigationBar$ZHeaderNavigationBarSubwidgetWrapper.applyNewAsset(ZHeaderNavigationBar.java:942) at com.amazon.euclid.widget.ZHeaderNavigationBar$ZHeaderNavigationBarSubwidgetWrapper.access$000(ZHeaderNavigationBar.java:842) at com.amazon.euclid.widget.ZHeaderNavigationBar.invalidateActionsMenu(ZHeaderNavigationBar.java:411) at com.amazon.euclid.widget.ZHeaderNavigationBar. (ZHeaderNavigationBar.java:132) at com.amazon.euclid.widget.ZHeaderNavigationBar. (ZHeaderNavigationBar.java:116) at java.lang.reflect.Constructor.constructNative(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:417) at android.view.LayoutInflater.createView(LayoutInflater.java:641) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:745) at android.view.LayoutInflater.rInflate(LayoutInflater.java:842) at android.view.LayoutInflater.rInflate(LayoutInflater.java:845) at android.view.LayoutInflater.rInflate(LayoutInflater.java:845) at android.view.LayoutInflater.inflate(LayoutInflater.java:543) at android.view.LayoutInflater.inflate(LayoutInflater.java:450) at android.view.LayoutInflater.inflate(LayoutInflater.java:406) at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:283) at android.app.Activity.setContentView(Activity.java:1925) at com.vihsnuinc.dynmotiongeorge3.DynMotionGeorge3Activity.onCreate(DynMotionGeorge3Activity.java:31) at android.app.Activity.performCreate(Activity.java:5175) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2189) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2290) at android.app.ActivityThread.access$600(ActivityThread.java:148) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1251) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:151) at android.app.ActivityThread.main(ActivityThread.java:5211) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:511) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:816) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:583) at dalvik.system.NativeStart.main(Native Method) 03-07 11:20:56.241 20726-
fire phone
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

DougM@Amazon avatar image
DougM@Amazon answered
Hello Sim, Could you please let us know what your Java code is attempting to accomplish when that StackTrace is being placed in your logs? It appears you are trying to load a VBL file for your ZMenuItem icons and running into one that isn't supported on the Fire Phone. Please look at our documentation at https://developer.amazon.com/public/solutions/devices/fire-phone/docs/converting-custom-assets-to-visual-bundles for information as to how to build VBL assets for your app.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sim avatar image
Sim answered
Sorry. I had two menu items and only one of them had an icon associated with it. Removing the unused menu corrected the problem.
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.