简体   繁体   English

E / AndroidRuntime(2671):java.lang.RuntimeException:setParameters失败

[英]E/AndroidRuntime( 2671): java.lang.RuntimeException: setParameters failed

I am developing a ROM for the HTC Doubleshot, and I ran into some trouble with the camera (it force closes). 我正在为HTC Doubleshot开发ROM ,但相机出现了一些问题(强制关闭)。 Particularly the stock camera, and most third party cameras out there (UCam Ultra Camera does not). 尤其是普通相机,还有大多数第三方相机(UCam Ultra Camera则没有)。

I have a few logcats (fun starts at line 696 of the latest one) of the situation, and I am stumped as to what is going on. 我遇到了一些麻烦 (有趣的地方是最近一次的第696行),我对发生的事情感到困惑。 Other cameras, like Google Camera, have the same result. 其他相机(例如Google相机)的结果相同。

My ROM is a build of CarbonROM 4.4.4, where successful work had been done by a developer in building Cyanogenmod 11. So my manifest has been split between my github (joelmaxuel) and his (EmmanuelU, KitKatDS): 我的ROM是CarbonROM 4.4.4的构建,开发人员在构建Cyanogenmod 11的过程中成功完成了工作。

<?xml version="1.0" encoding="UTF-8"?>

<manifest>

    <remote name="DS"
       fetch="git://github.com/KitKatDS/"/>

    <remote name="emmanuel"
       fetch="git://github.com/EmmanuelU/"/>

    <remote name="joelmaxuel"
       fetch="git://github.com/joelmaxuel/"/>

    <remote name="githubby"
       fetch="git://github.com/"/>

    <project path="buildbot" name="James_Buildbot" revision="master" remote="emmanuel">
        <copyfile src="James" dest="James" />
    </project>

    <project name="android_device_htc_common" path="device/htc/common" revision="gingerbread" remote="DS" />

    <project path="device/htc/doubleshot" name="android_device_htc_doubleshot" remote="joelmaxuel" revision="kk" />
    <project path="device/htc/msm8660-common" name="android_device_htc_msm8660-common" remote="joelmaxuel" revision="kk" />
    <project path="vendor/htc/doubleshot" name="android_vendor_htc_doubleshot" remote="joelmaxuel" revision="kk" />
    <project path="kernel/htc/doubleshot" name="wild_kernel_htc_msm8660" remote="emmanuel" revision="android-msm-doubleshot-3.0-ion" />

    <remove-project name="CyanogenMod/android_hardware_libhardware_legacy" />
    <remove-project name="CarbonDev/android_frameworks_av" />
    <remove-project name="CarbonDev/android_frameworks_native" />
    <remove-project name="CarbonDev/android_packages_apps_Camera2" />
    <project name="android_hardware_libhardware_legacy" path="hardware/libhardware_legacy" revision="cm-11.0" remote="DS" />
    <project name="android_hardware_qcom_media-legacy" path="hardware/qcom/media-legacy" revision="cm-11.0-ion" remote="DS" />
    <project name="android_hardware_qcom_display-legacy" path="hardware/qcom/display-legacy" revision="cm-11.0-ion" remote="DS" />
    <project name="android_frameworks_av" path="frameworks/av" revision="cm-11.0" remote="DS" />
    <project name="android_packages_apps_Camera2" path="packages/apps/Camera2" revision="cm-11.0" remote="DS" />
    <project name="android_frameworks_native" path="frameworks/native" revision="kk" remote="joelmaxuel" />

</manifest>

I made sure this was in my BoardConfigCommon.mk: 我确保这在我的BoardConfigCommon.mk中:

# Camera
BOARD_USES_QCOM_LEGACY_CAM_PARAMS := true
COMMON_GLOBAL_CFLAGS += -DICS_CAMERA_BLOB -DNO_UPDATE_PREVIEW -DQCOM_BSP_CAMERA_ABI_HACK

And the code for BOARD_USES_QCOM_LEGACY_CAM_PARAMS would add the appropriate CFLAG (I checked the frameworks_av code, file camera/Android.mk): BOARD_USES_QCOM_LEGACY_CAM_PARAMS的代码将添加适当的CFLAG(我检查了frameworks_av代码,文件camera / Android.mk):

ifeq ($(BOARD_USES_QCOM_HARDWARE),true)
LOCAL_CFLAGS += -DQCOM_HARDWARE
endif
ifeq ($(BOARD_USES_QCOM_LEGACY_CAM_PARAMS),true)
LOCAL_CFLAGS += -DQCOM_LEGACY_CAM_PARAMS
endif

I am at a loss as what to check next. 我不知道接下来要检查什么。 Any suggestions? 有什么建议么?

The device's camera implementation believes you're passing in an invalid setting value. 设备的摄像头实现认为您传入的设置值无效。

It's a bit hard to see the actual complaint between all the other camera logging, but it's in the log: 在所有其他相机记录之间很难看到实际的抱怨,但是在日志中:

E/QualcommCameraHardwareZSL( 171): Invalid focus mode value: continuous-picture E/QualcommCameraHardwareZSL( 171): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&): 6487, rc = -22 E / QualcommCameraHardwareZSL(171):无效的对焦模式值:连续图片E / QualcommCameraHardwareZSL(171):虚拟android :: status_t android :: QualcommCameraHardware :: setParameters(const android :: CameraParameters&):6487,rc = -22

If continuous picture is not defined in the list of supported AF modes, then the app is invalidly trying to set it. 如果在支持的自动对焦模式列表中未定义连续图片,则该应用程序将尝试对其进行无效设置。 If it is listed, then the camera implementation is incorrectly rejecting it. 如果已列出,则说明相机实现错误地拒绝了它。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Camera java.lang.RuntimeException:setParameters失败 - Camera java.lang.RuntimeException: setParameters failed 相机关闭VM-java.lang.RuntimeException:setParameters失败 - Camera shutting down VM - java.lang.RuntimeException: setParameters failed E / AndroidRuntime(1269):java.lang.RuntimeException:无法启动活动 - E/AndroidRuntime(1269): java.lang.RuntimeException: Unable to start activity java.lang.RuntimeException:Camera.setParameters - java.lang.RuntimeException: Camera.setParameters E / AndroidRuntime(1382):java.lang.RuntimeException:无法启动活动ComponentInfo - E/AndroidRuntime(1382): java.lang.RuntimeException: Unable to start activity ComponentInfo E / AndroidRuntime(29668):java.lang.RuntimeException:无法启动活动ComponentInfo {夸大类片段的错误 - E/AndroidRuntime(29668): java.lang.RuntimeException: Unable to start activity ComponentInfo{Error inflating class fragment E / AndroidRuntime:致命例外:AsyncTask#1 java.lang.RuntimeException:执行doInBackground()时发生错误 - E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #1 java.lang.RuntimeException: An error occured while executing doInBackground() E / AndroidRuntime:FATAL EXCEPTION:主PID:19302 java.lang.RuntimeException:无法启动活动ComponentInfo - E/AndroidRuntime: FATAL EXCEPTION: main PID: 19302 java.lang.RuntimeException: Unable to start activity ComponentInfo AndroidRuntime(5940):java.lang.RuntimeException:无法启动活动ComponentInfo - AndroidRuntime(5940): java.lang.RuntimeException: Unable to start activity ComponentInfo AndroidRuntime:致命异常:主要由:java.lang.RuntimeException引起 - AndroidRuntime: FATAL EXCEPTION: main Caused by: java.lang.RuntimeException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM