This project has moved. For the latest updates, please go here.

Search not functioning

Feb 18, 2014 at 9:00 PM
As a long time keepass user who syncs a kdbx file to multiple PC via dropbox I am thrilled to now have the functionality on my android. GREAT JOB, THANK YOU.

Now to the problem. I'm using an old, original Galaxy Tab with android 2.36 and keepass2android 0.9.3 R2. Since one or two updates back the search function doesn't. Using either the search function from the program menu, or the search (magnifying glass) button results in returning to the "select master key type" screen where it requests my password to open the database. If I enter the password it opens the db, but is still not searchable. I've tried uninstalling/reinstalling but problem persists. With over a hundred passwords, search is a critical function, Any help would be appreciated.
Coordinator
Feb 20, 2014 at 9:02 PM
I just started to roll out the update on Google Play which should fix this. Please test and report!
Mar 2, 2014 at 2:51 AM
Philipp,

Thanks for the quick response. Sorry I've taken so long to get back. Am now upgraded to r3 and issue still there. When I choose search, they is a slight pausee. Then screen goes black for a second or 2. Then the enter master password screen opens up, requesting my password to open the database. Sorry to report this, but, to me, it's important functionality.
Coordinator
Mar 3, 2014 at 7:35 AM
could you please
  • create a file "/mnt/sdcard/keepass2android.log" (e.g. with ES file explorer or from the desktop PC)
  • try to load the database
  • send me the log file (you can read it to ensure it doesn't contain sensitive data - it's plain text)
  • optional: delete the log file to disable logging
that should tell me what's happening.
Mar 3, 2014 at 3:32 PM
What a quick response! Being a retired SW professional, I am very aware of how much of a pain a problem like this can be. Great that you have logging built in with such easy activation.

Anyway, I have several logs, the one I am sending is from the following actions:
1. Open DB
2. Get to screen showing groups
3. Switched to file explorer
4. Rename log file, create a new log file
5. Back to keepass2android via long press of home key
6. Groups screen still open
7. Hit search key, goes back to "enter master password"
8. Immediately back to fx file explorer to check log,
then to email to send file.

It caught the exception and is attached.

If it helps, my phone is rooted and the "real" DB is a synced (one of the greatest features of your program) dropbox file.

If you want one of the longer logs, our there is anything else i can do, let me know.
--
*T*T*F*N*

Shelly Schrager

Coordinator
Mar 4, 2014 at 7:44 AM
sorry, I don't see log? You can send it by email if you want...
Mar 5, 2014 at 4:26 PM
Edited Mar 5, 2014 at 8:21 PM
I have the same problem.
3/5/2014 8:04:08 AM:807 -- Creating application keepass2android.keepass2android. Version=39
3/5/2014 8:04:09 AM:339 -- KeePass.OnCreate
3/5/2014 8:04:09 AM:376 -- KeePass:apptask=
3/5/2014 8:04:09 AM:437 -- Loaded task keepass2android.NullTask
3/5/2014 8:04:09 AM:437 -- KeePass.OnCreate
3/5/2014 8:04:09 AM:522 -- KeePass.OnStart
3/5/2014 8:04:09 AM:523 -- KeePass.OnStart
3/5/2014 8:04:12 AM:127 -- KeePass.OnResume
3/5/2014 8:04:12 AM:130 --  DatabaseIsUnlocked=False
3/5/2014 8:04:12 AM:131 -- KeePass.OnResume
3/5/2014 8:04:12 AM:181 -- KeePass.OnPause
3/5/2014 8:04:12 AM:187 -- KeePass.OnStop
3/5/2014 8:04:12 AM:199 -- KeePass.OnStart
3/5/2014 8:04:12 AM:200 -- KeePass.OnStart
3/5/2014 8:04:12 AM:354 -- KeePass.OnResume
3/5/2014 8:04:12 AM:355 --  DatabaseIsUnlocked=False
3/5/2014 8:04:12 AM:356 -- KeePass.OnResume
3/5/2014 8:04:15 AM:780 -- KeePass.OnPause
3/5/2014 8:04:15 AM:942 -- FileSelect.OnCreate
3/5/2014 8:04:15 AM:943 -- FileSelect:apptask=NullTask
3/5/2014 8:04:17 AM:231 -- FileSelect.OnStart
3/5/2014 8:04:17 AM:817 -- PasswordActivity.OnCreate
3/5/2014 8:04:17 AM:819 -- PasswordActivity:apptask=
3/5/2014 8:04:17 AM:821 -- Loaded task keepass2android.NullTask
3/5/2014 8:04:19 AM:247 -- PasswordActivity.OnStart
3/5/2014 8:04:19 AM:311 -- PasswordActivity.OnResume
3/5/2014 8:04:19 AM:312 --  DatabaseIsUnlocked=False
3/5/2014 8:04:19 AM:456 -- Pre-loading database file starting
3/5/2014 8:04:20 AM:173 -- KeePass.OnStop
3/5/2014 8:04:20 AM:176 -- KeePass.OnDestroyTrue
3/5/2014 8:04:20 AM:188 -- KeePass.OnDestroyTrue
3/5/2014 8:04:20 AM:642 -- FileSelect.OnStop
3/5/2014 8:04:20 AM:917 -- FileSelect.OnDestroyTrue
3/5/2014 8:04:23 AM:541 -- Pre-loading database file completed
3/5/2014 8:04:36 AM:743 -- Creating application keepass2android.keepass2android. Version=39
3/5/2014 8:04:37 AM:206 -- KeePass.OnCreate
3/5/2014 8:04:37 AM:239 -- KeePass:apptask=
3/5/2014 8:04:37 AM:277 -- Loaded task keepass2android.NullTask
3/5/2014 8:04:37 AM:278 -- KeePass.OnCreate
3/5/2014 8:04:37 AM:327 -- KeePass.OnStart
3/5/2014 8:04:37 AM:328 -- KeePass.OnStart
3/5/2014 8:04:37 AM:946 -- FileSelect.OnCreate
3/5/2014 8:04:37 AM:947 -- FileSelect:apptask=NullTask
3/5/2014 8:04:38 AM:482 -- FileSelect.OnStart
3/5/2014 8:04:38 AM:745 -- PasswordActivity.OnCreate
3/5/2014 8:04:38 AM:746 -- PasswordActivity:apptask=
3/5/2014 8:04:38 AM:748 -- Loaded task keepass2android.NullTask
3/5/2014 8:04:39 AM:206 -- PasswordActivity.OnStart
3/5/2014 8:04:39 AM:240 -- PasswordActivity.OnResume
3/5/2014 8:04:39 AM:243 --  DatabaseIsUnlocked=False
3/5/2014 8:04:39 AM:435 -- Pre-loading database file starting
3/5/2014 8:04:40 AM:212 -- KeePass.OnStop
3/5/2014 8:04:40 AM:215 -- KeePass.OnDestroyTrue
3/5/2014 8:04:40 AM:252 -- KeePass.OnDestroyTrue
3/5/2014 8:04:40 AM:255 -- FileSelect.OnStop
3/5/2014 8:04:40 AM:524 -- FileSelect.OnDestroyTrue
3/5/2014 8:04:42 AM:755 -- Pre-loading database file completed
3/5/2014 8:05:20 AM:62 -- PasswordActivity.OnActivityResult 874348/1000
3/5/2014 8:05:29 AM:79 -- Native transform:7614ms
3/5/2014 8:05:34 AM:103 -- ReadXmlStreamed: 4711ms
3/5/2014 8:05:34 AM:465 -- Starting/Updating OngoingNotificationsService. Database Unlocked
3/5/2014 8:05:34 AM:562 -- LoadDB OK
3/5/2014 8:05:35 AM:166 -- PasswordActivity.OnPause
3/5/2014 8:05:35 AM:190 -- Timeout start
3/5/2014 8:05:35 AM:337 -- GroupActivity.OnCreate
3/5/2014 8:05:35 AM:346 -- Loaded task keepass2android.NullTask
3/5/2014 8:05:35 AM:793 -- GroupActivity.OnStart
3/5/2014 8:05:35 AM:798 -- Timeout cancel
3/5/2014 8:05:35 AM:806 -- GroupActivity.OnResume
3/5/2014 8:05:36 AM:591 -- PasswordActivity.OnStop
3/5/2014 8:05:22 AM:873 -- Timeout start
3/5/2014 8:05:22 AM:885 -- GroupActivity.OnPause
3/5/2014 8:05:22 AM:927 -- SearchActivity.OnCreate
3/5/2014 8:05:22 AM:929 -- SearchActivity:apptask=
3/5/2014 8:05:23 AM:79 -- Java.Lang.RuntimeException: Exception of type 'Java.Lang.RuntimeException' was thrown.
at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (intptr,intptr,intptr,Android.Runtime.JValue[]) <0x001c4>
at Android.App.Activity.SetContentView (int) <0x001f7>
at keepass2android.SearchActivity.OnCreate (Android.OS.Bundle) <0x00037>
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x00063>
at (wrapper dynamic-method) object.f9421ac1-dd24-4b5d-b232-a61bf46f08b6 (intptr,intptr,intptr) <0x00043>

  --- End of managed exception stack trace ---
