MiaoRong / javacv

Automatically exported from code.google.com/p/javacv
GNU General Public License v2.0
0 stars 0 forks source link

armeabi-v7a crashes #170

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Follow instructions on 
http://code.google.com/p/javacv/source/browse/trunk/javacv/README.txt?r=84
2. Copy armeabi-v7a folder from OpenCV-2.3.1-android-arm\libs\ to libs folder 
in Project
3. Run on LG Optimus 2X (ARMV7 compatible)

The facepreview sample APK (Feb 8, 2012) works fine.

What is the expected output? What do you see instead?
All works until I include the armeabi-v7a folder to my project.
I'm trying to use ARM7 for performance increase, but the app crashes about 1 
second after loading.

What version of the product are you using? On what operating system?
Android 2.2, JavaCV released Feb. 18, 2012. OpenCV 2.3.1 released Aug 2011.

Please provide any additional information below.
Here's the error log file, if needed:

03-11 21:52:07.694: ERROR/NvOmxCameraSettings(1021): programBrightness(), 
this->Brightness = [33]
03-11 21:52:07.694: ERROR/NvOmxCameraSettings(1021): omxBrightness.nBrightness 
before = [33]
03-11 21:52:07.694: ERROR/NvOmxCameraSettings(1021): omxBrightness.nBrightness 
after = [33]
03-11 21:52:07.704: ERROR/NvOmxCameraSettings(1021): defaultHue = [0], 
defaultSaturation = [120], defaultContrast = [-100], defaultBrightness = [33]
03-11 21:52:07.704: ERROR/NvOmxCameraSettings(1021): Param type 18 not supported
03-11 21:52:07.924: ERROR/StatusBarPolicy(1091): isRilReset = false
03-11 21:52:07.944: ERROR/NvOmxCameraSettings(1021): programBrightness(), 
this->Brightness = [33]
03-11 21:52:07.944: ERROR/NvOmxCameraSettings(1021): omxBrightness.nBrightness 
before = [33]
03-11 21:52:07.944: ERROR/NvOmxCameraSettings(1021): omxBrightness.nBrightness 
after = [33]
03-11 21:52:07.954: ERROR/NvOmxCamera(1021): NvxCameraControl_PreviewStart!
03-11 21:52:07.954: ERROR/NvOmxCamera(1021): Camera mode!
03-11 21:52:07.954: ERROR/NvOmxCameraSettings(1021): BOOST_CPU_FREQ:6
03-11 21:52:08.044: ERROR/MediaPlayerService(1021):  create BoardHWPlayer
03-11 21:52:08.134: ERROR/Sony 8M DRIVER(1021): sony sensor Setting resolution 
to [3264x1224], exposure [0.000000], gains [0.000000]
03-11 21:52:08.164: ERROR/Sony 8M DRIVER(1021): 
SensorBayer_WriteExposurePrivate +++, ExpTime = [0.000000]
03-11 21:52:08.174: ERROR/OMXPlayer(1021): prepare done 0x21c180
03-11 21:52:08.174: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGainsPrivate 
+++ , Gain = [0.000000]
03-11 21:52:08.274: ERROR/OMXPlayer(1021): playback complete: 0x21c180
03-11 21:52:08.274: ERROR/OMXPlayer(1021): destructor: 0x21c180
03-11 21:52:08.274: ERROR/OMXPlayer(1021): Worker Thread Exit -
03-11 21:52:08.284: ERROR/OMXPlayer(1021): destructor: 0x21c180 done 
03-11 21:52:08.284: ERROR/MediaPlayerService(1021):  create BoardHWPlayer
03-11 21:52:08.294: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGains +++ , 
Gain = [1.000000]
03-11 21:52:08.304: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteExposure +++, 
ExpTime = [0.033333]
03-11 21:52:08.324: ERROR/OMXPlayer(1021): prepare done 0x63b00
03-11 21:52:08.364: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGains +++ , 
Gain = [1.580933]
03-11 21:52:08.374: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteExposure +++, 
ExpTime = [0.041667]
03-11 21:52:08.434: ERROR/OMXPlayer(1021): playback complete: 0x63b00
03-11 21:52:08.434: ERROR/OMXPlayer(1021): destructor: 0x63b00
03-11 21:52:08.434: ERROR/OMXPlayer(1021): Worker Thread Exit -
03-11 21:52:08.444: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGains +++ , 
Gain = [1.562195]
03-11 21:52:08.464: ERROR/OMXPlayer(1021): destructor: 0x63b00 done 
03-11 21:52:08.464: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteExposure +++, 
ExpTime = [0.083333]
03-11 21:52:08.474: ERROR/===ArcCamera=== 1.1.0.76(10862): JUtils:Internal SD 
card state:mounted
03-11 21:52:08.534: ERROR/MediaPlayerService(1021):  create BoardHWPlayer
03-11 21:52:08.584: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGains +++ , 
Gain = [2.058731]
03-11 21:52:08.604: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteExposure +++, 
ExpTime = [0.125000]
03-11 21:52:08.664: ERROR/OMXPlayer(1021): prepare done 0x7f6f98
03-11 21:52:08.694: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGains +++ , 
Gain = [4.000000]
03-11 21:52:08.764: ERROR/OMXPlayer(1021): playback complete: 0x7f6f98
03-11 21:52:08.764: ERROR/OMXPlayer(1021): destructor: 0x7f6f98
03-11 21:52:08.764: ERROR/OMXPlayer(1021): Worker Thread Exit -
03-11 21:52:08.774: ERROR/===ArcCamera=== 1.1.0.76(10862): JUtils:Internal SD 
card state:mounted
03-11 21:52:08.774: ERROR/OMXPlayer(1021): destructor: 0x7f6f98 done 
03-11 21:52:08.774: ERROR/MediaPlayerService(1021):  create BoardHWPlayer
03-11 21:52:08.824: ERROR/OMXPlayer(1021): prepare done 0x7f6980
03-11 21:52:08.924: ERROR/OMXPlayer(1021): playback complete: 0x7f6980
03-11 21:52:08.924: ERROR/OMXPlayer(1021): destructor: 0x7f6980
03-11 21:52:08.924: ERROR/OMXPlayer(1021): Worker Thread Exit -
03-11 21:52:08.954: ERROR/OMXPlayer(1021): destructor: 0x7f6980 done 
03-11 21:52:10.064: ERROR/ActivityManager(1091): pausing activity is camera or 
videoplayer or youtube..., increase pause timeout value to 5 secs..    
03-11 21:52:11.135: ERROR/StatusBarPolicy(1091): isRilReset = false
03-11 21:52:12.147: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.147: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.147: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.147: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.147: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.147: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.147: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.157: ERROR/AudioService(1091): [BTUI] sendVolumeUpdate() : 
streamType(3) getStreamVolume(15)
03-11 21:52:12.304: ERROR/NvOmxCameraSettings(1021): programBrightness(), 
this->Brightness = [33]
03-11 21:52:12.304: ERROR/NvOmxCameraSettings(1021): omxBrightness.nBrightness 
before = [33]
03-11 21:52:12.304: ERROR/NvOmxCameraSettings(1021): omxBrightness.nBrightness 
after = [33]
03-11 21:52:12.304: ERROR/NvOmxCameraSettings(1021): defaultHue = [0], 
defaultSaturation = [120], defaultContrast = [-100], defaultBrightness = [33]
03-11 21:52:12.304: ERROR/NvOmxCameraSettings(1021): Param type 18 not supported
03-11 21:52:12.374: ERROR/NvOmxCameraSettings(1021): programBrightness(), 
this->Brightness = [33]
03-11 21:52:12.374: ERROR/NvOmxCameraSettings(1021): omxBrightness.nBrightness 
before = [33]
03-11 21:52:12.374: ERROR/NvOmxCameraSettings(1021): omxBrightness.nBrightness 
after = [33]
03-11 21:52:12.384: ERROR/NvOmxCamera(1021): NvxCameraControl_PreviewStart!
03-11 21:52:12.557: ERROR/Sony 8M DRIVER(1021): sony sensor Setting resolution 
to [3264x1224], exposure [0.000000], gains [0.000000]
03-11 21:52:12.577: ERROR/Sony 8M DRIVER(1021): 
SensorBayer_WriteExposurePrivate +++, ExpTime = [0.000000]
03-11 21:52:12.587: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGainsPrivate 
+++ , Gain = [0.000000]
03-11 21:52:12.657: ERROR/dalvikvm(11038): Could not find class 
'java.awt.Rectangle', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.copyFrom
03-11 21:52:12.657: ERROR/dalvikvm(11038): Could not find class 
'java.awt.Rectangle', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.copyTo
03-11 21:52:12.657: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.657: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.667: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.667: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.667: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.667: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.667: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.667: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.667: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.ComponentColorModel', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.667: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.667: ERROR/dalvikvm(11038): Could not find class 
'java.awt.image.BufferedImage', referenced from method 
com.googlecode.javacv.cpp.opencv_core$IplImage.getBufferedImage
03-11 21:52:12.787: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGains +++ , 
Gain = [1.000000]
03-11 21:52:12.787: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteExposure +++, 
ExpTime = [0.033333]
03-11 21:52:12.907: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGains +++ , 
Gain = [1.582657]
03-11 21:52:12.917: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteExposure +++, 
ExpTime = [0.041667]
03-11 21:52:13.047: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGains +++ , 
Gain = [1.953720]
03-11 21:52:13.047: ERROR/javacpp(11038): Error loading class 
0�@�H��B8夀4�.
03-11 21:52:13.057: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteExposure +++, 
ExpTime = [0.066667]
03-11 21:52:13.174: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGains +++ , 
Gain = [3.864258]
03-11 21:52:13.327: ERROR/Sony 8M DRIVER(1021): SensorBayer_WriteGains +++ , 
Gain = [4.000000]
03-11 21:52:14.324: ERROR/StatusBarPolicy(1091): isRilReset = false

