update / fix for InputChannel is not initialized android open bug? - android

Any update on the following Android open bug,
04-16 16:12:24.585 28935-28935/ssdsor.qusdse.kalsdsadrket E/AndroidRuntime: FATAL EXCEPTION: main
Process: ssdsor.qusdse.kalsdsadrket, PID: 28935
java.lang.RuntimeException: InputChannel is not initialized.
at android.view.InputEventReceiver.nativeInit(Native Method)
at android.view.InputEventReceiver.<init>(InputEventReceiver.java:70)
at android.view.ViewRootImpl$WindowInputEventReceiver.<init>(ViewRootImpl.java:6067)
at android.view.ViewRootImpl.setView(ViewRootImpl.java:628)
at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:310)
at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:85)
at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3187)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2495)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1354)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5443)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
I see this thread and may one ask the same on StackOverflow.But no fix any were.Is this bug under treatment or still open?

Related

app crashes when changing the font style of the device

I am facing a issue in Samsung mobile, the issue is this, i open the application that i have made and minimized the app now the app is running at the background, now i go to my mobile
settings-->Display--> font style,
Then i changed the font when i come back and open the app that was running at the back ground the app crashes
I do not know where the issue is can you please give some idea on how to move about
This was the error that i was able to see in my logcat
2-12 17:58:54.883 1473-1473/com.mysmcc E/AndroidRuntime: FATAL EXCEPTION: main Process: com.mysmcc, PID: 1473 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mysmcc/com.mysmcc.activities.AppMainActivity}: java.lang.StringIndexOutOfBoundsException: length=0; index=0 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2695) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769) at android.app.ActivityThread.access$900(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5910) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200) Caused by: java.lang.StringIndexOutOfBoundsException: length=0; index=0 at java.lang.String.indexAndLength(String.java:500) at java.lang.String.charAt(String.java:494) at android.graphics.Color.parseColor(Color.java:209) at com.mysmcc.activities.AppMainActivity.onCreate(AppMainActivity.java:213) at android.app.Activity.performCreate(Activity.java:6178) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2648) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2769) at android.app.ActivityThread.access$900(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1430) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5910) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)

Telegram getting force closed on VOIP call?

Getting following error:
FATAL EXCEPTION: main
Process: com.SocialMob.Txme, PID: 29963
java.lang.UnsatisfiedLinkError: No implementation found for void
org.telegram.messenger.voip.VoIPController.nativeSetAudioOutputGainControlEnabled(long,
boolean) (tried
Java_org_telegram_messenger_voip_VoIPController_nativeSetAudioOutputGainControlEnabled
and
Java_org_telegram_messenger_voip_VoIPController_nativeSetAudioOutputGainControlEnabled__JZ)
at org.telegram.messenger.voip.VoIPController.nativeSetAudioOutputGainControlEnabled(Native
Method)
at org.telegram.messenger.voip.VoIPController.setAudioOutputGainControlEnabled(VoIPController.java:244)
at org.telegram.messenger.voip.VoIPBaseService.updateOutputGainControlState(VoIPBaseService.java:691)
at org.telegram.messenger.voip.VoIPBaseService.configureDeviceForCall(VoIPBaseService.java:445)
at org.telegram.messenger.voip.VoIPService.startOutgoingCall(VoIPService.java:200)
at org.telegram.messenger.voip.VoIPService.access$100(VoIPService.java:64)
at org.telegram.messenger.voip.VoIPService$1.run(VoIPService.java:127)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5459)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
One of the libraries of the telegram was updated and was not mentioned on the source code page.
By updating library https://github.com/grishka/libtgvoip, and cleaning my project made my app working fine

Android Oreo's downloadable fonts exceptions

