Open arifje opened 6 years ago
i have the same issue the app crash without error in the console
Same problem here, app crash at first time I try to setCenterwindow
I have the problem that I try to set a window that has been created with Alloy. So I get the window reference using Alloy.createController("myControllerScript.js").getView(). But using this reference crashes the app immediately.
Other than the that, the example app is working. But in the example app a window is used, that has been created with Titanium scrip only. Is it possible that there is difference?
Here is the code I'm using and it works flawlessly. This is inside my menuClick function
` if(Alloy.isHandheld) {
Ti.API.info("centerWin id: " + Alloy.Globals.Drawer.getCenterWindow().id + " -- " + windowName);
var centerWindow = Alloy.Globals.Drawer.instance.getCenterWindow();
if(Alloy.Globals.Drawer.getCenterWindow().id != windowName){
var oldWin = centerWindow.window;
var win = Alloy.createController(windowName).getView();
centerWindow.setCenterWindow(win);
} else {
Ti.API.info("I'm toggling the window.... thats it...");
Alloy.Globals.Drawer.toggleRightWindow();
}
} `
The problem I'm seeing in the system.log is this:
"notify name "com.apple.UIKit.SimulatorWantsEdgeSwipes" has been registered 20 times - this may be a leak"
I'm guessing I'm not releasing my windows properly, which eventually causes the app to crash. So trying to get to the root of the issue.
I'm also getting crash without any logs, while set center window
<Alloy.Globals.parent.setCenterWindow(Alloy.createController('windowname').getView());>
I'm using 2.1.1 dk.napp.drawer and Ti SDK 7.2.0.GA
I'm also getting same issue. App is crashing while setting centerWindow.
I tested with 7.0.1.GA and 7.2.0.GA with 2.0.0, 2.1.0, 2.1.1 versions of module.
Hello @viezel Any update on this error?
Same problem here, I keep getting SIGSEGV and SIGBUS segmentation fault crashes with setCenterWindow. iOS only, Android works fine. I'm on NappDrawer 2.1.1, reproduced on both Titanium 7.4.0 and 7.4.1. I've tried everything I can think of in my JS code to ensure I don't have any orphaned references that would cause memory conflicts, so I'm pretty sure it's in the native code.
Is anybody there to look at up on to this issue? Or suggest me other option so i can go with that as I really want to move further with this kind of module.
I'm sorry but I think this module is unmaintained :-(
@mitulbhalia try to set the View instead of Window <Alloy.Globals.Drawer.setCenterView(Alloy.createController('viewname').getView());>
@rsimbu89 I am talking about iOS module.
@viezel @hansemannn Any update on this issue as I am waiting for the solution.
I can confirm this is working using Titanium SDK 7.5.0 GA. I tried to compile it using TI SDK 8.0 GA and it no longer works.
I have the same issue for Crash. Can anyone find any solution for this issue?
Application Specific Information: objc_msgSend() selector name: view CoreSimulator 581.2 - Device: iPhone XS Max - Runtime: iOS 12.1 (16B91) - DeviceType: iPhone Xs Max
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libobjc.A.dylib 0x0000000107c39d8b objcmsgSend + 11
1 com.qalbit.feestbeesten 0x0000000102565ade -[MMDrawerController setCenterViewController:animated:] + 560
2 com.qalbit.feestbeesten 0x000000010255fbac -[DkNappDrawerDrawer setCenterWindow:] + 668
3 com.appcelerator.TitaniumKit 0x0000000106479700 DoProxyDelegateChangedValuesWithProxy + 626
4 com.appcelerator.TitaniumKit 0x000000010647d133 -[TiProxy replaceValue:forKey:notification:] + 719
5 com.appcelerator.TitaniumKit 0x00000001064577bb -[TiViewProxy setValue:forUndefinedKey:] + 212
6 com.apple.Foundation 0x0000000104672de4 -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292
7 com.appcelerator.TitaniumKit 0x0000000106439166 -[KrollObject setValue:forKey:] + 432
8 com.appcelerator.TitaniumKit 0x0000000106436fb0 KrollSetProperty + 421
9 com.apple.JavaScriptCore 0x00000001028fc0a5 JSC::JSCallbackObject
Thread 0 crashed with X86 Thread State (64-bit): rax: 0x0000000000000004 rbx: 0x000000010258f911 rcx: 0x00000000000fc080 rdx: 0x0000000000000303 rdi: 0x00007ff057731020 rsi: 0x000000011c23979a rbp: 0x00007ffeed8bc5b0 rsp: 0x00007ffeed8bc528 r8: 0x0000000000000036 r9: 0x0000000000000000 r10: 0xa000000000000000 r11: 0x000000011c23979a r12: 0x00007ff057869600 r13: 0x0000000107c39d80 r14: 0x00007ff05759d530 r15: 0x00007ff057731020 rip: 0x0000000107c39d8b rfl: 0x0000000000010202 cr2: 0x0000000104f2b000
Logical CPU: 2 Error Code: 0x00000000 Trap Number: 13
same here, I don't think this will ever be fixed
downgrading to 1.2.4 fixed it, I will stick with that for now
Thanks, @marconealberto for the reply. I already downgrade the Modules and compiled it. It works fine after downgrading the modules.
I can't explain why the example is working, but when I set new center windows the app crashes without any messages in the console. It just stops.
Add some timeouts after the main window has opened;
This will crash the app after the second window (green) has been set.
Running SDK 7.0.1.GA