Cant find the solution for this GLSurfaceView error

by satish bhoyar » Wed, 03 Feb 2010 17:04:48 GMT


Sponsored Links
 Hi all,

I have a code for GLSurfaceView which runs fine with sdk 1.5. I am trying to
use it in the sdk 2.0 I am getting following error - >
"*Application called a GL11  Pointer method with an Indirect Buffer*"

This is the line at which the error is coming,
*gl.glVertexPointer(3, GL10.GL_FLOAT, 0, slicesBuffers[i]);

*Please anybody explains me why this error comes & how to solve it?

or any other  suggestion is also good for me.

Thanks,
SaT

--



Cant find the solution for this GLSurfaceView error

by satish bhoyar » Wed, 03 Feb 2010 17:05:03 GMT


 Hi all,

I have a code for GLSurfaceView which runs fine with sdk 1.5. I am trying to
use it in the sdk 2.0 I am getting following error - >
"*Application called a GL11  Pointer method with an Indirect Buffer*"

This is the line at which the error is coming,
*gl.glVertexPointer(3, GL10.GL_FLOAT, 0, slicesBuffers[i]);

*Please anybody explains me why this error comes & how to solve it?

or any other  suggestion is also good for me.

Thanks,
SaT

--


Sponsored Links


Cant find the solution for this GLSurfaceView error

by MrChaz » Fri, 05 Feb 2010 01:24:23 GMT


 As the message suggests you're using a direct buffer to store you
vertex and or texture co-ordinates.
You need to use allocateDirect() instead.  Even though you can do it
the other way in 1.5 you shouldn't because it can cause random crashes




--



Other Threads

1. Music Application crashes on Beagleboard-Xm-A2

Hi,

I have been trying out Android Port for Beagleboard- XM-(A2) board
(from rowboat - http://code.google.com/p/rowboat/).
I see Music Application is crashing on start up. But sound is enabled,
Videos are played properly with sound.

Contacts,Camera and Phone applications are also behaving like this.

Please help me in understanding what the problem is:

Logcat Details:
---------------------

#
logcat
--------- beginning of /dev/log/
main
W/KeyCharacterMap( 1257): No keyboard for id
65536
W/KeyCharacterMap( 1257): Using default keymap: /system/usr/keychars/
qwerty.kcm.
bin
--------- beginning of /dev/log/
system
W/InputManagerService(  863): Starting input on non-focused client
com.android.i
nternal.view.iinputmethodclient$stub$pr...@441aad08 (uid=10009
pid=1257)
I/ActivityManager(  863): Starting activity: Intent
{ act=android.intent.action.
MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000
cmp=com.android.music
/.MusicBrowserActivity }
I/ActivityManager(  863): Starting activity: Intent
{ act=android.intent.action.
PICK dat= typ=vnd.android.cursor.dir/artistalbum flg=0x4000000
cmp=com.android.m
usic/.ArtistAlbumBrowserActivity (has
extras) }
W/ResourceType( 1200): Failure getting entry for 0x7f030008 (t=2 e=8)
in package
 0:
0xffffffb5
D/AndroidRuntime( 1200): Shutting down
VM
W/dalvikvm( 1200): threadid=1: thread exiting with uncaught exception
(group=0x4
001d7c8)
E/AndroidRuntime( 1200): FATAL EXCEPTION:
main
E/AndroidRuntime( 1200): java.lang.RuntimeException: Unable to start
activity Co
mponentInfo{com.android.music/
com.android.music.ArtistAlbumBrowserActivity}: and
roid.content.res.Resources$NotFoundException: Resource ID
#0x7f030008
E/AndroidRuntime( 1200):        at
android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:
2663)
E/AndroidRuntime( 1200):        at
android.app.ActivityThread.handleLaunchActivi
ty(ActivityThread.java:
2679)
E/AndroidRuntime( 1200):        at android.app.ActivityThread.access
$2300(Activi
tyThread.java:
125)
E/AndroidRuntime( 1200):        at android.app.ActivityThread
$H.handleMessage(Ac
tivityThread.java:
2033)
E/AndroidRuntime( 1200):        at
android.os.Handler.dispatchMessage(Handler.ja
va:
99)
E/AndroidRuntime( 1200):        at android.os.Looper.loop(Looper.java:
123)
E/AndroidRuntime( 1200):        at
android.app.ActivityThread.main(ActivityThrea
d.java:
4627)
E/AndroidRuntime( 1200):        at
java.lang.reflect.Method.invokeNative(Native
Method)
E/AndroidRuntime( 1200):        at
java.lang.reflect.Method.invoke(Method.java:5
21)
E/AndroidRuntime( 1200):        at com.android.internal.os.ZygoteInit
$MethodAndA
rgsCaller.run(ZygoteInit.java:
868)
E/AndroidRuntime( 1200):        at
com.android.internal.os.ZygoteInit.main(Zygot
eInit.java:
626)
E/AndroidRuntime( 1200):        at
dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 1200): Caused by: android.content.res.Resources
$NotFoundExcept
ion: Resource ID
#0x7f030008
E/AndroidRuntime( 1200):        at
android.content.res.Resources.getValue(Resour
ces.java:
892)
E/AndroidRuntime( 1200):        at
android.content.res.Resources.loadXmlResource
Parser(Resources.java:
1869)
E/AndroidRuntime( 1200):        at
android.content.res.Resources.getLayout(Resou
rces.java:
731)
E/AndroidRuntime( 1200):        at
android.view.LayoutInflater.inflate(LayoutInf
later.java:
318)
E/AndroidRuntime( 1200):        at
android.view.LayoutInflater.inflate(LayoutInf
later.java:
276)
E/AndroidRuntime( 1200):        at
com.android.internal.policy.impl.PhoneWindow.
setContentView(PhoneWindow.java:
198)
E/AndroidRuntime( 1200):        at
android.app.Activity.setContentView(Activity.
java:
1647)
E/AndroidRuntime( 1200):        at
com.android.music.ArtistAlbumBrowserActivity.
onCreate(ArtistAlbumBrowserActivity.java:
105)
E/AndroidRuntime( 1200):        at
android.app.Instrumentation.callActivityOnCre
ate(Instrumentation.java:
1047)
E/AndroidRuntime( 1200):        at
android.app.ActivityThread.performLaunchActiv
ity(ActivityThread.java:
2627)
E/AndroidRuntime( 1200):        ... 11
more
W/ActivityManager(  863):   Force finishing activity
com.android.music/.ArtistAl
bumBrowserActivity
W/ActivityManager(  863): Activity pause timeout for
HistoryRecord{4415d568 com.
android.music/.ArtistAlbumBrowserActivity}
I/Process ( 1200): Sending signal. PID: 1200 SIG:
9
I/ActivityManager(  863): Process com.android.music (pid 1200) has
died.
W/ActivityManager(  863): Service crashed 2 times, stopping:
ServiceRecord{44209
5e8
com.android.music/.MediaPlaybackService}
W/InputManagerService(  863): Window already focused, ignoring focus
gain of: co
m.android.internal.view.IInputMethodClient$Stub
$pr...@441866d0



-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Idea

I have few great idea about in applications for android market but I do know
know how to code. I like to know if I can sell my ideas or have someone
develope them for me and share the profit or however it works

-- 

3. How to creating Excel like sheet in Android with ListView / Tablelayout

4. How to Create ListView within ListView

5. An external library needs org.apache.commons.httpclient instead of org.apache.commons.http.client

6. XML encryption

7. UI troubles with Android 2.2