Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4633] Android: Unable to install pre-populated DB from Android resources

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionNeeds more info
Resolution Date2017-08-16T01:27:42.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAndroid
Labelstbs-1.9.0
Reporterskrabak lukas
AssigneeIngo Muschenetz
Created2011-06-24T18:33:00.000+0000
Updated2017-08-16T01:27:42.000+0000

Description

I'm unable to successfully install my prepopulated sqlite database on any android device. The DB file has over 15.5 mb - it is a dictionary and it has such size for it's contents, which will be doubled in near future. every time I try to install this DB with Titanium API I get this error. Even if the app is created only of app.js and file.sqlite and in the app js is nothing more than
 
Ti.API.info('about to install db');
var db = Titanium.Database.install('newWorld.sqlite', 'newWorld');
Ti.API.info('db is = '+db);
it crashes with this log in console.
06-25 13:34:34.117: DEBUG/AndroidRuntime(3321): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
06-25 13:34:34.117: DEBUG/AndroidRuntime(3321): CheckJNI is ON
06-25 13:34:35.917: DEBUG/AndroidRuntime(3321): --- registering native functions ---
06-25 13:34:43.963: INFO/ActivityManager(60): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=vavra.dominik.japSlovnik/.VavramaturaActivity }
06-25 13:34:44.932: DEBUG/AndroidRuntime(3321): Shutting down VM
06-25 13:34:45.253: INFO/ActivityManager(60): Start proc vavra.dominik.japSlovnik for activity vavra.dominik.japSlovnik/.VavramaturaActivity: pid=3352 uid=10036 gids={1015, 3003}
06-25 13:34:45.597: DEBUG/jdwp(3321): Got wake-up signal, bailing out of select
06-25 13:34:45.597: DEBUG/dalvikvm(3321): Debugger has detached; object registry had 1 entries
06-25 13:34:46.185: DEBUG/dalvikvm(33): GC_EXPLICIT freed 278 objects / 10560 bytes in 872ms
06-25 13:34:47.652: DEBUG/dalvikvm(33): GC_EXPLICIT freed 42 objects / 1856 bytes in 713ms
06-25 13:34:48.356: DEBUG/dalvikvm(33): GC_EXPLICIT freed 2 objects / 64 bytes in 663ms
06-25 13:34:49.520: INFO/TiApplication(3352): (main) [0,0] checkpoint, app created.
06-25 13:34:50.735: INFO/TiApplication(3352): (main) [1269,1269] Titanium 1.7.2 (2011/06/24 15:26 7d536e...)
06-25 13:34:51.508: DEBUG/TiDeployData(3352): (main) [772,2041] Read deploy data: {"debuggerPort":-1,"debuggerEnabled":false,"fastdevPort":57196}
06-25 13:34:52.395: ERROR/TiPlatformHelper(3352): (main) [884,2925] renaming ID
06-25 13:34:54.950: WARN/ActivityManager(60): Launch timeout has expired, giving up wake lock!
06-25 13:34:54.950: INFO/TiRootActivity(3352): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
06-25 13:34:55.007: INFO/TiApplication(3352): (main) [58,58] Analytics have been disabled
06-25 13:34:56.035: DEBUG/dalvikvm(3352): GC_FOR_MALLOC freed 3715 objects / 344208 bytes in 587ms
06-25 13:34:57.542: ERROR/TiApplication(3352): (main) [2512,2570] APP PROXY: [Ti.App]
06-25 13:34:57.822: DEBUG/TiCommonContactsApi(3352): (main) [282,2852] Using newer contacts api.  Android SDK level: 8
06-25 13:34:58.123: WARN/ActivityManager(60): Activity idle timeout for HistoryRecord{44394508 vavra.dominik.japSlovnik/.VavramaturaActivity}
06-25 13:34:59.389: INFO/global(3352): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
06-25 13:34:59.920: DEBUG/dalvikvm(3352): GC_FOR_MALLOC freed 5519 objects / 380272 bytes in 545ms
06-25 13:35:03.220: DEBUG/qemud(38): fdhandler_accept_event: accepting on fd 10
06-25 13:35:03.220: DEBUG/qemud(38): created client 0x19f28 listening on fd 15
06-25 13:35:03.220: DEBUG/qemud(38): client_fd_receive: attempting registration for service 'sensors'
06-25 13:35:03.220: DEBUG/qemud(38): client_fd_receive:    -> received channel id 10
06-25 13:35:03.246: DEBUG/qemud(38): client_registration: registration succeeded for client 10
06-25 13:35:03.483: DEBUG/qemud(38): fdhandler_event: disconnect on fd 15
06-25 13:35:03.543: DEBUG/TiFastDev(3352): (kroll$1: app://app.js) [5722,8574] Enabling Fastdev on port 57196
06-25 13:35:03.597: DEBUG/TiFastDev(3352): (kroll$1: app://app.js) [51,8625] sent tokens successfully
06-25 13:35:03.676: DEBUG/TiFastDev(3352): (kroll$1: app://app.js) [23,8648] Fastdev session handshake succesful.
06-25 13:35:03.729: DEBUG/TiFastDev(3352): (kroll$1: app://app.js) [115,8763] sent tokens successfully
06-25 13:35:03.729: DEBUG/KrollContext(3352): (kroll$1: app://app.js) [5,8768] Running evaluated script: file:///android_asset/Resources/app.js
06-25 13:35:04.462: DEBUG/dalvikvm(3352): GC_FOR_MALLOC freed 7127 objects / 493960 bytes in 578ms
06-25 13:35:04.462: INFO/dalvikvm-heap(3352): Forcing collection of SoftReferences for 15074320-byte allocation
06-25 13:35:04.956: DEBUG/dalvikvm(3352): GC_FOR_MALLOC freed 767 objects / 33192 bytes in 441ms
06-25 13:35:04.956: ERROR/dalvikvm-heap(3352): Out of memory on a 15074320-byte allocation.
06-25 13:35:04.956: INFO/dalvikvm(3352): "kroll$1: app://app.js" prio=5 tid=8 RUNNABLE
06-25 13:35:05.009: INFO/dalvikvm(3352):   | group="main" sCount=0 dsCount=0 s=N obj=0x442ac348 self=0x29e590
06-25 13:35:05.009: INFO/dalvikvm(3352):   | sysTid=3384 nice=0 sched=0/0 cgrp=default handle=2746064
06-25 13:35:05.009: INFO/dalvikvm(3352):   | schedstat=( 2296899096 3725402118 149 )
06-25 13:35:05.009: INFO/dalvikvm(3352):   at org.appcelerator.titanium.TiFastDev$Session.readToken(TiFastDev.java:~240)
06-25 13:35:05.035: INFO/dalvikvm(3352):   at org.appcelerator.titanium.TiFastDev$Session.readMessage(TiFastDev.java:298)
06-25 13:35:05.035: INFO/dalvikvm(3352):   at org.appcelerator.titanium.TiFastDev$Session.sendMessage(TiFastDev.java:367)
06-25 13:35:05.035: INFO/dalvikvm(3352):   at org.appcelerator.titanium.TiFastDev.openInputStream(TiFastDev.java:140)
06-25 13:35:05.076: INFO/dalvikvm(3352):   at org.appcelerator.titanium.io.TiResourceFile.getInputStream(TiResourceFile.java:65)
06-25 13:35:05.147: INFO/dalvikvm(3352):   at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:115)
06-25 13:35:05.147: INFO/dalvikvm(3352):   at ti.modules.titanium.database.DatabaseModuleBindingGen$1.invoke(DatabaseModuleBindingGen.java:114)
06-25 13:35:05.147: INFO/dalvikvm(3352):   at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
06-25 13:35:05.199: INFO/dalvikvm(3352):   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
06-25 13:35:05.227: INFO/dalvikvm(3352):   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
06-25 13:35:05.253: INFO/dalvikvm(3352):   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
06-25 13:35:05.253: INFO/dalvikvm(3352):   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
06-25 13:35:05.286: INFO/dalvikvm(3352):   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
06-25 13:35:05.286: INFO/dalvikvm(3352):   at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
06-25 13:35:05.286: INFO/dalvikvm(3352):   at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
06-25 13:35:05.286: INFO/dalvikvm(3352):   at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)
06-25 13:35:05.312: INFO/dalvikvm(3352):   at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)
06-25 13:35:05.364: INFO/dalvikvm(3352):   at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)
06-25 13:35:05.422: INFO/dalvikvm(3352):   at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)
06-25 13:35:05.422: INFO/dalvikvm(3352):   at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)
06-25 13:35:05.422: INFO/dalvikvm(3352):   at android.os.Handler.dispatchMessage(Handler.java:95)
06-25 13:35:05.448: INFO/dalvikvm(3352):   at android.os.Looper.loop(Looper.java:123)
06-25 13:35:05.448: INFO/dalvikvm(3352):   at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
06-25 13:35:05.474: WARN/dalvikvm(3352): threadid=8: thread exiting with uncaught exception (group=0x4001d800)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352): (kroll$1: app://app.js) [1756,10557] Sending event: exception on thread: kroll$1: app://app.js msg:java.lang.OutOfMemoryError; Titanium 1.7.2,2011/06/24 15:26,7d536e...
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352): java.lang.OutOfMemoryError
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.TiFastDev$Session.readToken(TiFastDev.java:240)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.TiFastDev$Session.readMessage(TiFastDev.java:298)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.TiFastDev$Session.sendMessage(TiFastDev.java:367)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.TiFastDev.openInputStream(TiFastDev.java:140)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.io.TiResourceFile.getInputStream(TiResourceFile.java:65)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:115)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at ti.modules.titanium.database.DatabaseModuleBindingGen$1.invoke(DatabaseModuleBindingGen.java:114)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at android.os.Handler.dispatchMessage(Handler.java:95)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at android.os.Looper.loop(Looper.java:123)
06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352): FATAL EXCEPTION: kroll$1: app://app.js
06-25 13:35:05.848: ERROR/AndroidRuntime(3352): java.lang.OutOfMemoryError
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.TiFastDev$Session.readToken(TiFastDev.java:240)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.TiFastDev$Session.readMessage(TiFastDev.java:298)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.TiFastDev$Session.sendMessage(TiFastDev.java:367)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.TiFastDev.openInputStream(TiFastDev.java:140)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.io.TiResourceFile.getInputStream(TiResourceFile.java:65)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:115)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at ti.modules.titanium.database.DatabaseModuleBindingGen$1.invoke(DatabaseModuleBindingGen.java:114)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at android.os.Handler.dispatchMessage(Handler.java:95)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at android.os.Looper.loop(Looper.java:123)
06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
06-25 13:35:06.262: WARN/ActivityManager(60):   Force finishing activity vavra.dominik.japSlovnik/.VavramaturaActivity
06-25 13:35:06.919: WARN/ActivityManager(60): Activity pause timeout for HistoryRecord{44394508 vavra.dominik.japSlovnik/.VavramaturaActivity}
06-25 13:35:08.206: DEBUG/dalvikvm(122): GC_EXPLICIT freed 143 objects / 7416 bytes in 3067ms
06-25 13:35:19.548: WARN/ActivityManager(60): Activity destroy timeout for HistoryRecord{44394508 vavra.dominik.japSlovnik/.VavramaturaActivity}
06-25 13:36:02.250: DEBUG/SntpClient(60): request time failed: java.net.SocketException: Address family not supported by protocol
06-25 13:37:26.356: INFO/Process(3352): Sending signal. PID: 3352 SIG: 9
06-25 13:37:26.687: WARN/InputManagerService(60): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4433f418
But it does not happen if the Database is like 120kb of size, is there any way to get this fixed anytime soon ? Or at least install bigger files to SDcard and open that file ? Edit1: sorry for the typo in code it was really .install() but as I've posted this really late yesterday (or today dunno what time it was) I've simply misspelled the word.

Comments

  1. Paul Dowsett 2011-06-25

    Note that there is an error in your code - you have used an instal rather than install method. Please would you post the Titanium SDK build date and hash, shown in the console before the app launches? To determine whether install() or open() is failing, would you run only Ti.Database.install('file.sqlite','database') and then browse the device using ddms / Device / File Explorer to determine whether the db file has been copied to data/data/your_device_id/ or one of its subdirectories (ie the databases dir)? Cheers
  2. skrabak lukas 2011-06-25

    Hi, sorry for misspelling the word, as it is said in Edit, it was really late.
       [INFO] Titanium SDK version: 1.7.1 (06/21/11 14:28 1293a6d)
       
    I've tried only the install method and I've got something new in my console output. So here is the corresponding app.js code
       ...
       if(db == null)
       {
       		Ti.API.info(Titanium.Platform.osname);
       
       	if(Titanium.Platform.osname == 'android')
       	{
       				
       		Ti.API.info("android install");
       		
       		//var f = Ti.Filesystem.getFile(Titanium.Filesystem.externalStorageDirectory,'/databases/newWorld.sqlite');Ti.API.info(f.nativePath);
       		var f = Ti.Filesystem.getFile('file:///data/data/' + Ti.App.id + 'databases/', 'newWorld');Ti.API.info(f.nativePath);
       		
       		if(f.exists() == true)
       		{
       			Ti.API.info('file exists in database dir');
       		    db = Titanium.Database.open(f);
       		}
       		else
       		{
       		    Ti.API.error('file does not exist at all ');
       		    db = Titanium.Database.install('newWorld.sqlite', 'newWorld.sqlite');
       		}
       
       				
       	}
       	else
       	{
       		
       		db = Titanium.Database.install('newWorld.sqlite', 'newWorld');
       	}
       	
       	Ti.API.info('db is = '+db);
       }
       ...
       
    and here is the console output
       
       06-25 13:18:20.120: ERROR/TiApplication(635): (main) [3837,3842] APP PROXY: [Ti.App]
       06-25 13:18:21.730: DEBUG/qemud(38): fdhandler_accept_event: accepting on fd 10
       06-25 13:18:21.730: DEBUG/qemud(38): created client 0x19f28 listening on fd 15
       06-25 13:18:21.821: DEBUG/qemud(38): client_fd_receive: attempting registration for service 'sensors'
       06-25 13:18:21.821: DEBUG/qemud(38): client_fd_receive:    -> received channel id 8
       06-25 13:18:21.830: DEBUG/qemud(38): client_registration: registration succeeded for client 8
       06-25 13:18:21.900: DEBUG/qemud(38): fdhandler_event: disconnect on fd 15
       06-25 13:18:22.140: DEBUG/KrollContext(635): (kroll$1: app://app.js) [2023,5865] Running evaluated script: file:///android_asset/Resources/app.js
       06-25 13:18:26.931: DEBUG/dalvikvm(635): GC_FOR_MALLOC freed 6410 objects / 398464 bytes in 1047ms
       06-25 13:18:27.125: INFO/global(635): Default buffer size used in BufferedInputStream constructor. It would be better to be explicit if an 8k buffer is required.
       06-25 13:18:27.130: INFO/global(635): Default buffer size used in BufferedOutputStream constructor. It would be better to be explicit if an 8k buffer is required.
       
       // this line was not there before (?) how can I workaround this 1048576 UNCOMPRESS_DATA_MAX ? 
       06-25 13:18:27.190: DEBUG/asset(635): Data exceeds UNCOMPRESS_DATA_MAX (15074304 vs 1048576)
       
       06-25 13:18:27.330: WARN/TiVerify(635): (Timer-0) [1560,11052] Verifying module licenses...
       06-25 13:18:27.910: ERROR/TiDatabase(635): (kroll$1: app://app.js) [39,11091] Error installing database: newWorld.sqlite msg=null
       06-25 13:18:27.910: ERROR/TiDatabase(635): java.io.IOException
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at android.content.res.AssetManager.readAsset(Native Method)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at android.content.res.AssetManager.access$700(AssetManager.java:36)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at android.content.res.AssetManager$AssetInputStream.read(AssetManager.java:571)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:157)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at java.io.BufferedInputStream.read(BufferedInputStream.java:346)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at java.io.FilterInputStream.read(FilterInputStream.java:130)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:118)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at ti.modules.titanium.database.DatabaseModuleBindingGen$1.invoke(DatabaseModuleBindingGen.java:114)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at android.os.Handler.dispatchMessage(Handler.java:95)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at android.os.Looper.loop(Looper.java:123)
       06-25 13:18:27.910: ERROR/TiDatabase(635):     at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
       06-25 13:18:28.211: ERROR/KrollMethod(635): (kroll$1: app://app.js) [603,11694] Exception calling kroll method install, invocation: null ]
       06-25 13:18:28.211: ERROR/KrollMethod(635): java.io.IOException
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at android.content.res.AssetManager.readAsset(Native Method)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at android.content.res.AssetManager.access$700(AssetManager.java:36)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at android.content.res.AssetManager$AssetInputStream.read(AssetManager.java:571)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:157)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at java.io.BufferedInputStream.read(BufferedInputStream.java:346)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at java.io.FilterInputStream.read(FilterInputStream.java:130)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:118)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at ti.modules.titanium.database.DatabaseModuleBindingGen$1.invoke(DatabaseModuleBindingGen.java:114)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at android.os.Handler.dispatchMessage(Handler.java:95)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at android.os.Looper.loop(Looper.java:123)
       06-25 13:18:28.211: ERROR/KrollMethod(635):     at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
       06-25 13:18:28.980: ERROR/KrollContext(635): (kroll$1: app://app.js) [338,12032] Error evaluating source: Wrapped java.io.IOException (file:///android_asset/Resources/app.js#31)
       06-25 13:18:28.980: ERROR/KrollContext(635): org.mozilla.javascript.WrappedException: Wrapped java.io.IOException (file:///android_asset/Resources/app.js#31)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.mozilla.javascript.Context.throwAsScriptRuntimeEx(Context.java:1786)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:85)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at script(file:///android_asset/Resources/app.js:31)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at android.os.Handler.dispatchMessage(Handler.java:95)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at android.os.Looper.loop(Looper.java:123)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
       06-25 13:18:28.980: ERROR/KrollContext(635): Caused by: java.io.IOException
       06-25 13:18:28.980: ERROR/KrollContext(635):     at android.content.res.AssetManager.readAsset(Native Method)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at android.content.res.AssetManager.access$700(AssetManager.java:36)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at android.content.res.AssetManager$AssetInputStream.read(AssetManager.java:571)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at java.io.BufferedInputStream.fillbuf(BufferedInputStream.java:157)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at java.io.BufferedInputStream.read(BufferedInputStream.java:346)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at java.io.FilterInputStream.read(FilterInputStream.java:130)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:118)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at ti.modules.titanium.database.DatabaseModuleBindingGen$1.invoke(DatabaseModuleBindingGen.java:114)
       06-25 13:18:28.980: ERROR/KrollContext(635):     at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
       06-25 13:18:28.980: ERROR/KrollContext(635):     ... 15 more
       06-25 13:18:28.980: ERROR/TiJSError(635): (kroll$1: app://app.js) [675,12707] ----- Titanium Javascript Runtime Error -----
       06-25 13:18:28.990: ERROR/TiJSError(635): (kroll$1: app://app.js) [9,12716] - In file:///android_asset/Resources/app.js:31,0
       06-25 13:18:29.000: ERROR/TiJSError(635): (kroll$1: app://app.js) [6,12722] - Message: Wrapped java.io.IOException (file:///android_asset/Resources/app.js#31)
       06-25 13:18:29.000: ERROR/TiJSError(635): (kroll$1: app://app.js) [3,12725] - Source: null
       06-25 13:18:30.320: DEBUG/dalvikvm(635): GC_FOR_MALLOC freed 2616 objects / 300360 bytes in 953ms
       06-25 13:18:31.790: INFO/TiVerify(635): (Timer-0) [2783,15508] Succesfully verified module licenses
       06-25 13:18:32.851: INFO/TiRootActivity(635): (main) [0,0] checkpoint, on root activity resume. context = org.appcelerator.titanium.TiContext@4429cb88
       06-25 13:18:36.420: INFO/ActivityManager(60): Displayed activity vavra.dominik.japSlovnik/.VavramaturaActivity: 34574 ms (total 34574 ms)
       06-25 13:18:36.420: INFO/ARMAssembler(60): generated scanline__00000077:03515104_00000000_00000000 [ 33 ipp] (47 ins) at [0x39f788:0x39f844] in 771000 ns
       06-25 13:18:39.411: DEBUG/dalvikvm(122): GC_EXPLICIT freed 181 objects / 10016 bytes in 17443ms
       
    look over here, I believe this line was not here before as seen here in original output before I've downloaded new SDK (?) http://pastie.org/2117289
       06-25 13:18:27.190: DEBUG/asset(635): Data exceeds UNCOMPRESS_DATA_MAX (15074304 vs 1048576)
       
  3. skrabak lukas 2011-06-25

    Ok second try with
       [INFO] Titanium SDK version: 1.7.2 (06/24/11 15:26 57d536e...)
       
    app.js
       Ti.API.info('about to install db');
       var db = Titanium.Database.install('newWorld.sqlite', 'newWorld');
       Ti.API.info('db is = '+db);
       //this is new app.js contains only these 3 lines;
       
    console (DDMS) output
       06-25 13:34:34.117: DEBUG/AndroidRuntime(3321): >>>>>>>>>>>>>> AndroidRuntime START <<<<<<<<<<<<<<
       06-25 13:34:34.117: DEBUG/AndroidRuntime(3321): CheckJNI is ON
       06-25 13:34:35.917: DEBUG/AndroidRuntime(3321): --- registering native functions ---
       06-25 13:34:43.963: INFO/ActivityManager(60): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=vavra.dominik.japSlovnik/.VavramaturaActivity }
       06-25 13:34:44.932: DEBUG/AndroidRuntime(3321): Shutting down VM
       06-25 13:34:45.253: INFO/ActivityManager(60): Start proc vavra.dominik.japSlovnik for activity vavra.dominik.japSlovnik/.VavramaturaActivity: pid=3352 uid=10036 gids={1015, 3003}
       06-25 13:34:45.597: DEBUG/jdwp(3321): Got wake-up signal, bailing out of select
       06-25 13:34:45.597: DEBUG/dalvikvm(3321): Debugger has detached; object registry had 1 entries
       06-25 13:34:46.185: DEBUG/dalvikvm(33): GC_EXPLICIT freed 278 objects / 10560 bytes in 872ms
       06-25 13:34:47.652: DEBUG/dalvikvm(33): GC_EXPLICIT freed 42 objects / 1856 bytes in 713ms
       06-25 13:34:48.356: DEBUG/dalvikvm(33): GC_EXPLICIT freed 2 objects / 64 bytes in 663ms
       06-25 13:34:49.520: INFO/TiApplication(3352): (main) [0,0] checkpoint, app created.
       06-25 13:34:50.735: INFO/TiApplication(3352): (main) [1269,1269] Titanium 1.7.2 (2011/06/24 15:26 7d536e...)
       06-25 13:34:51.508: DEBUG/TiDeployData(3352): (main) [772,2041] Read deploy data: {"debuggerPort":-1,"debuggerEnabled":false,"fastdevPort":57196}
       06-25 13:34:52.395: ERROR/TiPlatformHelper(3352): (main) [884,2925] renaming ID
       06-25 13:34:54.950: WARN/ActivityManager(60): Launch timeout has expired, giving up wake lock!
       06-25 13:34:54.950: INFO/TiRootActivity(3352): (main) [0,0] checkpoint, on root activity create, savedInstanceState: null
       06-25 13:34:55.007: INFO/TiApplication(3352): (main) [58,58] Analytics have been disabled
       06-25 13:34:56.035: DEBUG/dalvikvm(3352): GC_FOR_MALLOC freed 3715 objects / 344208 bytes in 587ms
       06-25 13:34:57.542: ERROR/TiApplication(3352): (main) [2512,2570] APP PROXY: [Ti.App]
       06-25 13:34:57.822: DEBUG/TiCommonContactsApi(3352): (main) [282,2852] Using newer contacts api.  Android SDK level: 8
       06-25 13:34:58.123: WARN/ActivityManager(60): Activity idle timeout for HistoryRecord{44394508 vavra.dominik.japSlovnik/.VavramaturaActivity}
       06-25 13:34:59.389: INFO/global(3352): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.
       06-25 13:34:59.920: DEBUG/dalvikvm(3352): GC_FOR_MALLOC freed 5519 objects / 380272 bytes in 545ms
       06-25 13:35:03.220: DEBUG/qemud(38): fdhandler_accept_event: accepting on fd 10
       06-25 13:35:03.220: DEBUG/qemud(38): created client 0x19f28 listening on fd 15
       06-25 13:35:03.220: DEBUG/qemud(38): client_fd_receive: attempting registration for service 'sensors'
       06-25 13:35:03.220: DEBUG/qemud(38): client_fd_receive:    -> received channel id 10
       06-25 13:35:03.246: DEBUG/qemud(38): client_registration: registration succeeded for client 10
       06-25 13:35:03.483: DEBUG/qemud(38): fdhandler_event: disconnect on fd 15
       06-25 13:35:03.543: DEBUG/TiFastDev(3352): (kroll$1: app://app.js) [5722,8574] Enabling Fastdev on port 57196
       06-25 13:35:03.597: DEBUG/TiFastDev(3352): (kroll$1: app://app.js) [51,8625] sent tokens successfully
       06-25 13:35:03.676: DEBUG/TiFastDev(3352): (kroll$1: app://app.js) [23,8648] Fastdev session handshake succesful.
       06-25 13:35:03.729: DEBUG/TiFastDev(3352): (kroll$1: app://app.js) [115,8763] sent tokens successfully
       06-25 13:35:03.729: DEBUG/KrollContext(3352): (kroll$1: app://app.js) [5,8768] Running evaluated script: file:///android_asset/Resources/app.js
       06-25 13:35:04.462: DEBUG/dalvikvm(3352): GC_FOR_MALLOC freed 7127 objects / 493960 bytes in 578ms
       06-25 13:35:04.462: INFO/dalvikvm-heap(3352): Forcing collection of SoftReferences for 15074320-byte allocation
       06-25 13:35:04.956: DEBUG/dalvikvm(3352): GC_FOR_MALLOC freed 767 objects / 33192 bytes in 441ms
       06-25 13:35:04.956: ERROR/dalvikvm-heap(3352): Out of memory on a 15074320-byte allocation.
       06-25 13:35:04.956: INFO/dalvikvm(3352): "kroll$1: app://app.js" prio=5 tid=8 RUNNABLE
       06-25 13:35:05.009: INFO/dalvikvm(3352):   | group="main" sCount=0 dsCount=0 s=N obj=0x442ac348 self=0x29e590
       06-25 13:35:05.009: INFO/dalvikvm(3352):   | sysTid=3384 nice=0 sched=0/0 cgrp=default handle=2746064
       06-25 13:35:05.009: INFO/dalvikvm(3352):   | schedstat=( 2296899096 3725402118 149 )
       06-25 13:35:05.009: INFO/dalvikvm(3352):   at org.appcelerator.titanium.TiFastDev$Session.readToken(TiFastDev.java:~240)
       06-25 13:35:05.035: INFO/dalvikvm(3352):   at org.appcelerator.titanium.TiFastDev$Session.readMessage(TiFastDev.java:298)
       06-25 13:35:05.035: INFO/dalvikvm(3352):   at org.appcelerator.titanium.TiFastDev$Session.sendMessage(TiFastDev.java:367)
       06-25 13:35:05.035: INFO/dalvikvm(3352):   at org.appcelerator.titanium.TiFastDev.openInputStream(TiFastDev.java:140)
       06-25 13:35:05.076: INFO/dalvikvm(3352):   at org.appcelerator.titanium.io.TiResourceFile.getInputStream(TiResourceFile.java:65)
       06-25 13:35:05.147: INFO/dalvikvm(3352):   at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:115)
       06-25 13:35:05.147: INFO/dalvikvm(3352):   at ti.modules.titanium.database.DatabaseModuleBindingGen$1.invoke(DatabaseModuleBindingGen.java:114)
       06-25 13:35:05.147: INFO/dalvikvm(3352):   at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
       06-25 13:35:05.199: INFO/dalvikvm(3352):   at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
       06-25 13:35:05.227: INFO/dalvikvm(3352):   at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
       06-25 13:35:05.253: INFO/dalvikvm(3352):   at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
       06-25 13:35:05.253: INFO/dalvikvm(3352):   at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
       06-25 13:35:05.286: INFO/dalvikvm(3352):   at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
       06-25 13:35:05.286: INFO/dalvikvm(3352):   at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
       06-25 13:35:05.286: INFO/dalvikvm(3352):   at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
       06-25 13:35:05.286: INFO/dalvikvm(3352):   at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)
       06-25 13:35:05.312: INFO/dalvikvm(3352):   at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)
       06-25 13:35:05.364: INFO/dalvikvm(3352):   at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)
       06-25 13:35:05.422: INFO/dalvikvm(3352):   at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)
       06-25 13:35:05.422: INFO/dalvikvm(3352):   at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)
       06-25 13:35:05.422: INFO/dalvikvm(3352):   at android.os.Handler.dispatchMessage(Handler.java:95)
       06-25 13:35:05.448: INFO/dalvikvm(3352):   at android.os.Looper.loop(Looper.java:123)
       06-25 13:35:05.448: INFO/dalvikvm(3352):   at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
       06-25 13:35:05.474: WARN/dalvikvm(3352): threadid=8: thread exiting with uncaught exception (group=0x4001d800)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352): (kroll$1: app://app.js) [1756,10557] Sending event: exception on thread: kroll$1: app://app.js msg:java.lang.OutOfMemoryError; Titanium 1.7.2,2011/06/24 15:26,7d536e...
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352): java.lang.OutOfMemoryError
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.TiFastDev$Session.readToken(TiFastDev.java:240)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.TiFastDev$Session.readMessage(TiFastDev.java:298)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.TiFastDev$Session.sendMessage(TiFastDev.java:367)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.TiFastDev.openInputStream(TiFastDev.java:140)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.io.TiResourceFile.getInputStream(TiResourceFile.java:65)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:115)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at ti.modules.titanium.database.DatabaseModuleBindingGen$1.invoke(DatabaseModuleBindingGen.java:114)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at android.os.Handler.dispatchMessage(Handler.java:95)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at android.os.Looper.loop(Looper.java:123)
       06-25 13:35:05.586: ERROR/TiUncaughtHandler(3352):     at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352): FATAL EXCEPTION: kroll$1: app://app.js
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352): java.lang.OutOfMemoryError
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.TiFastDev$Session.readToken(TiFastDev.java:240)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.TiFastDev$Session.readMessage(TiFastDev.java:298)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.TiFastDev$Session.sendMessage(TiFastDev.java:367)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.TiFastDev.openInputStream(TiFastDev.java:140)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.io.TiResourceFile.getInputStream(TiResourceFile.java:65)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at ti.modules.titanium.database.DatabaseModule.install(DatabaseModule.java:115)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at ti.modules.titanium.database.DatabaseModuleBindingGen$1.invoke(DatabaseModuleBindingGen.java:114)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.kroll.KrollMethod.call(KrollMethod.java:51)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.Interpreter.interpretLoop(Interpreter.java:1701)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.Interpreter.interpret(Interpreter.java:854)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.InterpretedFunction.call(InterpretedFunction.java:164)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3177)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.InterpretedFunction.exec(InterpretedFunction.java:175)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.mozilla.javascript.Context.evaluateReader(Context.java:1142)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.kroll.KrollContext$DefaultEvaluator.evaluateFile(KrollContext.java:105)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.kroll.KrollContext.evaluateScript(KrollContext.java:306)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.kroll.KrollContext.handleEvalFile(KrollContext.java:318)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.kroll.KrollContext.handleMessage(KrollContext.java:217)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.TiMessageQueue.handleMessage(TiMessageQueue.java:223)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at android.os.Handler.dispatchMessage(Handler.java:95)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at android.os.Looper.loop(Looper.java:123)
       06-25 13:35:05.848: ERROR/AndroidRuntime(3352):     at org.appcelerator.titanium.kroll.KrollHandlerThread.run(KrollHandlerThread.java:86)
       06-25 13:35:06.262: WARN/ActivityManager(60):   Force finishing activity vavra.dominik.japSlovnik/.VavramaturaActivity
       06-25 13:35:06.919: WARN/ActivityManager(60): Activity pause timeout for HistoryRecord{44394508 vavra.dominik.japSlovnik/.VavramaturaActivity}
       06-25 13:35:08.206: DEBUG/dalvikvm(122): GC_EXPLICIT freed 143 objects / 7416 bytes in 3067ms
       06-25 13:35:19.548: WARN/ActivityManager(60): Activity destroy timeout for HistoryRecord{44394508 vavra.dominik.japSlovnik/.VavramaturaActivity}
       06-25 13:36:02.250: DEBUG/SntpClient(60): request time failed: java.net.SocketException: Address family not supported by protocol
       06-25 13:37:26.356: INFO/Process(3352): Sending signal. PID: 3352 SIG: 9
       06-25 13:37:26.687: WARN/InputManagerService(60): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4433f418
       
    Once again I've got this memory allocation problem & force close app
  4. Paul Dowsett 2011-07-09

    May be related to TIMOB-4612 and TIMOB-4632
  5. Eduardo Gomez 2011-07-11

    Problem

    Pre-populated Database on Android is not defined as it was installed incorrectly.

    Target Environment

    + **Product**: Mobile + **Titanium SDK**: Mobile 1.7.1 + **Platform OS**: Android + **Platform OS Version**: 2.2 and up

    Console Output

    {noformat} I/TiAPI ( 7064): (kroll$1: app://app.js) [855,3225] ***************************** I/TiAPI ( 7064): (kroll$1: app://app.js) [2,3227] Innan jag forsöker hämta musik-filen på 4 Mb: D/dalvikvm( 7064): GC_FOR_MALLOC freed 5184 objects / 402072 bytes in 159ms I/dalvikvm-heap( 7064): Grow heap (frag case) to 6.996MB for 4021394-byte allocation D/dalvikvm( 7064): GC_FOR_MALLOC freed 54 objects / 2272 bytes in 108ms W/ActivityManager( 60): Launch timeout has expired, giving up wake lock! W/ActivityManager( 60): Activity idle timeout for HistoryRecord{43fa2538 se.dunso.malmofestivulen/.MffActivity} {noformat}

    Associated HD ticket

    An ENT customer relies on this, http://appc.me/c/APP-391353
  6. Paul Dowsett 2011-10-21

    Reassigning tickets, as per Tony Guntharp's request
  7. Hieu Pham 2012-01-05

    It would be helpful if a sample DB file is provided.
  8. Lee Morris 2017-08-16

    Closing.

JSON Source