I am working on a screen in titanium containing some input text fields and labels and a continuous button. On the button, I am removing my variable 'container' and adding a separate container with different text areas. It's all very basic, but on my ongoing button click event, I'm crashing randomly, maybe 60-70% of time it crashes. This report is only an error message, 'Unfortunately & lt;> is closed' Any idea what might this possibly be? Continue button event listeners below and continue till crash 3, as long as I run in debug mode. The log indicates that I have permission denied, but what I am really doing is changing a scene with a different view. I'm stumped:
var self = Ti.UI.createWindow ({title: title, backgroundColor: '# 33336F'}); Var Container = TiI.U.Createview ({top: '40 DP ', width:' 100% '}); Var Container 2 = TiUI Creteview ({top: '40 DP ', width:' 100% '}); Continue_btn.addEventListener ('click', function (e) {console.log ('---------------------' + self); console.log ('- -------------------- Title_textfield is' + Title_textField.value '; console.log (' --------------- ------ Trade_PickerWall '+ Trade_PickerGet SelectedRou (0) .title); console.log (' --------------------- Urgent_image val the '+ Urgent_image.image); Post_array.push ({title: Title_textField.value, trade: Trade_picker.getSelectedRow (0) .title, urgency: (Urgent_image.image == "urgentChecked1.png") "0": "1 ? ", ClientId: 8}); console.log (" --------------- Post_array "+ Post_Rere [0] .title + '-' + Post_Rere [0] .Red + '-' + Post_array [0] .Urgent); console.log ('-------- Accident 1'); Contin Ue_btn.setBackgroundImage ('/ images / continue2.png'); console.log ('- ------- crash2'); console.log ("self value is undefined ------" + self. Value + "or container val is undefined -----" + container.value + "or container 2 value no penalty ------" + container 2.value); Console.log ("self-type is undefined ------ "+ + Type of self +" or container type is undefined ----- "+ type container +" or container 2 type unmanaged ------ "+ Type of container 2 ); Self.remove (container); Console.log ('-------- Crash3'); Self.add (Container2); Console.log ('-------- Crash 4'); Navbar.add (BackArrow_btn); Console.log ('-------- Crash 5'); });
log
[INFO] [Tippy (30736)] -------- Crash 1 [INFO] [TIPI (30736)] -------- Accident 2 [INFO] [TiAPI (30736)] Self-wall is unspecified ------ Undefined or container val is undefined ----- Undefined or Container 2 is void - - - undefined [INFO] [TiAPI (30736)] itself is undefined undefined ------ object or container ----- object or container 2 unchanged ------ object [DEBUG] [SensorManager (30736 )] unregisterListener :: Trklfufi 9 budiwrd5mrfo5WirfulblrwuFmfulTrklfufi $ KfukwiFmfulTrklfufiRvht @,) - D - ([debug] [sensor (30736)] audience live Switch to the = Sending .. normal delay 200ms [information] [Sensor (30736)] sendDelay --- 200000000 [information] [SensorService (2030)] info.selectDelay () ns = 20000000 [Debug] [SensorService (2030) ] SensorDevice :: setDelay, return (true 1, false 0) = 1 [debug] [SensorManager (30736)] JNI - sendDelay [information] [SensorManager (30736)] normal delay set = true [debug] [SensorService (2030) ] SensorDevice :: Activating sensor handle = 0 ns = 200 00000 [INFO] [TiAPI (30736)] -------- Accident 3F / libc (30736): Fatal signal 11 (SIGSEGV) at 0x0000000c (Code = 1), Thread 30,755 (KrollRuntimeThr) [Warning] [Passive Input Connection [Warning] Inactive input connection [Warne] [Aianaianticonnekshndraipr (30736)] sets idle on Krenkanpojingtakt Inputconkekshn [Warne] [IInputConnectionWrapper (30736)] passive Inputconkshn on Praptaktekted text
Edit Event listener and log information updated to include labels, text fields and pickers in the updated container view and container 2 view for me Hyada no code
Have you checked the price of the "self"? Have you tried to remove and add the container to your main view, not the variable name itself?
// Alloy $. ViewMain.remove (...); $ ViewMain.add (...); // or JS var viewMain = Ti.UI.createView (...); Viewmen Remove (...);
Comments
Post a Comment