" Segmentation Fault "

by raj.10788 » Mon, 13 Apr 2009 21:43:18 GMT


Sponsored Links
 Hi,

I built the Android Built from the Android Source code.

After the I tried to launch the emulator with the following command..

#~/mydroid/out/hots/linux-z86/bin/emulator -system /out/target/product/
generic -data /out/target/product/generic -kernel /prebuilt/andorid-
arm/kernel/kernel-qemu

Segmentation Fault

#_

This is the output when I run this command..

Some pointers and Input...???/


tnx
raj
--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



" Segmentation Fault "

by hari uppalapati » Tue, 14 Apr 2009 05:37:08 GMT


 Try using the following command.

#out/host/linux-x86/bin/emulator -system out/target/product/generic/ -kernel
prebuilt/android-arm/kernel/kernel-qemu
if you get error Like  "cannot find userdata-qemu.img" export
ANDROID_PRODUCT_OUT (as given below) and try again.

export ANDROID_PRODUCT_OUT=/pathtomyandroid/out/target/product/generic

regards
Haritha






--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---


Sponsored Links


" Segmentation Fault "

by rk » Tue, 14 Apr 2009 16:45:12 GMT


 Hi Haritha,

Thanks for the valuable reply....

I can able to launch the eulator with your solution. .....

thanks
raj




--~--~---------~--~----~------------~-------~--~----~

-~----------~----~----~----~------~----~------~--~---



Other Threads

1. using shape as my background never show the color I specify

Hi,

i specify the following xml as my background for my view. It shows the
oval, but the color is always white.

I have played around with the android:color field, but the color never
changes, it is always white.
I tried "#FF0000", "#ff0000", "#00ff0000"
Any idea?

Thank you.


<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="oval"
    android:color="#FF0000"
</shape>

--~--~---------~--~----~------------~-------~--~----~

2. Slow GPS updates

Hi, I am developing a small app that works as a speedometer with a
build in histogram.

But it is quite unresponsive, I test it by driving in my car, and when
i go from 80 to 0 it takes about 4-6 seconds before my needle is
updated.

For simple outlier removal, i use a 1x3 median filter on my estimated
speed the speed. Wich obviously will give me a delay one 1 sample.

******* Here's the real question :) ******
I thought i might get updates every second, and thus a delay of 2
seconds, wich wouldn't be to bad. but is GPS really that slow? or am i
doing something completely wrong?
*******

I have registrered a listener like so:
  mLocationManager.requestLocationUpdates(providers.get(0), 0, 0,
mLocListener);

in the listener i estimate the speed:
  public void onLocationChanged(Location location)
  {
    if (mLastLocation != null)
    {
      if (location.hasSpeed() && mLastLocation.hasSpeed())
      {
        float speed = (location.getSpeed() + mLastLocation.getSpeed
()) / 2; // Get speed in m/s
        mSpeedFilter.add(speed);
      } else
      {
        float distance = mLastLocation.distanceTo(location);
        float dt = SystemClock.uptimeMillis() - mLastTimestamp;
        if (dt > 0)
        {
          float speed = distance / dt * 1000; // calculate speed in m/
s
          mSpeedFilter.add(speed);
        }
      }
      if (mNumSamplesToIgnoreAfterStartup == 0)
      {
        mApproximatedSpeed = mSpeedFilter.getMedianValue();
      }
      else
      {
        --mNumSamplesToIgnoreAfterStartup;
      }
    }
    mLastLocation = location;
    mLastTimestamp = SystemClock.uptimeMillis();
  }

to have a steady update of my speedometer, I use a timerTask to poll
the listener for the last estimated result, and updates my speedometer
view.

The timer task is setup like:
  TimerTask task = new HMGpsPoller(mLocListener, mHistometerView);
  mPollGpsTimer = new Timer();
  mPollGpsTimer.scheduleAtFixedRate(task, new Date(), 500);

and the run method of my task:
  @Override
  public void run()
  {
    boolean dataReady = mGpsListener.dataReady();
    boolean signalCurrent = mGpsListener.getSignalAge() <
MaxSignalAge;

    // Print status for debug purpose
    Log.i(TAG, String.format("Run, dataReady (%b), signal current
(%b)", dataReady, signalCurrent ));

    if ( dataReady && signalCurrent)
    {
      mHMView.registerSpeed( mGpsListener.getApproximatedSpeed() );
    }
  }
--~--~---------~--~----~------------~-------~--~----~

3. ExtractEditText and InputServiceManager's Context

4. ambiguous column name: _id when querying the contacts list

5. Sensor getting ArrayIndexOutOfBoundsException in onSensorChanged(int, float[]) from SensorListener

6. how to play video from raw folder?

7. Application & ApplicationContext