Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crashes when setRightWindow only #206

Open
ehab88 opened this issue Oct 17, 2017 · 5 comments
Open

App crashes when setRightWindow only #206

ehab88 opened this issue Oct 17, 2017 · 5 comments

Comments

@ehab88
Copy link

ehab88 commented Oct 17, 2017

[ERROR] : TiApplication: (main) [1327,4879] Sending event: exception on thread: main msg:java.lang.NullPointerException; Titanium 6.2.2,2017/09/19 16:01,undefined
[ERROR] : TiApplication: java.lang.NullPointerException
[ERROR] : TiApplication: at com.slidingmenu.lib.CustomViewBehind.getSecondaryBehindWidth(CustomViewBehind.java:80)
[ERROR] : TiApplication: at com.slidingmenu.lib.CustomViewBehind.scrollBehindTo(CustomViewBehind.java:251)
[ERROR] : TiApplication: at com.slidingmenu.lib.CustomViewAbove.scrollTo(CustomViewAbove.java:805)
[ERROR] : TiApplication: at com.slidingmenu.lib.CustomViewAbove.onSizeChanged(CustomViewAbove.java:467)
[ERROR] : TiApplication: at android.view.View.setFrame(View.java:14094)
[ERROR] : TiApplication: at android.view.View.layout(View.java:14006)
[ERROR] : TiApplication: at android.view.ViewGroup.layout(ViewGroup.java:4373)
[ERROR] : TiApplication: at android.widget.RelativeLayout.onLayout(RelativeLayout.java:1021)
[ERROR] : TiApplication: at android.view.View.layout(View.java:14008)
[ERROR] : TiApplication: at android.view.ViewGroup.layout(ViewGroup.java:4373)
[ERROR] : TiApplication: at android.widget.FrameLayout.onLayout(FrameLayout.java:448)
[ERROR] : TiApplication: at android.view.View.layout(View.java:14008)
[ERROR] : TiApplication: at android.view.ViewGroup.layout(ViewGroup.java:4373)
[ERROR] : TiApplication: at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1892)
[ERROR] : TiApplication: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1711)
[ERROR] : TiApplication: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:989)
[ERROR] : TiApplication: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4351)
[ERROR] : TiApplication: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
[ERROR] : TiApplication: at android.view.Choreographer.doCallbacks(Choreographer.java:562)
[ERROR] : TiApplication: at android.view.Choreographer.doFrame(Choreographer.java:532)
[ERROR] : TiApplication: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
[ERROR] : TiApplication: at android.os.Handler.handleCallback(Handler.java:725)
[ERROR] : TiApplication: at android.os.Handler.dispatchMessage(Handler.java:92)
[ERROR] : TiApplication: at android.os.Looper.loop(Looper.java:137)
[ERROR] : TiApplication: at android.app.ActivityThread.main(ActivityThread.java:5041)
[ERROR] : TiApplication: at java.lang.reflect.Method.invokeNative(Native Method)
[ERROR] : TiApplication: at java.lang.reflect.Method.invoke(Method.java:511)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
[ERROR] : TiApplication: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
[ERROR] : TiApplication: at dalvik.system.NativeStart.main(Native Method)

@Max87ZA
Copy link

Max87ZA commented Oct 26, 2017

I've got this bug too with same errors. Please look at it soon. Thanks

@qasim90
Copy link

qasim90 commented May 7, 2018

I am getting this too. Any workarounds?

@Max87ZA
Copy link

Max87ZA commented May 7, 2018

I had to create leftMenu and rightMenu, no workarounds possible so far. We have to wait for developer to fix this...

@qasim90
Copy link

qasim90 commented May 7, 2018

I think this fixes it ( at least on android, not checked on iOS so far):
leftWindow : OS_IOS? Ti.UI.createWindow() : Ti.UI.createView()

Just create empty view/window and assign to leftWindow property.

@Max87ZA
Copy link

Max87ZA commented May 7, 2018

Yes, you have to create window/view and assign it to leftWindow to make it work. If I remeber correctly, this bug is Android only(If I'm wrong, sorry)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants