Hi,
I hav the following code. I try to run it on android 2.2, with opencv
2.4.2, using the java API.

MatOfKeyPoint keypoints=new MatOfKeyPoint();
FeatureDetector det=FeatureDetector.create(FeatureDetector.SURF);
Mat im=Mat.zeros(100, 100, CvType.CV_32F);
det.detect(im, keypoints);

During the detect() function the application dies without any error message.

What's the problem? Any advice on debugging?

The logcat:

11-17 04:21:25.683: E/Sensors(5690): Open
/sys/devices/system/soc/soc0/zte_board_id_type success ,main_board_id = 0
,it is old version
11-17 04:21:25.733: E/Sensors(5690): Open
/sys/devices/system/soc/soc0/zte_board_id_type success ,main_board_id = 0
,it is old version
11-17 04:21:25.773: I/DEBUG(17708): *** *** *** *** *** *** *** *** *** ***
*** *** *** *** *** ***
11-17 04:21:25.773: I/DEBUG(17708): Build fingerprint:
'ZTE/P729T_VDF/blade/blade:2.2.2/FRF91/20110601.010210:user/release-keys'
11-17 04:21:25.773: I/DEBUG(17708): pid: 28596, tid: 28596 >>>
com.example.testerdroid <<<
11-17 04:21:25.773: I/DEBUG(17708): signal 11 (SIGSEGV), fault addr 00000000
11-17 04:21:25.773: I/DEBUG(17708): r0 00000002 r1 0023c578 r2 00002710
r3 00000000
11-17 04:21:25.773: I/DEBUG(17708): r4 0023c578 r5 7efc7428 r6 7efc7450
r7 00000000
11-17 04:21:25.773: I/DEBUG(17708): r8 7efc74a8 r9 2c31ac0c 10 00000000
fp 00000000
11-17 04:21:25.773: I/DEBUG(17708): ip 41134ded sp 7efc73c0 lr 41134e2b
pc 413c554c cpsr 60000030
11-17 04:21:25.783: E/Sensors(5690): Open
/sys/devices/system/soc/soc0/zte_board_id_type success ,main_board_id = 0
,it is old version
11-17 04:21:25.823: I/DEBUG(17708): #00 pc 003c554c
/data/data/com.example.testerdroid/lib/libopencv_java.so
11-17 04:21:25.823: I/DEBUG(17708): #01 lr 41134e2b
/data/data/com.example.testerdroid/lib/libopencv_java.so
11-17 04:21:25.823: I/DEBUG(17708): code around pc:
11-17 04:21:25.823: I/DEBUG(17708): 413c552c 9809d13f 4252220c 46911812
d12c4542
11-17 04:21:25.823: I/DEBUG(17708): 413c553c 230c9808 181b425b 45434699
4657d119
11-17 04:21:25.823: I/DEBUG(17708): 413c554c 4650683b 699a1c21 46941c33
47e01c2a
11-17 04:21:25.823: I/DEBUG(17708): 413c555c bc1cb012 46994690 bdf046a2
688a68cb
11-17 04:21:25.823: I/DEBUG(17708): 413c556c e78b435a 68b268f3 e79b435a
d1a64298
11-17 04:21:25.823: I/DEBUG(17708): code around lr:
11-17 04:21:25.823: I/DEBUG(17708): 41134e08 930c930d 9312930b 93109311
930f930e
11-17 04:21:25.823: I/DEBUG(17708): 41134e18 1c109313 466a991c 9d1eab0a
f2909415
11-17 04:21:25.823: I/DEBUG(17708): 41134e28 980ffb11 d0052800 42492101
eea4f3c3
11-17 04:21:25.823: I/DEBUG(17708): 41134e38 d0172801 98159a14 93122300
93109311
11-17 04:21:25.823: I/DEBUG(17708): 41134e48 6013930e 42a0930f f045d001
4668fecd
11-17 04:21:25.823: I/DEBUG(17708): stack:
11-17 04:21:25.823: I/DEBUG(17708): 7efc7380 00000000
11-17 04:21:25.823: I/DEBUG(17708): 7efc7384 2fdac054
/dev/ashmem/mspace/dalvik-heap/2 (deleted)
11-17 04:21:25.823: I/DEBUG(17708): 7efc7388 2fdb78f0
/dev/ashmem/mspace/dalvik-heap/2 (deleted)
11-17 04:21:25.823: I/DEBUG(17708): 7efc738c 2fdb78f0
/dev/ashmem/mspace/dalvik-heap/2 (deleted)
11-17 04:21:25.823: I/DEBUG(17708): 7efc7390 0000002c
11-17 04:21:25.823: I/DEBUG(17708): 7efc7394 2fdac018
/dev/ashmem/mspace/dalvik-heap/2 (deleted)
11-17 04:21:25.823: I/DEBUG(17708): 7efc7398 00000000
11-17 04:21:25.823: I/DEBUG(17708): 7efc739c 2aab82d0
/dev/ashmem/mspace/dalvik-heap/zygote/0 (deleted)
11-17 04:21:25.823: I/DEBUG(17708): 7efc73a0 2fdb78f0
/dev/ashmem/mspace/dalvik-heap/2 (deleted)
11-17 04:21:25.823: I/DEBUG(17708): 7efc73a4 000003e8
11-17 04:21:25.823: I/DEBUG(17708): 7efc73a8 000003e8
11-17 04:21:25.823: I/DEBUG(17708): 7efc73ac 6ca4708d
/system/lib/libdvm.so
11-17 04:21:25.823: I/DEBUG(17708): 7efc73b0 6ca903cc
/system/lib/libdvm.so
11-17 04:21:25.823: I/DEBUG(17708): 7efc73b4 6ca903cc
/system/lib/libdvm.so
11-17 04:21:25.823: I/DEBUG(17708): 7efc73b8 df002777
11-17 04:21:25.823: I/DEBUG(17708): 7efc73bc e3a070ad
11-17 04:21:25.823: I/DEBUG(17708): #00 7efc73c0 2fdb78f0
/dev/ashmem/mspace/dalvik-heap/2 (deleted)
11-17 04:21:25.823: I/DEBUG(17708): 7efc73c4 00000001
11-17 04:21:25.823: I/DEBUG(17708): 7efc73c8 00000000
11-17 04:21:25.823: I/DEBUG(17708): 7efc73cc 00000000
11-17 04:21:25.823: I/DEBUG(17708): 7efc73d0 00000000
11-17 04:21:25.823: I/DEBUG(17708): 7efc73d4 00000000
11-17 04:21:25.823: I/DEBUG(17708): 7efc73d8 00000000
11-17 04:21:25.823: I/DEBUG(17708): 7efc73dc 00000000
11-17 04:21:25.823: I/DEBUG(17708): 7efc73e0 00000000
11-17 04:21:25.823: I/DEBUG(17708): 7efc73e4 82ed8cb2
11-17 04:21:25.823: I/DEBUG(17708): 7efc73e8 00000000
11-17 04:21:25.833: I/DEBUG(17708): 7efc73ec 00000000
11-17 04:21:25.833: I/DEBUG(17708): 7efc73f0 00000208
11-17 04:21:25.833: I/DEBUG(17708): 7efc73f4 3235fcbd
/data/dalvik-cache/data@app@com.example.testerdroid-1.apk@classes.dex
11-17 04:21:25.833: I/DEBUG(17708): 7efc73f8 3236639b
/data/dalvik-cache/data@app@com.example.testerdroid-1.apk@classes.dex
11-17 04:21:25.833: I/DEBUG(17708): 7efc73fc 6fd15e29
/system/lib/libc.so
11-17 04:21:25.833: I/DEBUG(17708): 7efc7400 00000000
11-17 04:21:25.833: I/DEBUG(17708): 7efc7404 00139403 [heap]
11-17 04:21:25.843: E/Sensors(5690): Open
/sys/devices/system/soc/soc0/zte_board_id_type success ,main_board_id = 0
,it is old version
11-17 04:21:25.893: E/Sensors(5690): Open
/sys/devices/system/soc/soc0/zte_board_id_type success ,main_board_id = 0
,it is old version
11-17 04:21:25.943: E/Sensors(5690): Open
/sys/devices/system/soc/soc0/zte_board_id_type success ,main_board_id = 0
,it is old version
11-17 04:21:25.993: E/Sensors(5690): Open
/sys/devices/system/soc/soc0/zte_board_id_type success ,main_board_id = 0
,it is old version
11-17 04:21:26.053: E/Sensors(5690): Open
/sys/devices/system/soc/soc0/zte_board_id_type success ,main_board_id = 0
,it is old version
11-17 04:21:26.083: I/dun_service(93): The value returned from
dun_getusbmodemstate_fromsys is 1
11-17 04:21:26.083: I/dun_service(93): Post event 1
11-17 04:21:26.083: I/dun_service(93): received event: DUN_EVENT_USB_UNPLUG
11-17 04:21:26.083: I/dun_service(93): received event(DUN_EVENT_USB_UNPLUG)
in state(DUN_STATE_USB_UNPLUG)
11-17 04:21:26.083: I/dun_service(93): Ignoring the event
DUN_EVENT_USB_UNPLUG in USB_UNPLUG_STATE
11-17 04:21:26.083: I/dun_service(93): Moved to state(DUN_STATE_USB_UNPLUG)
11-17 04:21:26.103: E/Sensors(5690): Open
/sys/devices/system/soc/soc0/zte_board_id_type success ,main_board_id = 0
,it is old version
11-17 04:21:26.103: D/BatteryService(5690): updateBattery level:100
scale:100 status:2 health:2 present:true voltage: 4202 temperature: 410
technology: Li-ion AC powered:false USB powered:true icon:17302178
11-17 04:21:26.113: I/ActivityThread(5690): Receiving broadcast
android.intent.action.BATTERY_CHANGED to
com.android.server.PowerManagerService$BatteryReceiver@2ff5cd68
11-17 04:21:26.113: I/ActivityThread(5690): Receiving broadcast
android.intent.action.BATTERY_CHANGED to
com.android.internal.policy.impl.KeyguardUpdateMonitor$3@2fff4630
11-17 04:21:26.113: I/ActivityThread(5690): Receiving broadcast
android.intent.action.BATTERY_CHANGED to
com.android.server.connectivity.Tethering$StateReceiver@2ffef980
11-17 04:21:26.113: I/ActivityThread(5690): Receiving broadcast
android.intent.action.BATTERY_CHANGED to
com.android.server.NotificationManagerService$2@2fef2da8
11-17 04:21:26.113: I/ActivityThread(5690): Receiving broadcast
android.intent.action.BATTERY_CHANGED to
com.android.server.UiModeManagerService$4@30033510
11-17 04:21:26.113: I/ActivityThread(5690): Receiving broadcast
android.intent.action.BATTERY_CHANGED to
com.android.server.status.StatusBarPolicy$1@300609b8
11-17 04:21:26.113: I/ActivityThread(5690): Dispatching broadcast
android.intent.action.BATTERY_CHANGED to
com.android.server.PowerManagerService$BatteryReceiver@2ff5cd68
11-17 04:21:26.113: I/ActivityThread(5690): mRegistered=true
mCurOrdered=false
11-17 04:21:26.113: I/ActivityThread(5690): finish dispatching broadcast to
com.android.server.PowerManagerService$BatteryReceiver@2ff5cd68
11-17 04:21:26.113: I/ActivityThread(5690): Dispatching broadcast
android.intent.action.BATTERY_CHANGED to
com.android.internal.policy.impl.KeyguardUpdateMonitor$3@2fff4630
11-17 04:21:26.113: I/ActivityThread(5690): mRegistered=true
mCurOrdered=false
11-17 04:21:26.113: D/KeyguardUpdateMonitor(5690): received broadcast
android.intent.action.BATTERY_CHANGED
11-17 04:21:26.113: I/ActivityThread(5690): finish dispatching broadcast to
com.android.internal.policy.impl.KeyguardUpdateMonitor$3@2fff4630
11-17 04:21:26.113: I/ActivityThread(5690): Dispatching broadcast
android.intent.action.BATTERY_CHANGED to
com.android.server.connectivity.Tethering$StateReceiver@2ffef980
11-17 04:21:26.113: I/ActivityThread(5690): mRegistered=true
mCurOrdered=false
11-17 04:21:26.113: D/KeyguardUpdateMonitor(5690): handleBatteryUpdate
11-17 04:21:26.123: I/ActivityThread(5690): Receiving broadcast
android.intent.action.BATTERY_CHANGED to
com.google.android.location.NetworkLocationProvider$1@300d9a70
11-17 04:21:26.123: I/ActivityThread(5770): Receiving broadcast
android.intent.action.BATTERY_CHANGED to
com.android.phone.BluetoothHandsfree$BluetoothPhoneState$2@2fdd97f8
11-17 04:21:26.123: I/ActivityThread(5770): Dispatching broadcast
android.intent.action.BATTERY_CHANGED to
com.android.phone.BluetoothHandsfree$BluetoothPhoneState$2@2fdd97f8
11-17 04:21:26.123: I/ActivityThread(5770): mRegistered=true
mCurOrdered=false
11-17 04:21:26.123: I/ActivityThread(5770): finish dispatching broadcast to
com.android.phone.BluetoothHandsfree$BluetoothPhoneState$2@2fdd97f8
11-17 04:21:26.133: I/ActivityThread(28202): Receiving broadcast
android.intent.action.BATTERY_CHANGED to z.p@2fe7a618
11-17 04:21:26.133: I/ActivityThread(28202): Dispatching broadcast
android.intent.action.BATTERY_CHANGED to z.p@2fe7a618
11-17 04:21:26.133: I/ActivityThread(28202): mRegistered=true
mCurOrdered=false
11-17 04:21:26.133: I/ActivityThread(28202): finish dispatching broadcast
to z.p@2fe7a618
11-17 04:21:26.153: E/Sensors(5690): Open
/sys/devices/system/soc/soc0/zte_board_id_type success ,main_board_id = 0
,it is old version
11-17 04:21:26.163: E/Tethering(5690): active iface (usb0) reported as
added, ignoring
11-17 04:21:26.163: I/ActivityThread(5690): finish dispatching broadcast to
com.android.server.connectivity.Tethering$StateReceiver@2ffef980
11-17 04:21:26.163: I/ActivityThread(5690): Dispatching broadcast
android.intent.action.BATTERY_CHANGED to
com.android.server.NotificationManagerService$2@2fef2da8
11-17 04:21:26.163: I/ActivityThread(5690): mRegistered=true
mCurOrdered=false
11-17 04:21:26.163: I/ActivityThread(5690): finish dispatching broadcast to
com.android.server.NotificationManagerService$2@2fef2da8
11-17 04:21:26.163: I/ActivityThread(5690): Dispatching broadcast
android.intent.action.BATTERY_CHANGED to
com.android.server.UiModeManagerService$4@30033510
11-17 04:21:26.163: I/ActivityThread(5690): mRegistered=true
mCurOrdered=false
11-17 04:21:26.163: I/ActivityThread(5690): finish dispatching broadcast to
com.android.server.UiModeManagerService$4@30033510
11-17 04:21:26.163: I/ActivityThread(5690): Dispatching broadcast
android.intent.action.BATTERY_CHANGED to
com.android.server.status.StatusBarPolicy$1@300609b8
11-17 04:21:26.163: I/ActivityThread(5690): mRegistered=true
mCurOrdered=false
11-17 04:21:26.163: D/StatusBarPolicy(5690):
StatusBarPolicy:mIntentReceiver
action=android.intent.action.BATTERY_CHANGED
11-17 04:21:26.163: I/ActivityThread(5690): finish dispatching broadcast to
com.android.server.status.StatusBarPolicy$1@300609b8
11-17 04:21:26.163: I/ActivityThread(5690): Dispatching broadcast
android.intent.action.BATTERY_CHANGED to
com.google.android.location.NetworkLocationProvider$1@300d9a70
11-17 04:21:26.163: I/ActivityThread(5690): mRegistered=true
mCurOrdered=false
11-17 04:21:26.163: I/ActivityThread(5690): finish dispatching broadcast to
com.google.android.location.NetworkLocationProvider$1@300d9a70
11-17 04:21:26.203: I/ActivityManager(5690): Process
com.example.testerdroid (pid 28596) has died.
11-17 04:21:26.203: W/WindowManager(5690): updateFocusedWindowLocked
newFocus=null mode=0 mCurrentFocus = null



