Lock_layer error intermittently when stopping and starting a opengl SurfaceView

by Michael Angel » Mon, 27 Jul 2009 06:45:23 GMT


Sponsored Links
 I'm having the same issue too when pressing home to leave the app, and
going back into the app. Except sometimes when I compile, it'll
regenerate without freezing but have a broken texture. Other times
it'll just freeze without fullscreening, but will change screen
orientation. Eventually if it does freeze, it asks if I want to force
close.

And this broken texture problem is also weird. If I slide out/in the
keyboard with my G1, the app gets restarted and the texture is fixed.
Also if I hit home, slide in/out the keyboard, and then go back into
the app, I don't have an issue. This is REALLY weird, but no one seems
to know what the problem is.

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



Other Threads

1. How do I add the "Android" directory in Eclipse after importing

In Eclipse, after I import an existing project, I don't see the
"Android 1.5" directory.
I see the libs, src, gen, etc, but I don't know how to get the Android
one.

Q: How do I add that?

Any help appreciated!
-jim

-- 

2. The application has stopped unexpectedly

i have two class as trial.java and ImageWoLab0.java(Image without
lable 0).When i run my application i am getting error as : The
application has stopped unexpectedly!!

public void onClick(View v)
{
    switch (v.getId())
    {
    case R.id.btnSequence:
        Intent intent1 = new Intent();
        intent1.setClass(this,ImageWoLab0.class);       /*To open new
Screen/Activity */
                                                                            /
*Passing a key/value(Condition) to Activity2.class*/
        startActivity(intent1);                     /*open the new
screen/Activity*/
        break;

    case R.id.btnVideo:
        Intent intent2 = new Intent();
        intent2.setClass(this,Activity2.class);
        intent2.putExtra("String_key", "value1");
        startActivity(intent2);
        break;

    case R.id.btnInfo:
        Intent intent3 = new Intent();
        intent3.setClass(this,Activity2.class);

        intent3.putExtra("String_key", "value2");
        startActivity(intent3);
        break;
    }
othar class as:

public class ImageWoLab0 extends Activity implements OnClickListener
{ private static String TAG = "tag";

@Override
public void onCreate(Bundle savedInstanceState)
{
    Log.i(TAG, "abc");
    super.onCreate(savedInstanceState);
    setContentView(R.layout.image0);
    ImageButton o1 = (ImageButton) findViewById(R.id.next);
    o1.setOnClickListener(this);

}

@Override
public void onClick(View v)
{
    switch (v.getId())
    {
    case R.id.next:
        Intent intent1 = new Intent();
        intent1.setClass(this,ImageWoLab1.class);
        startActivity(intent1);
        break;


    }

}
}

i have check image in drawable folder,manifest file(activity
entry),layout file properly.i have clean again and again even rebuild
again still the same messageis displaying.i am getting log as:sorry if
i have not send log in right format(first time i am using logcat):

11-08 12:48:55.084: INFO/tag(334): abc
11-08 12:48:55.154: WARN/dalvikvm(334): threadid=1: thread exiting
with uncaught exception (group=0x4001d800) 11-08 12:48:55.204: ERROR/
AndroidRuntime(334): FATAL EXCEPTION: main 11-08 12:48:55.204: ERROR/
AndroidRuntime(334): java.lang.RuntimeException: Unable to start
activity ComponentInfo{com.example.Trial/
com.example.Trial.ImageWoLab0}: java.lang.ClassCastException:
android.widget.ImageView 11-08 12:48:55.204: ERROR/
AndroidRuntime(334): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2663) 11-08 12:48:55.204: ERROR/AndroidRuntime(334): at
android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:
2679) 11-08 12:48:55.204: ERROR/AndroidRuntime(334): at
android.app.ActivityThread.access$2300(ActivityThread.java:125) 11-08
12:48:55.204: ERROR/AndroidRuntime(334): at android.app.ActivityThread
$H.handleMessage(ActivityThread.java:2033) 11-08 12:48:55.204: ERROR/
AndroidRuntime(334): at
android.os.Handler.dispatchMessage(Handler.java:99) 11-08
12:48:55.204: ERROR/AndroidRuntime(334): at
android.os.Looper.loop(Looper.java:123) 11-08 12:48:55.204: ERROR/
AndroidRuntime(334): at
android.app.ActivityThread.main(ActivityThread.java:4627) 11-08
12:48:55.204: ERROR/AndroidRuntime(334): at
java.lang.reflect.Method.invokeNative(Native Method) 11-08
12:48:55.204: ERROR/AndroidRuntime(334): at
java.lang.reflect.Method.invoke(Method.java:521) 11-08 12:48:55.204:
ERROR/AndroidRuntime(334): at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:868) 11-08 12:48:55.204:
ERROR/AndroidRuntime(334): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 11-08
12:48:55.204: ERROR/AndroidRuntime(334): at
dalvik.system.NativeStart.main(Native Method) 11-08 12:48:55.204:
ERROR/AndroidRuntime(334): Caused by: java.lang.ClassCastException:
android.widget.ImageView 11-08 12:48:55.204: ERROR/
AndroidRuntime(334): at
com.example.Trial.ImageWoLab0.onCreate(ImageWoLab0.java:21) 11-08
12:48:55.204: ERROR/AndroidRuntime(334): at
android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
1047) 11-08 12:48:55.204: ERROR/AndroidRuntime(334): at
android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
2627) 11-08 12:48:55.204: ERROR/AndroidRuntime(334): ... 11 more 11-08
12:48:55.264: WARN/ActivityManager(61): Force finishing activity
com.example.Trial/.ImageWoLab0 11-08 12:48:55.274: WARN/
ActivityManager(61): Force finishing activity com.example.Trial/.Trial

-- 

3. How can I Launch PPPD after RIL dails out in Froyo

4. aplikasi android

5. ListView.setOnItemClickListener() fails to catch selection events for custom list items

6. OOT: WTB HTC Desire yang ini

7. Custom checkable view