Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8059327
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T09:38:27+00:00 2026-06-05T09:38:27+00:00

My app, heavily based on the OpenCV sample (Sample 2 with camera) links to

  • 0

My app, heavily based on the OpenCV sample (Sample 2 with camera) links to OpenCV 2.4.0. After trouble-free work for a month or so I suddenly suffered from the dreaded “Dalvik error 1” problem. When the usual fixes didn’t work, I decided to build a new project from scratch with the same source files hoping that would solve the problem…

Well it builds, but crashes on launch. Here’s the console content:

06-07 14:01:01.383: D/dalvikvm(20915): Trying to load lib /data/data/barry.opencvdemo/lib/libopencv_java.so 0x4051c988
06-07 14:01:02.204: D/dalvikvm(20915): Added shared lib /data/data/barry.opencvdemo/lib/libopencv_java.so 0x4051c988
06-07 14:01:02.354: D/AndroidRuntime(20915): Shutting down VM
06-07 14:01:02.354: W/dalvikvm(20915): threadid=1: thread exiting with uncaught exception (group=0x4001d5a0)
06-07 14:01:02.374: E/AndroidRuntime(20915): FATAL EXCEPTION: main
06-07 14:01:02.374: E/AndroidRuntime(20915): java.lang.RuntimeException: Unable to start activity ComponentInfo{barry.opencvdemo/barry.opencvdemo.Sample2NativeCamera}: java.lang.NullPointerException
06-07 14:01:02.374: E/AndroidRuntime(20915):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1872)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1893)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at android.app.ActivityThread.access$1500(ActivityThread.java:135)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1054)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at android.os.Handler.dispatchMessage(Handler.java:99)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at android.os.Looper.loop(Looper.java:150)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at android.app.ActivityThread.main(ActivityThread.java:4385)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at java.lang.reflect.Method.invokeNative(Native Method)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at java.lang.reflect.Method.invoke(Method.java:507)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:849)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:607)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at dalvik.system.NativeStart.main(Native Method)
06-07 14:01:02.374: E/AndroidRuntime(20915): Caused by: java.lang.NullPointerException
06-07 14:01:02.374: E/AndroidRuntime(20915):    at barry.opencvdemo.Sample2NativeCamera.onCreate(Sample2NativeCamera.java:47)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1072)
06-07 14:01:02.374: E/AndroidRuntime(20915):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1836)
06-07 14:01:02.374: E/AndroidRuntime(20915):    ... 11 more

Everything seems to be in the right place and with the right names, but something is not working. Is the above enough for someone to point out something obvious I’m missing or should I post some source code? The code itself was working… it’s something about the settings for the build or the link I fear.

When the gods do something about the whole Dalvik Error 1 business I for one will be very happy.

Many thanks for any suggestions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T09:38:28+00:00Added an answer on June 5, 2026 at 9:38 am

    put a try catch block around the code in onCreate and put a breakpoint in the catch. You will catch the exception. From the exception log it looks like you are using an object/variable that is not yet initialized.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got an app that is heavily based on remote images. They are usually
I have an iPhone app that heavily relies on the OpenCV library; as such,
I want to create an app based heavily on a top down manipulation of
I have an app that's heavily form-based. Many of the forms are constructed exactly
Currently I run a web app that heavily relies on short URLs that link
I've a iPhone App that relies heavily of TableViews and SQLite database. Where do
I have this c# web app that relies heavily on two dll files that
I am testing my app in two different devices. My app is relies heavily
I am working on a new rails 3.2 company management app which relies heavily
I'm building a web app that relies quite heavily on email notification/responses. I obviously

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.