android.view.InflateException: Binary XML file line #1: Error inflating class <unknown>
    at android.view.LayoutInflater.createView(LayoutInflater.java:518)
    at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:213)
    at android.app.Activity.setContentView(Activity.java:1657)
    at keepass2android.SearchActivity.n_onCreate(Native Method)
    at keepass2android.SearchActivity.onCreate(SearchActivity.java:28)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1722)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1784)
    at android.app.ActivityThread.access$1500(ActivityThread.java:123)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:939)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:130)
    at android.app.ActivityThread.main(ActivityThread.java:3835)
    at java.lang.reflect.Method.invokeNative(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:507)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
    at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.reflect.InvocationTargetException
    at java.lang.reflect.Constructor.constructNative(Native Method)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:415)
    at android.view.LayoutInflater.createView(LayoutInflater.java:505)
    ... 23 more
Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f0100ba a=-1}
    at android.content.res.Resources.loadDrawable(Resources.java:1757)
    at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
    at android.widget.ImageView.<init>(ImageView.java:118)
    at android.widget.ImageButton.<init>(ImageButton.java:85)
    at android.widget.ImageButton.<init>(ImageButton.java:81)
    ... 26 more

3/5/2014 8:05:28 AM:182 -- Creating application keepass2android.keepass2android. Version=39
3/5/2014 8:05:29 AM:71 -- GroupActivity.OnCreate
3/5/2014 8:05:29 AM:231 -- Loaded task keepass2android.NullTask
3/5/2014 8:05:29 AM:418 -- PasswordActivity.OnCreate
3/5/2014 8:05:29 AM:434 -- PasswordActivity:apptask=
3/5/2014 8:05:29 AM:436 -- Loaded task keepass2android.NullTask
3/5/2014 8:05:31 AM:872 -- PasswordActivity.OnStart
3/5/2014 8:05:31 AM:996 -- PasswordActivity.OnResume
3/5/2014 8:05:31 AM:999 --  DatabaseIsUnlocked=False
3/5/2014 8:05:32 AM:204 -- Pre-loading database file starting
3/5/2014 8:05:33 AM:350 -- GroupActivity.OnDestroyTrue
3/5/2014 8:05:38 AM:400 -- Pre-loading database file completed
3/5/2014 8:05:54 AM:647 -- PasswordActivity.OnActivityResult 874348/1000
3/5/2014 8:06:05 AM:333 -- Native transform:9784ms
3/5/2014 8:06:12 AM:611 -- ReadXmlStreamed: 6735ms
3/5/2014 8:06:13 AM:872 -- Starting/Updating OngoingNotificationsService. Database Unlocked
3/5/2014 8:06:13 AM:898 -- LoadDB OK
3/5/2014 8:06:14 AM:884 -- PasswordActivity.OnPause
3/5/2014 8:06:14 AM:926 -- Timeout start
3/5/2014 8:06:15 AM:19 -- GroupActivity.OnCreate
3/5/2014 8:06:15 AM:47 -- Loaded task keepass2android.NullTask
3/5/2014 8:06:15 AM:831 -- GroupActivity.OnStart
3/5/2014 8:06:15 AM:835 -- Timeout cancel
3/5/2014 8:06:15 AM:848 -- GroupActivity.OnResume
3/5/2014 8:06:16 AM:791 -- PasswordActivity.OnStop
3/5/2014 8:06:20 AM:945 -- Timeout start
3/5/2014 8:06:20 AM:953 -- GroupActivity.OnPause
3/5/2014 8:06:21 AM:68 -- SearchActivity.OnCreate
3/5/2014 8:06:21 AM:81 -- SearchActivity:apptask=
3/5/2014 8:06:21 AM:276 -- Java.Lang.RuntimeException: Exception of type 'Java.Lang.RuntimeException' was thrown.
at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (intptr,intptr,intptr,Android.Runtime.JValue[]) <0x001c4>
at Android.App.Activity.SetContentView (int) <0x001f7>
at keepass2android.SearchActivity.OnCreate (Android.OS.Bundle) <0x00037>
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x00063>
at (wrapper dynamic-method) object.0d668024-bf58-4a9a-a152-0577f35d8ef0 (intptr,intptr,intptr) <0x00043>

  --- End of managed exception stack trace ---
android.view.InflateException: Binary XML file line #1: Error inflating class <unknown>
    at android.view.LayoutInflater.createView(LayoutInflater.java:518)
    at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
    at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:568)
    at android.view.LayoutInflater.rInflate(LayoutInflater.java:623)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:408)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:320)
    at android.view.LayoutInflater.inflate(LayoutInflater.java:276)
    at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:213)
    at android.app.Activity.setContentView(Activity.java:1657)
    at keepass2android.SearchActivity.n_onCreate(Native Method)
    at keepass2android.SearchActivity.onCreate(SearchActivity.java:28)
    at android.app.Instrumentation.callActivityOnCreate
Coordinator
Mar 6, 2014 at 5:13 PM
thanks, I think I can fix that for the next release.
Coordinator
Mar 24, 2014 at 5:28 PM
Mar 24, 2014 at 6:35 PM
Philipp,

r4 seems to have fixed the issue. Thanks much!
Mar 24, 2014 at 9:36 PM
Thanks, it appears to be working fine for me too.