--

Search Discussions

  • Alexander Smorkalov at Nov 19, 2012 at 9:21 am
    Hello Dávid Pásztor,

    Can you create issue on bug
    tracker<http://code.opencv.org/projects/opencv/issues>.
    Please write you device model, Android version and your build environment
    features. Official OpenCV 2.4.2 SDK for Android does not include nonfree
    module due legal issues.

    --
  • Dávid Pásztor at Nov 21, 2012 at 10:27 am
    I am using a ZTE Blade phone. Are you sure, that this is a bug? I'm a
    newbie...
    On Monday, November 19, 2012 10:21:11 AM UTC+1, Alexander Smorkalov wrote:

    Hello Dávid Pásztor,

    Can you create issue on bug tracker<http://code.opencv.org/projects/opencv/issues>.
    Please write you device model, Android version and your build environment
    features. Official OpenCV 2.4.2 SDK for Android does not include nonfree
    module due legal issues.
    --
  • Andrey Pavlenko at Nov 21, 2012 at 2:21 pm
    Actually this is a known issue:
    the publicly distributed OpenCV4Android SDK doesn't include SURF due to
    legal reason (it's patented), but due to a bug in Java API code it crashes
    with SEGV instead of throwing an NotImplemented exception.
    So my suggestions are either use ORB instead of SURF or rebuild OpenCV for
    Android from sources including the 'nonfree' module containing SURF.

    --

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupandroid-opencv @
categoriesandroid
postedNov 19, '12 at 8:06a
activeNov 21, '12 at 2:21p
posts4
users3
websiteandroid.com

People

Translate

site design / logo © 2018 Grokbase