Just uploaded a new version of my app to beta with the new Downloadable Fonts and Fonts in XML features and the pre-launch report from google is showing me crashes on some devices.
LG G6, Android 7.0:
FATAL EXCEPTION: ControllerMessenger
Process: com.example.mobile, PID: 11263
java.lang.NullPointerException: Attempt to invoke a virtual method on a null object reference
at android.support.v4.graphics.TypefaceCompatUtil.mmap(TypefaceCompatUtil.java:98)
at android.support.v4.graphics.TypefaceCompatApi24Impl.createFromFontInfo(TypefaceCompatApi24Impl.java:140)
at android.support.v4.graphics.TypefaceCompat.createFromFontInfo(TypefaceCompat.java:167)
at android.support.v4.provider.FontsContractCompat.getFontInternal(FontsContractCompat.java:190)
at android.support.v4.provider.FontsContractCompat.getFontSync(FontsContractCompat.java:244)
at android.support.v4.graphics.TypefaceCompat.createFromResourcesFamilyXml(TypefaceCompat.java:124)
at android.support.v4.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:390)
at android.support.v4.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:336)
at android.support.v4.content.res.ResourcesCompat.getFont(ResourcesCompat.java:205)
at com.example.libs.fragments.BaseFragment.onStart(BaseFragment.java:148)
at android.support.v4.app.Fragment.performStart(Fragment.java:2287)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1458)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1819)
at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)
at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2590)
at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2377)
at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2332)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2239)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:700)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.support.test.espresso.base.Interrogator.loopAndInterrogate(Interrogator.java:148)
at android.support.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:466)
at android.support.test.espresso.base.UiControllerImpl.loopUntil(UiControllerImpl.java:420)
at android.support.test.espresso.base.UiControllerImpl.injectMotionEvent(UiControllerImpl.java:234)
at android.support.test.espresso.action.MotionEvents.sendUp(MotionEvents.java:140)
at android.support.test.espresso.action.MotionEvents.sendUp(MotionEvents.java:123)
at android.support.test.espresso.action.Tap.sendSingleTap(Tap.java:170)
at android.support.test.espresso.action.Tap.access$100(Tap.java:31)
at android.support.test.espresso.action.Tap$1.sendTap(Tap.java:46)
at android.support.test.espresso.action.GeneralClickAction.perform(GeneralClickAction.java:136)
at android.support.test.espresso.ViewInteraction$SingleExecutionViewAction.perform(ViewInteraction.java:355)
at android.support.test.espresso.ViewInteraction.doPerform(ViewInteraction.java:242)
at android.support.test.espresso.ViewInteraction.access$100(ViewInteraction.java:62)
at android.support.test.espresso.ViewInteraction$1.call(ViewInteraction.java:149)
at android.support.test.espresso.ViewInteraction$1.call(ViewInteraction.java:146)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6316)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:872)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:762)
Moto G4 Play, Android 6.0:
FATAL EXCEPTION: main
Process: com.example.mobile, PID: 13208
java.lang.NullPointerException: Attempt to read from field 'int android.support.v4.provider.FontsContractCompat$TypefaceResult.mResult' on a null object reference
at android.support.v4.provider.FontsContractCompat$2.onReply(FontsContractCompat.java:277)
at android.support.v4.provider.FontsContractCompat$2.onReply(FontsContractCompat.java:274)
at android.support.v4.provider.FontsContractCompat$3.onReply(FontsContractCompat.java:312)
at android.support.v4.provider.FontsContractCompat$3.onReply(FontsContractCompat.java:300)
at android.support.v4.provider.SelfDestructiveThread$2$1.run(SelfDestructiveThread.java:149)
at android.os.Handler.handleCallback(Handler.java:746)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5459)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
P8 Lite, Android 5.0:
FATAL EXCEPTION: main
Process: com.example.mobile, PID: 19646
android.view.InflateException: Binary XML file line #145: Error inflating class
at android.view.LayoutInflater.createView(LayoutInflater.java:652)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:762)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:825)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:828)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:828)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:828)
at android.view.LayoutInflater.inflate(LayoutInflater.java:523)
at android.view.LayoutInflater.inflate(LayoutInflater.java:425)
at com.example.libs.fragments.BasicBaseFragment.initView(BasicBaseFragment.java:46)
at com.example.libs.fragments.BasicBaseFragment.onCreateView(BasicBaseFragment.java:73)
at android.support.v4.app.Fragment.performCreateView(Fragment.java:2261)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1419)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1750)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1819)
at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:797)
at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2590)
at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2377)
at android.support.v4.app.FragmentManagerImpl.removeRedundantOperationsAndExecute(FragmentManager.java:2332)
at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2239)
at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:700)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5538)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:960)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:626)
... 27 more
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'int android.os.ParcelFileDescriptor.getFd()' on a null object reference
at android.support.v4.graphics.TypefaceCompatApi21Impl.getFile(TypefaceCompatApi21Impl.java:50)
at android.support.v4.graphics.TypefaceCompatApi21Impl.createFromFontInfo(TypefaceCompatApi21Impl.java:72)
at android.support.v4.graphics.TypefaceCompat.createFromFontInfo(TypefaceCompat.java:167)
at android.support.v4.provider.FontsContractCompat.getFontInternal(FontsContractCompat.java:190)
at android.support.v4.provider.FontsContractCompat.getFontSync(FontsContractCompat.java:244)
at android.support.v4.graphics.TypefaceCompat.createFromResourcesFamilyXml(TypefaceCompat.java:124)
at android.support.v4.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:390)
at android.support.v4.content.res.ResourcesCompat.loadFont(ResourcesCompat.java:336)
at android.support.v4.content.res.ResourcesCompat.getFont(ResourcesCompat.java:205)
at com.example.libs.widget.view.MandatoryEditTextView.initialize(MandatoryEditTextView.java:179)
at com.example.libs.widget.view.MandatoryEditTextView.init(MandatoryEditTextView.java:120)
at com.example.libs.widget.view.MandatoryEditTextView.(MandatoryEditTextView.java:98)
... 30 more
I noticed in the report videos that those crashes are occurring in the first screens of the app but when i run the app myself on an emulator or a real device (Oreo or pre Oreo) this crashes dont happen.
Also, as a side note, but i think its related, i've been trying to use
<meta-data android:name="preloaded_fonts"
android:resource="#array/preloaded_fonts" />
in AndroidManifest.xml but it doesnt seem to work at all. when trying to access a font, either via xml or by code, the app crashes because the font isnt being recognized. So i decided eventually to remove this meta-data.
Help is appreciated.

