camera bug - Xiaomi Mi Max Questions & Answers

I am suffering a serious problem from camera app in my xiaomi mi max 3/32 (hydrogen), MIUI 9.1 Global.
The camera suddenly shuts just after starting the app
This is the script I got:
java.lang.RuntimeException: startPreview failed
at android.hardware.Camera.startPreview(Native Method)
at com.android.camera.CameraManager$CameraHandler.handleMessage(CameraManager.java:251)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:163)
at android.os.HandlerThread.run(HandlerThread.java:61)

Related

Camera won't work

Hi,
Two weeks ago, my back-facing camera fc the stock CM camera app and won't be recognized in any other cam apps...
I didn't changed any setting!
Here is the log from the CM camera app..
java.lang.AssertionError: Supported FPS ranges cannot be null.
at android.hardware.camera2.legacy.LegacyMetadataMapper.mapControlAe(LegacyMetadataMapper.java:410)
at android.hardware.camera2.legacy.LegacyMetadataMapper.mapCharacteristicsFromParameters(LegacyMetadataMapper.java:183)
at android.hardware.camera2.legacy.LegacyMetadataMapper.createCharacteristics(LegacyMetadataMapper.java:154)
at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:191)
at com.android.camera.one.OneCameraManager.isCamera2Supported(OneCameraManager.java:132)
at com.android.camera.one.OneCameraManager.create(OneCameraManager.java:95)
at com.android.camera.one.OneCameraManager.get(OneCameraManager.java:74)
at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1415)
at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:101)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2310)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2419)
at android.app.ActivityThread.access$900(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5293)
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:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
I've already cleaned the cache.
Thanks for anything that can help me!
FrKamikaze said:
Hi,
Two weeks ago, my back-facing camera fc the stock CM camera app and won't be recognized in any other cam apps...
I didn't changed any setting!
Here is the log from the CM camera app..
java.lang.AssertionError: Supported FPS ranges cannot be null.
at android.hardware.camera2.legacy.LegacyMetadataMapper.mapControlAe(LegacyMetadataMapper.java:410)
at android.hardware.camera2.legacy.LegacyMetadataMapper.mapCharacteristicsFromParameters(LegacyMetadataMapper.java:183)
at android.hardware.camera2.legacy.LegacyMetadataMapper.createCharacteristics(LegacyMetadataMapper.java:154)
at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:191)
at com.android.camera.one.OneCameraManager.isCamera2Supported(OneCameraManager.java:132)
at com.android.camera.one.OneCameraManager.create(OneCameraManager.java:95)
at com.android.camera.one.OneCameraManager.get(OneCameraManager.java:74)
at com.android.camera.CameraActivity.onCreateTasks(CameraActivity.java:1415)
at com.android.camera.util.QuickActivity.onCreate(QuickActivity.java:101)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2310)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2419)
at android.app.ActivityThread.access$900(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1321)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5293)
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:904)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:699)
I've already cleaned the cache.
Thanks for anything that can help me!
Click to expand...
Click to collapse
Boot into recovery wipe cache & dalvik cache. Reboot system.
Open settings/apps/all/camera/clear data
I've just done that, then launched the camera. But it recrashed after two seconds of black screen
FrKamikaze said:
I've just done that, then launched the camera. But it recrashed after two seconds of black screen
Click to expand...
Click to collapse
Then the only way is reflash the rom
Well okay, thanks anyway! :/

Unhappy tablet

