Search found 28 matches
- Wed Aug 14, 2019 7:54 pm
- Forum: Graphics programming
- Topic: SDL_CreateWindow() fails on second call
- Replies: 1
- Views: 1591
SDL_CreateWindow() fails on second call
Hi all, so here is the situation. The code base I am working on currently is nearly identical to the code base here: https://github.com/vurtun/nuklear/tree/master/demo/sdl_opengles2. What I would like to do is within the same instance of the program fully initialize and delete an SDL+GLES instance t...
- Wed Aug 14, 2019 7:43 pm
- Forum: OpenGLES
- Topic: glGetShaderInfoLog is empty
- Replies: 6
- Views: 4105
Re: glGetShaderInfoLog is empty
What is in the vertex and fragment shader files you are compiling ? Are you sure there is any source code on the second run ? It's not getting deleted after the first time is it ? PeterO Okay minor update. I tried outputting glGetString(GL_VERSION) and I noticed on the second run that it outputted ...
- Wed Aug 14, 2019 7:16 pm
- Forum: OpenGLES
- Topic: glGetShaderInfoLog is empty
- Replies: 6
- Views: 4105
Re: glGetShaderInfoLog is empty
What is in the vertex and fragment shader files you are compiling ? Are you sure there is any source code on the second run ? It's not getting deleted after the first time is it ? PeterO Here is the exact source code I am using: https://github.com/vurtun/nuklear/blob/master/demo/sdl_opengles2/nukle...
- Wed Aug 14, 2019 6:51 pm
- Forum: OpenGLES
- Topic: glGetShaderInfoLog is empty
- Replies: 6
- Views: 4105
Re: glGetShaderInfoLog is empty
My equivalent code is below. Only difference I can see is that I pass "NULL" for the length pointer when calling glGetShaderInfoLog glCompileShader(shaderId); glGetShaderiv(shaderId,GL_COMPILE_STATUS,&compiledOk ); if(compiledOk == GL_FALSE) { GLint logLength; glGetShaderiv(shaderId,G...
- Wed Aug 14, 2019 12:14 am
- Forum: OpenGLES
- Topic: glGetShaderInfoLog is empty
- Replies: 6
- Views: 4105
glGetShaderInfoLog is empty
Hi all, I have been looking for a while for a solution to this problem but I cannot find it. The code base I am working on currently is nearly identical to the code base here: https://github.com/vurtun/nuklear/tree/master/demo/sdl_opengles2. What I would like to do is within the same instance of the...
- Fri Aug 09, 2019 9:00 pm
- Forum: OpenGLES
- Topic: Overlay OpenGLES and MMAL h264 decoder
- Replies: 4
- Views: 3681
Re: Overlay OpenGLES and MMAL h264 decoder
Wow, we posted our topics at fairly similar times! There must be a solution to this... maybe @6by9 can shed some light here
- Fri Aug 09, 2019 8:43 pm
- Forum: OpenGLES
- Topic: Overlay OpenGLES and MMAL h264 decoder
- Replies: 4
- Views: 3681
Re: Overlay OpenGLES and MMAL h264 decoder
A good start is probably to take a look at the output of `vcgencmd dispmanx_list`. It'll show your the arrangement of layers. Oh cool utility! Is there anyway to set the layer of OpenGLES? Anyway to set the layer of MMAL? Anyway to set the background of OpenGLES to transparent to show the underlyin...
- Fri Aug 09, 2019 8:21 pm
- Forum: OpenGLES
- Topic: Overlay OpenGLES and MMAL h264 decoder
- Replies: 4
- Views: 3681
Overlay OpenGLES and MMAL h264 decoder
Hi all! So I have the following complex situation I need help resolving. I want to overlay graphics in a hardware accelerated fashion on top of an h264 video stream displayed on a raspberry PI. I built an MMAL h264 decoder based on this code here: https://github.com/raspberrypi/userland/blob/master/...
- Fri Aug 09, 2019 7:42 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
IL is such a pain in the neck as an API that I don't want to expend what is going to be a considerable amount of time to dig into the problem you're seeing. MMAL is a far more maintainable and understandable API, therefore I would put the time in should you encounter an issue using it. https://gith...
- Wed Jul 31, 2019 8:44 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
Yeah it did sound too good to be true. Upon looking at OpenVG issue #68 it does not appear related. Sure, VideoCore can freeze up when stress-tested, but the userspace library shouldn't do a rogue memory read even when things are stuck. 6by9's main advice was to stop using IL and just use MMAL so y...
- Mon Jul 29, 2019 9:07 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
Well what other ways are there to render UI components ontop of an h264 stream then with IL and MMAL? IL or MMAL, not IL and MMAL. They have the same functionality, so why use both? I'm generally happy to support MMAL as it is a far simpler API to handle than IL with all the weird callbacks. I have...
- Mon Jul 29, 2019 8:59 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
I have horrible news. They system just crashed again. It seems to be able to survive a bit longer without the OpenVG interaction. But it has crashed in the same exact manner as before. Here's what it says in gdb (gdb) backtrace full #0 0x751f30f0 in completion_thread () at /opt/vc/lib/libvchiq_arm.s...
- Mon Jul 29, 2019 5:52 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
Can I run ilclient and SDL2 at the same time? To have them overlay eachother almost?
- Fri Jul 26, 2019 5:04 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
Well what other ways are there to render UI components ontop of an h264 stream then with IL and MMAL? IL or MMAL, not IL and MMAL. They have the same functionality, so why use both? I'm generally happy to support MMAL as it is a far simpler API to handle than IL with all the weird callbacks. I have...
- Fri Jul 26, 2019 4:52 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
The overall intent of the application is a remote desktop application. So I want to play an h264 stream and I want to be able to render UI elements ontop of it. (mouse, settings button etc). But why the mishmash of IL and MMAL? Do you have any suggestions on a good replacement for openvg? I want a ...
- Fri Jul 26, 2019 4:47 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
Looking at the backtraces you're mixing MMAL and IL? Why? What is the overall intent of this application? They should co-exist, but I can't say for definite that there aren't interactions. And now you're saying you're using VG too? Wowsers, far too many variables to try and track down any lurking i...
- Fri Jul 26, 2019 3:50 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
Okay I think I just made some fairly significant progress. I am using both ilclient and openvg at the same time in my program. I decided to replace openvg with a simple /dev/fb0 implementation to do my rendering (I render objects along side the h264 stream). After this the system does not segfault!!...
- Thu Jul 25, 2019 11:10 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
Tested the memory, for some reason no number below 128 works. There don't seem to be any errors just a black screen. Is there any took I can use to watch GPU memory usage for the raspberry PI?
- Thu Jul 25, 2019 8:27 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
Some thoughts: * Let's cross-link the GitHub ticket while we're at it: https://github.com/raspberrypi/userland/issues/563 * And the Stack Exchange one: https://raspberrypi.stackexchange.com/questions/100967/strange-segfault-after-several-hours-of-running-program * You may want to use the 'Edit' but...
- Thu Jul 25, 2019 5:54 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
VCHIQ is the RPC between the ARM and the VideoCore VPU. The completition thread handles the callbacks from the VPU informing the ARM that something has happened. The completition thread then passes this off to the relevant VCHIQ client (most likely ilcs and ilclient in this case). Sorry, without fu...
- Thu Jul 25, 2019 5:43 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
I also have the output of "thread apply all bt" (gdb) thread apply all bt Thread 206345 (Thread 0x6b5fdb00 (LWP 8906)): #0 0x7533040c in __lll_lock_wait_private (futex=futex@entry=0x753957d4 <main_arena>) at ./lowlevellock.c:33 #1 0x752b9ec8 in reused_arena (avoid_arena=0x0) at arena.c:839...
- Thu Jul 25, 2019 5:31 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
Okay small update. Here's the backtrace that is showing on gdb when that crash happens: Thread 3 "VCHIQ completio" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x6fbfeb00 (LWP 23464)] 0x751c60f0 in completion_thread () from /opt/vc/lib/libvchiq_arm.so (gdb) backtrace #...
- Wed Jul 24, 2019 5:56 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
So on getting hello_video to have the same exact issue I am seeing here I am not sure. As of this minute I have a begun a test now but it will take at least a full day for me to know for sure. I understand without the code base it will be difficult to debug this issue... but considering the time inv...
- Tue Jul 23, 2019 9:02 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
I just read through the link you posted. Looks like there's also a program called KODI that also has some segfaults related to this mysterious "completion_thread()". But nothing really constructive. I have just posted this issue to the github as well. How can I link @6by9 in this thread? Y...
- Tue Jul 23, 2019 4:09 pm
- Forum: Graphics programming
- Topic: Strange segfault after several hours of running program
- Replies: 30
- Views: 5830
Re: Strange segfault after several hours of running program
Do you know at all under what circumstances "completion_thread()" is called?