Android Preference persistString method is getting java.lang.ClassCastException error

I'm trying to do TimePickerPreferences and I tried accepted answer and second answer in the question. And I got following error when I call persistString(time) function at onDialogClosed
FATAL EXCEPTION: main
Process: com.foo.example, PID: 29414
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at android.app.SharedPreferencesImpl.getString(SharedPreferencesImpl.java:225)
at android.preference.Preference.getPersistedString(Preference.java:1472)
at android.preference.Preference.persistString(Preference.java:1441)
at com.foo.example.ui.preferences.TimePreference.onDialogClosed(TimePreference.java:60)
at android.preference.DialogPreference.onDismiss(DialogPreference.java:395)
at android.app.Dialog$ListenersHandler.handleMessage(Dialog.java:1323)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

An app using zbar library for scanning QR codes is getting crash.

I am trying to run the QR scanner app downloaded from
http://kvenkataprasad.blogspot.in/2015/01/bar-code-and-qr-code-scanner-example.html?showComment=1449051540990#c226949441944394510
App getting started but when I am clicking the scan button, the app get crashed.
Following the log of crash.
13239-13239/com.kvprasad.zbarbarcodescanner E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.kvprasad.zbarbarcodescanner, PID: 13239
java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.kvprasad.zbarbarcodescanner-1/lib/arm/libzbarjni.so: has text relocations
at java.lang.Runtime.loadLibrary(Runtime.java:372)
at java.lang.System.loadLibrary(System.java:1076)
at net.sourceforge.zbar.ImageScanner.<clinit>(Unknown Source)
at com.kvprasad.zbarbarcodescanner.BarcodeScanner.initControls(BarcodeScanner.java:52)
at com.kvprasad.zbarbarcodescanner.BarcodeScanner.onCreate(BarcodeScanner.java:42)
at android.app.Activity.performCreate(Activity.java:6237)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
I am not getting the main issue behind crashing because I am a newbie in android. Please guide me to solve the problem.
Thanks.

Categories

Resources