I think my tablet is suffering from a hardware fault. It is often freezing for a few seconds and sometimes up to a few minutes, many different applications including Google Play Services stop responding and sometimes it reboots itself. I have tried full wipes and reinstalling ROM (both stock and various custom ROMs) but it doesn't fix the problem. For a period of a couple of weeks it seemed to be ok but now it is constantly freezing again and then various different apps crash. Since it happens on multiple ROMs and many different apps crash I suspect its a hardware fault (maybe RAM failing). Has anyone else had a problem like this?
This is typical of what I see in logs
Code:
--------- beginning of crash
E/AndroidRuntime(21391): FATAL EXCEPTION: AsyncTask #3
E/AndroidRuntime(21391): Process: com.android.connectivity.metrics, PID: 21391
E/AndroidRuntime(21391): java.lang.RuntimeException: An error occurred while executing doInBackground()
E/AndroidRuntime(21391): at android.os.AsyncTask$3.done(AsyncTask.java:325)
E/AndroidRuntime(21391): at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
E/AndroidRuntime(21391): at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
E/AndroidRuntime(21391): at java.util.concurrent.FutureTask.run(FutureTask.java:242)
E/AndroidRuntime(21391): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:243)
E/AndroidRuntime(21391): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
E/AndroidRuntime(21391): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
E/AndroidRuntime(21391): at java.lang.Thread.run(Thread.java:761)
E/AndroidRuntime(21391): Caused by: java.lang.IllegalArgumentException: bad base-64
E/AndroidRuntime(21391): at android.util.Base64.decode(Base64.java:161)
E/AndroidRuntime(21391): at android.util.Base64.decode(Base64.java:136)
E/AndroidRuntime(21391): at android.util.Base64.decode(Base64.java:118)
E/AndroidRuntime(21391): at com.android.connectivity.metrics.WiFiJobService.takeSnapshot(WiFiJobService.java:52)
E/AndroidRuntime(21391): at com.android.connectivity.metrics.SnapshotJobService$Task.doInBackground(SnapshotJobService.java:80)
E/AndroidRuntime(21391): at com.android.connectivity.metrics.SnapshotJobService$Task.doInBackground(SnapshotJobService.java:63)
E/AndroidRuntime(21391): at android.os.AsyncTask$2.call(AsyncTask.java:305)
E/AndroidRuntime(21391): at java.util.concurrent.FutureTask.run(FutureTask.java:237)
E/AndroidRuntime(21391): ... 4 more
F/libc ( 2469): Fatal signal 6 (SIGABRT), code -6 in tid 27367 (gpsd)
F/libc ( 2469): failed to resend signal during crash: Operation not permitted
F/libc (27988): Fatal signal 6 (SIGABRT), code -6 in tid 19155 (gpsd)
F/libc (27988): failed to resend signal during crash: Operation not permitted
F/libc (19608): Fatal signal 6 (SIGABRT), code -6 in tid 26538 (gpsd)
F/libc (19608): failed to resend signal during crash: Operation not permitted
F/libc (27078): Fatal signal 6 (SIGABRT), code -6 in tid 28166 (gpsd)
F/libc (27078): failed to resend signal during crash: Operation not permitted
F/libc (31413): Fatal signal 6 (SIGABRT), code -6 in tid 13581 (gpsd)
F/libc (31413): failed to resend signal during crash: Operation not permitted
F/libc (15291): Fatal signal 6 (SIGABRT), code -6 in tid 18678 (gpsd)
F/libc (15291): failed to resend signal during crash: Operation not permitted
F/libc (20977): Fatal signal 6 (SIGABRT), code -6 in tid 6160 (gpsd)
F/libc (20977): failed to resend signal during crash: Operation not permitted
E/AndroidRuntime( 7359): FATAL EXCEPTION: main
E/AndroidRuntime( 7359): Process: com.google.android.apps.magazines, PID: 7359
E/AndroidRuntime( 7359): DeadSystemException: The system died; earlier logs will point to the root cause
E/AndroidRuntime( 9762): FATAL EXCEPTION: main
E/AndroidRuntime( 9762): Process: com.google.android.gms.persistent, PID: 9762
E/AndroidRuntime( 9762): DeadSystemException: The system died; earlier logs will point to the root cause
E/AndroidRuntime( 5006): FATAL EXCEPTION: AsyncTask #277
E/AndroidRuntime( 5006): Process: me.twrp.twrpapp, PID: 5006
E/AndroidRuntime( 5006): DeadSystemException: The system died; earlier logs will point to the root cause
E/AndroidRuntime( 3717): FATAL EXCEPTION: main
E/AndroidRuntime( 3717): Process: com.android.vending, PID: 3717
E/AndroidRuntime( 3717): DeadSystemException: The system died; earlier logs will point to the root cause
E/AndroidRuntime(28431): FATAL EXCEPTION: main
E/AndroidRuntime(28431): Process: com.google.android.keep, PID: 28431
E/AndroidRuntime(28431): DeadSystemException: The system died; earlier logs will point to the root cause
E/AndroidRuntime(23932): FATAL EXCEPTION: main
E/AndroidRuntime(23932): Process: com.google.android.apps.maps, PID: 23932
E/AndroidRuntime(23932): DeadSystemException: The system died; earlier logs will point to the root cause
E/AndroidRuntime( 3681): FATAL EXCEPTION: [bwl] processing com.google.android.gms.herrevad.services.BackgroundObservationIntentOperation for action com.google.android.gms.herrevad.services.BACKGROUND_OBSERVATION
E/AndroidRuntime( 3681): Process: com.google.android.gms, PID: 3681
E/AndroidRuntime( 3681): DeadSystemException: The system died; earlier logs will point to the root cause
F/libc ( 9857): Fatal signal 6 (SIGABRT), code -6 in tid 19574 (gpsd)
F/libc ( 9857): failed to resend signal during crash: Operation not permitted
Hi,
I had to send mine to Samsung warranty because of flickering/glitches and random reboots. They replaced a part of the motherboard that was linking battery and main motherboard. It's a known issue on this device...
Envoyé de mon PLK-L01 en utilisant Tapatalk
SkilesAwaRz said:
Hi,
I had to send mine to Samsung warranty because of flickering/glitches and random reboots. They replaced a part of the motherboard that was linking battery and main motherboard. It's a known issue on this device...
Envoyé de mon PLK-L01 en utilisant Tapatalk
Click to expand...
Click to collapse
My problem was different. I have replaced motherboard with one from another second hand tablet I bought and now it is working fine. I think it was faulty memory on main board.

