Community Questions & Answers
Uncaught exception in Ti.UI.Android.openPreferences()
Ever since upgrading to Titanium SDK 3.1.0, my Android build *sometimes* fails on a call to Ti.UI.Android.openPreferences(): ~~~ E/TiExceptionHandler( 7640): (main) [44302,44302] ----- Titanium Javascript Runtime Error ----- E/TiExceptionHandler( 7640):...
ti.urbanairship 2.3.0
Does anyone have a working android codebase for ti.urbanairship module version 2.3.0 using GCM? I can't seem to get mine to work. I have the airshipconfig.properties in the Resources folder and I have the app and apikey setup on Urbanairship.com Also, if...
Can't build with 3.1.0.GA
I got the following error after a clean rebuild with 3.1.0.GA: ~~~ timers.js:103 if (!process.listeners('uncaughtException').length) throw e; ^ RangeError: Maximum call...
Why does only my Android distribution build throw this exception?
My mobile application has worked fine when testing in the Android emulator, building to my device for testing, however in preparing for final testing and submission to Google Play, I can install the .apk just fine onto the device, but it will not...
Android, adding event listeners before defining their handlers (functions)
Hi, I encountered a weird issue on my android production build. Until now, I structure my code declaring all the functions on the bottom part of my commonjs files. For example: ~~~ module.exports = function(){ var win = Ti.UI.createWindow(); (other...
Java Error only on Samsung Galaxy S with SQL Database call...
So, I was trying to encapsulate my database updates in a transaction to alleviate some speed problems I was encountering. So, I have added a 'begin' and 'commit' to my code. Works great on the emulator, great on my HTC device, but when I try and run it...
Stream not writeable exception
Hi, Im making an app which can control a device in my network. The commands can be send trough a socket to the device. It works fine with PHP. See code below. ~~~ $fh = fsockopen('192.168.2.3', 30000, $var1, $var2, 30); fwrite($fh,...
try/catch/finally
~~~ try { var x = Titanium.Network.createTCPSocket({..}); } catch(e) { alert(e); } ~~~ Your framework for exception handling is incorrect, e should not be a string, should be an object where e.message is the string.
update error by titanium studio 3
Hi there, when I start titanium, he will update the CLI and another thing (I just don´t know the name yet). But by clicking install, the following error occures: ~~~ Error encountered during...
Exception in Google Play Store
Application Type: mobile Titanium SDK: 2.1.3.GA Platform & Version: Android (No Version supplied by Google Play) Device: Physical Device (No more Information by Google Play) Some time ago, we released a new version of our app to the Google Play...
Exception occured while building Android project
whenever build for Android Emulator or device, show the following error. Even I create a new project from template. Any one can help? [INFO] logfile = /Users/xxxx/Titanium_Workspace/Try_Events/build.log [INFO] Building Try_Events for Android ... one...
exception on js Android file, ONLY in distribution
Hello, I have a weird issue that I face for the first time. I have an app that works fine on developer mode. But after I create the distribution version, I get an exception on a file (which works fine on developer mode), I get the typical red screen...
Is there a way to trace "Exception in event callback." error?
I have been just tracing it down line by line, but is there any way to log or show it on console to find out which code line is throwing the "Exception in event callback." error? Thank you ;)
Try catch, get Exception parameters
Hi ! I use some try catch in my app and i need to show a custom alert with my error. ~~~ try { /* ... */ } catch(e) { alert(e.message); } ~~~ e.message returns the message error but i also want to return the error's line, the object / variable. Is...
tableView.data not working
Hi, I am facing some issues with tableView. I have a table with data set using `myTable.setData(data)` But when i use `myTable.data` or `myTable.getData()`, no data is returned. I need to use the myTable.data to change the value of some Labels that are...
can I throw an exception in one module and catch it in other?
I have my modules representing objects. I have one method of an object throwing an exception if a condition is not true(it tries to call a web service, and if here was a problem it fires an exception). I also have another object(another module) which...
Facebook authorize crash
Im trying to post something to Facebook from iPhone with the titanium api. Here is my code: ~~~ function shareViaFacebook() { jg.info('FACEBOOK: share'); Titanium.Facebook.appid = $.facebook.appid; Titanium.Facebook.permissions =...
exception while installing app on ipad
hi, I am trying to install app on ipad but it gives following exception and crash.. Exception Type: EXC_BAD_ACCESS (SIGSEGV) thanks..
Facebook GraphAPI,unrecognized selector sent to instance
I get an error even with a full rebuild too..unrecognized selector sent to instance This happens when I use a Facebook GraphAPI and on the callback function. any ideA? is this a bug?
Exception in exports
Hi, I have imported a js into another on the click event of a button. The imported js has export statements and is continuously throwing exceptions on the click of the button. Any help is appreciated.. Thanks in advance
FileNotFoundException on Android - Not building all files.
Hey, my application is running great on iPhone but on Android I keep getting this error whenever the file is called: ~~~ Wrapped java.io.FileNotFoundException:...
event to webview throws an exception
When I click on a tablerow, I fire an event: ~~~ tablerow.addListener('click',function(e){ Ti.App.fireEvent('onMeasurement',{ rfid:e.source.rfid }); }); ~~~ I have a WebView with a javascript event listener: ~~~ <script...
invalid method (createButton) passed to UIModule
Working with MAC OS X 10.5, Titanium Developer 1.2.2, Titanium 1.5.1 SDK and iphone SDK 4.1 trying to create a button with the following: `var picSel = Titanium.UI.createButton({top:20,width:200,height:40, title:'Select Image'});` Which results in an...
Force Close in running service
my application call a background service to run when button clicked, the service is running but its force close after 30 mins :( this is my button clicked code ~~~ loginButton.addEventListener('click', function() { var SECS = 5; var URL =...
app crashing due to memory leak
hi, I am running 'HelloWorld' app in titanium studio sdk 1.8.1..and it is my 1st app on ios.. when I try it on device(ipad) it crash every time.. gives following exception.. Exception Type: EXC_BAD_ACCESS (SIGSEGV) so i done performance test in xcode...
[WARN] Exception in event callback
Hello everyone, I'm new to Titanium and Javascript, so my question could be because i don't know much about how Javascript works. I hope you can give me a hand. I'm trying to make a ComboBox that one I can click on it a Picker displays. It worked really...
mobile-scollableView: 'Titanium.UI' [undefined] after return from a sub page
See simplified code below! Description: "singletap" on scrollView opens a new window with "Back"-button.. "click" on "Back"-putton closes the sub page. After that "singletap" on scrollView doesn't work any...
Read content of webview on Android
Hi all, I need to get a string from a webview to my app, and I have tried a few ways to do it. On iOS everything works fine, but on Android I've got problems. Basically the idea is: ~~~ webview.addEventListener("load", function() { var html...
[Desktop] Titanium.Network.TCPSocket exception
I am writing a javascript/titanium irc client using raw TCPSockets (since Titanium.Network.IrcClient is depreciated). Here is the relevant test code that is written as inline-javascript in the application page: ~~~ var socket =...
FATAL EXCEPTION: KrollRuntimeThread
I would like to add multiple views of a scrollableView, but unfortunately it falls from the app. can anyone help me with this: ~~~ E/AndroidRuntime( 620): FATAL EXCEPTION: KrollRuntimeThread E/AndroidRuntime( 620):...
Titanium.UI.createProgressBar undefined
The first problem I have is when adding the Progress Bar by copy&paste from the API Documentation (http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.UI.ProgressBar-object) is Titanium.UI.iPhone.ProgressBarStyle.PLAIN is...
Running the application on the iphone crashes
Dear All, help solve the problem! I have: Mac OS X 10.7.2 // Titanium Studio, build: 1.0.7.201112281340 // Xcode, ver 4.2.1, Build 4D502 // iPhone 5.0.1 iOs When I try to run the application on the iPhone Device I get the error Hier is Console...
[WARN] Exception in event callback (iPhone)
Hello, I'm testing my app on iPhone simulator building from Titanium and xCode and all is working well. I tried to build on iPhone with xCode and after a few code execution I receive this warning and application stop working ~~~ [WARN] Exception in event...
Error running the application on the iPhone
Dear All, help solve the problem! I have: --Mac OS X 10.7.2 --Titanium Studio, build: 1.0.7.201112281340 --Xcode, ver 4.2.1, Build 4D502 --iPhone 5.0.1 iOs --application I am trying to write When I try to run the application on the iPhone Device I get...
How to catch errors
How do I reliably catch errors in Appcelerator? Try/Catch doesn't work for me as it would in Java or C# - I have a piece of critical code running on startup, and found that it was failing on Android 4.0. Even though the code is surrounded by a try/catch...
Warning Exception not showing details...
I used to have details about thoses warnings, which were very handy for debugging, but now all I'm getting is only one line in the console without details… `[WARN] Exception in event callback. {` I'm using Titanium Studio, build: 1.0.7.201112281340...
Unhelpful one line message "[WARN] Exception in event callback. {"
I used to see these exceptions log details of what is inside the { on multiple lines. This would usually include the exception details, including the line number and the source file, which in the past has been rather handy :) Is there any config that...
forgeUI build for android crashing
Hello all. I've been testing the new [ForgedUI](http://www.forgedui.com/) add-on for Titanium that helps create UI elements for the Titanium applications. I created the UI and built it to JS code. and it now looks like [this](http://pastie.org/3089477),...
Exception in event callback. { After updating to new Studio 1.0.7.201112152014
My whole app is crashing after updating to the latest version, everytime i get the message: ~~~Exception in event callback. {~~~ in every .js file i'm returning my instance and creating it with exports. = function() etc... Im using globals for scoping...
error "License exception has occured" on android device
when testing my app on a real device, just on the moment where there is a connexion to my web service, an alert popup tell me that a "A License exception has occured"!!! that's work perfectly on emulator but i have this msg on real device(samsung...
Ti.UI.ImageView images Nullpointer exception crash on android
Hi there, Today I found an unexpected fatal exception crash from my Imageview when I close the animation in the ImageView. ~~~ Titanium.UI.setBackgroundColor('#000'); var tabGroup = Titanium.UI.createTabGroup(); var win1 = Titanium.UI.createWindow({ ...
Ti.Network.createHTTPClient() throws a Java NullPointerException
Hi all - I was wondering if anyone had run into this kind of issue with their code. I'm creating an xhr using this line: ~~~ var xhr = Ti.Network.createHTTPClient(); ~~~ Very sporadically, when running this code through the emulator or an android device,...
Once PHP support activate application crashed :(
Does anybody know the reason? I'm trying to run Desktop app. SDK 1.1.0 It run's ok, but when I activation PHP (checkbox) - it crashed to run. terminate called throwing an exception ~~~ Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 ...
Trying to integrate a module ==> FileNotFound
Following the guide I build a module but cannot manage to integrate it. The build process is ok and generated a zip file. I copy the zip to the root of the app and declare the module in tiapp.xml as described in the doc. require('fr.infinnova.mymodule')...
Exception in event callback
i have this code in app.js ~~~ btnDestinasi.addEventListener('click', function(e){ var winDestinasi = Titanium.UI.createWindow({ url:'ui/destinasi.js', title:'Destinasi' }); Titanium.UI.currentWindow(winDestinasi); }); ~~~ and this code in...
Unable to start activity - java.lang.NullPointerException : how to figure out what causing it?
Hello, while porting a Titanium app, totally fine on iOS, to Android I' now struggling since a couple of days with a java exception and I'm not really finding out what's causing it. [The nasty exception](http://paste.org/pastebin/view/39717) I kind of...
Error with simulator Android - UnicodeDecodeError
Hello, I encounter this error when I want to execute my code on the simulator android. When I run it on the iPhone simulator, I have no problem. ~~~ [INFO] Compiling Javascript Resources ... [ERROR] Exception occured while building Android...
Activity Not Found Exception
Hi, I'm new to Titanium and I was trying to call one app from another on the Android platform using Intents, but I keep getting the following error: Wrapped android.content.ActivityNotFoundException: Unable to find explicit activity class...
App crashing, only in debugger.
My app has several UI functions that begin with `Ti.API.info(...);` or `Ti.API.debug(...);`. If I run it in the iPhone simulator alone, it does not crash. If I run in the Studio debugger, the app crashes on these `Ti.API` functions. I don't know how to...
Studio debugger tutorial?
I thought I read somewhere that there was a video demonstrating the debugger. I have never used a debugger before and I can't figure out how to catch my app before it crashes. Interestingly enough it doesn't crash at all when I just run my app in the...
Showing 1-50 of 75 1 2