Appium in Selendroid mode crashes app

I am using Appium 1.2.3 in Selendroid mode. I am using Appium dot exe windows application. Everything was working correctly with no problem. I came across a blocking issue and I had to run Appium from the source directly. The app worked correctly for the first time, but now whenever I try to run a script, the app crashes and hence all tests fail.

The app crashes while initiating a connection to a database. I used logcat to get the error details:

Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
10-13 08:51:50.169: E/DatabaseUtils(3038): Writing exception to parcel
10-13 08:51:50.169: E/DatabaseUtils(3038): java.lang.SecurityException: Permission Denial: get/set setting for user asks to run as user -2 but is calling from user 0; this requires android.permission.INTERACT_ACROSS_USERS_FULL
10-13 08:51:50.169: E/DatabaseUtils(3038): at com.android.server.am.ActivityManagerService.handleIncomingUser(ActivityManagerService.java:14673)
10-13 08:51:50.169: E/DatabaseUtils(3038): at android.app.ActivityManager.handleIncomingUser(ActivityManager.java:2473)
10-13 08:51:50.169: E/DatabaseUtils(3038): at com.android.providers.settings.SettingsProvider.call(SettingsProvider.java:688)
10-13 08:51:50.169: E/DatabaseUtils(3038): at android.content.ContentProvider$Transport.call(ContentProvider.java:325)
10-13 08:51:50.169: E/DatabaseUtils(3038): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:275)
10-13 08:51:50.169: E/DatabaseUtils(3038): at android.os.Binder.execTransact(Binder.java:404)
10-13 08:51:50.169: E/DatabaseUtils(3038): at dalvik.system.NativeStart.run(Native Method)

I searched online and I found that such bug exists on Selendroid github page. The question now is, why this happened now when it was working correctly before with no problems?? Anyone faced such issue before?? any possible workarounds as this is a blocking issue for me?? :frowning:

PS. Such error message doesn’t happen when I manually use the application, it only happens when I try to run an Appium + Selendroid script.