xiaomi mi 6 error

hi
i am facing an error : someone know to deal with it ???????it comes sometimes and i want to solve it without reset
java.lang.IllegalArgumentException: There is no GcmTaskService component registered within this package. Have you extended GcmTaskService correctly?
at com.google.android.gms.common.internal.zzac.zzb(Unknown Source:8)
at com.google.android.gms.gcm.GcmNetworkManager.zzeu(Unknown Source:44)
at com.google.android.gms.gcm.GcmNetworkManager.schedule(Unknown Source:4)
at com.google.android.videos.service.drm.RefreshLicenseTaskService.forceLicenseRefreshNow(SourceFile:34)
at com.google.android.videos.service.drm.LicenseRefresher.refreshLicenses(SourceFile:31)
at com.google.android.videos.service.pinning.PinBroadcastReceiver.startTransferServiceToResumeDownloads(SourceFile:28)
at com.google.android.videos.VideosGlobals.postStartup(SourceFile:207)
at com.google.android.videos.VideosGlobals.bridge$lambda$0$VideosGlobals(Unknown Source:0)
at com.google.android.videos.VideosGlobals$$Lambda$8.run(Unknown Source:2)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6665)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:781)
Hi start by erasing the app data that crashes

rear Camera Issue

after flashing stock rom i am unable to use flash light and rear camera...
i tried other roms but the problem still exist.
----- CRASH LOG----
SUPPORTED_64_BIT_ABIS=[Ljava.lang.String;@1f93608
versionCode=21
BOARD=QC_Reference_Phone
BOOTLOADER=unknown
TYPE=user
ID=NRD90M
TIME=1492497818000
BRAND=ZUK
TAG=Build
HARDWARE=qcom
SERIAL=6240b8f4
SUPPORTED_ABIS=[Ljava.lang.String;@7c2a1a1
CPU_ABI=arm64-v8a
IS_DEBUGGABLE=false
RADIO=unknown
MANUFACTURER=ZUK
IS_EMULATOR=false
SUPPORTED_32_BIT_ABIS=[Ljava.lang.String;@42b4fab
TAGS=release-keys
CPU_ABI2=
UNKNOWN=unknown
PERMISSIONS_REVIEW_REQUIRED=false
USER=buildslave
FINGERPRINT=ZUK/z2_plus_hw/z2_plus_hw:7.0/NRD90M/2.5.104_170418:user/release-keys
HOST=byws20
versionName=0.9.0.0
PRODUCT=z2_plus_hw
DISPLAY=NRD90M dev-keys
MODEL=ZUK Z2132
DEVICE=z2_plus_hw
java.lang.RuntimeException: Unable to start receiver com.zui.cameragallery.camera.DisableCameraReceiver: java.lang.IllegalArgumentException: Component class com.zui.cameragallery.camera.CameraLauncher does not exist in com.zui.cameragallery
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3079)
at android.app.ActivityThread.-wrap18(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1565)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6153)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)
Caused by: java.lang.IllegalArgumentException: Component class com.zui.cameragallery.camera.CameraLauncher does not exist in com.zui.cameragallery
at android.os.Parcel.readException(Parcel.java:1687)
at android.os.Parcel.readException(Parcel.java:1636)
at android.content.pm.IPackageManager$Stub$Proxy.setComponentEnabledSetting(IPackageManager.java:4485)
at android.app.ApplicationPackageManager.setComponentEnabledSetting(ApplicationPackageManager.java:2233)
at com.zui.cameragallery.camera.DisableCameraReceiver.disableComponent(DisableCameraReceiver.java:82)
at com.zui.cameragallery.camera.DisableCameraReceiver.onReceive(DisableCameraReceiver.java:48)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3072)
... 8 more
java.lang.IllegalArgumentException: Component class com.zui.cameragallery.camera.CameraLauncher does not exist in com.zui.cameragallery
at android.os.Parcel.readException(Parcel.java:1687)
at android.os.Parcel.readException(Parcel.java:1636)
at android.content.pm.IPackageManager$Stub$Proxy.setComponentEnabledSetting(IPackageManager.java:4485)
at android.app.ApplicationPackageManager.setComponentEnabledSetting(ApplicationPackageManager.java:2233)
at com.zui.cameragallery.camera.DisableCameraReceiver.disableComponent(DisableCameraReceiver.java:82)
at com.zui.cameragallery.camera.DisableCameraReceiver.onReceive(DisableCameraReceiver.java:48)
at android.app.ActivityThread.handleReceiver(ActivityThread.java:3072)
at android.app.ActivityThread.-wrap18(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1565)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6153)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:758)

Stock camera and gcam crashes after flashing 4k enable fix in twrp rn5

Hey, so i flashed a 4k fix so i could shoot 4k videos with gcam on stock 12.0.2 rom rooted with magisk and bootloader unlocked and all hell broke loose. Both stock camera and every gcam i try crashes. Please, if you can save me without losing my data it would be a dream. Im not an expert so I'll just post the logs below and pray an expert sees them and helps me.
" java.lang.RuntimeException: java.lang.IllegalStateException: Unable to get camera characteristics for 1
at lmg.run(Unknown Source:26)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
at lky.run(Unknown Source:5)
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Unable to get camera characteristics for 1
at java.util.concurrent.FutureTask.report(FutureTask.java:123)
at java.util.concurrent.FutureTask.get(FutureTask.java:193)
at oxa.get(Unknown Source:4)
at lmg.run(Unknown Source:15)
... 4 more
Caused by: java.lang.IllegalStateException: Unable to get camera characteristics for 1
at mjt.a(Unknown Source:73)
at mju.a(Unknown Source:115)
at mkl.b(Unknown Source:4)
at mks.b(Unknown Source:2)
at lvz.b(Unknown Source:26)
at lwb.b(Unknown Source:9)
at lwb.b(Unknown Source:9)
at jzk.a(Unknown Source:161)
at ebv.get(Unknown Source:33)
at pmn.get(Unknown Source:15)
at ebs.get(Unknown Source:10)
at pmn.get(Unknown Source:15)
at pmu.a(Unknown Source:78)
at ebg.get(Unknown Source:16)
at pmn.get(Unknown Source:15)
at pmu.a(Unknown Source:35)
at bmr.a(Unknown Source:29)
at oxf.run(Unknown Source:29)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:458)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at lmh.run(Unknown Source:2)
at lmg.run(Unknown Source:0)
... 4 more
Caused by: android.hardware.camera2.CameraAccessException: CAMERA_DISCONNECTED (2): Camera service is currently unavailable
at android.hardware.camera2.CameraManager.getCameraCharacteristics(CameraManager.java:264)
at mjt.a(Unknown Source:15)
... 26 more
Just try and flash the module again so TWRP will delete it
Update me if you already formated the phone or if i truly helped

Categories

Resources