Original issue reported on code.google.com by fan.ott...@gmail.com on 12 Mar 2012 at 2:06

GoogleCodeExporter commented 9 years ago
Could you please check for any missing files inside your APK? (by comparing it 
with my APK)

Original comment by samuel.a...@gmail.com on 12 Mar 2012 at 6:35

GoogleCodeExporter commented 9 years ago
Other than the source files (which are obviously different), everything else is 
present; I copied the library folder directly from FacePreview into my project 
(i.e. it should be the exact same)

In the libs, are we supposed to add only the /armeabi folder, or only 
/armeabi-v7a, or both? 

Original comment by fan.ott...@gmail.com on 12 Mar 2012 at 8:36

GoogleCodeExporter commented 9 years ago
The APK file should not contain any source files.. You are obviously doing 
something wrong here.

"/libs/armeabi-v7a/" should work, but try "/libs/armeabi/" as well, Android is 
so buggy... Refer to this page for the details: 
http://developer.android.com/sdk/ndk/overview.html

Original comment by samuel.a...@gmail.com on 12 Mar 2012 at 10:23

GoogleCodeExporter commented 9 years ago
Judging by the lack of feedback, I am assuming that this issue has been 
resolved, but please ask your questions on the mailing list if possible if you 
still have problems...

Incidentally, I have just released a new version of JavaCV, so you should try 
again with this new version...

Original comment by samuel.a...@gmail.com on 12 May 2012 at 12:06