phonegap 카메라가 앱 충돌 (phonegap camera crashes the app)


문제 설명

phonegap 카메라가 앱 충돌 (phonegap camera crashes the app)

phonegap 카메라 API를 사용하여 여러 장의 사진을 찍은 후 Phonegap 앱이 충돌합니다. 각 사진 후에 발생하는 것이 아니라 여러 사진을 찍은 후에만 발생합니다. RAM이 해제되지 않아 충돌이 발생한다고 생각합니다. 메시지: 불행히도 갤러리가 중지되었습니다. RAM 메모리를 강제로 해제하는 방법이나 다른 해결 방법을 도와주세요. 의미: W/QComExtractorFactory(174): sniff <=== status = 1

고마워요

LogCat이 다음과 일치하지 않습니다.

11‑27 18:06:55.751: E/camera(1799): 전송 톤 바: mSkinToneSeekBar = false

11‑27 18:06:55.751: D/CameraStorage(1799): 외부 저장소 상태=마운트됨

11‑27 18:06:55.771: E/WVMExtractor(174): libwvm.so를 열지 못했습니다.

11‑27 18:06:55.771: W/QComExtractorFactory(174): 하지 않았습니다.


참조 솔루션

방법 1:

Make sure that you are working like this.

navigator.camera.getPicture(function(imageURL){            
            fileURI = imageURL;
            fileName = fileURI.substr(fileURI.lastIndexOf('/') + 1);
            window.resolveLocalFileSystemURI(fileURI, function(fileEntry) {
                fileEntry.file(function(fileObj) {
                    fileSize = fileObj.size;
                    fileType = fileObj.type;                          
                });
            }); 
        }, function(){
             alert('failed');
        }, {
            quality: 50,
            destinationType: navigator.camera.DestinationType.FILE_URI,
            sourceType: navigator.camera.PictureSourceType.PHOTOLIBRARY
        });
    },

(by user2929078Ashish)

참조 문서

  1. phonegap camera crashes the app (CC BY‑SA 2.5/3.0/4.0)

#crash #nullpointerexception #camera #cordova






관련 질문

WebView가 전체 활동을 죽이고 있습니다 --- 이것을 어떻게 디버깅 할 수 있습니까? (WebView killing the whole activity --- How can I debug this?)

연결 시도 시 Windows의 MySQL이 충돌함 (MySQL on Windows crashes on connection attempts)

휘발성 멤버는 멤버 함수에서 액세스할 수 없습니다. (volatile member can not be accessed by member function)

Ruby에서 Gosu로 텍스트를 인쇄할 수 없음(충돌) (Cannot print a text with Gosu in Ruby (crash))

이 기능은 .exe를 충돌시킵니다. 제가 뭘 잘못하고 있습니까? (This function makes the .exe crash, what am I doing wrong?)

PyAudio로 웨이브를 재생하는 Tkinter 버튼 호출 기능 - 충돌 (Tkinter button calling function to play wave with PyAudio -- crashes)

phonegap 카메라가 앱 충돌 (phonegap camera crashes the app)

대화 상자를 표시하려고 할 때 앱이 충돌함 (App crashed when try to display dialog box)

kaldi 설치 시 libmkl_tbb_thread.so sth 관련 문제 (A problem related to libmkl_tbb_thread.so sth when installing kaldi)

WordPress에서 Simple Jquery Click이 작동하지 않음 (Simple Jquery Click not working in WordPress)

새 줄이 발견되지 않으면 fget이 NULL을 반환하지 않습니다. (fgets dont return NULL when no new line found)

webview가 검은 색으로 바뀌고 응용 프로그램이 충돌합니다. (webview turns black and application crashes)







코멘트