Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation Fault on running most of the examples #8

Open
siliangZ opened this issue Jun 21, 2024 · 3 comments
Open

Segmentation Fault on running most of the examples #8

siliangZ opened this issue Jun 21, 2024 · 3 comments

Comments

@siliangZ
Copy link

siliangZ commented Jun 21, 2024

Platform: Avnet UltraZed EV Carrier Card
Hardware Build: Following this design tutorials. PS: I didn't change the lane selection as dual lower is not supported.
OS: Petalinux build with libmali-xlnx and x11 packagegroup enabled.
Sysroot: From Petalinux build
What is working: I am able to run the glmark2-es2 and can see the rendered content on the displayport output.

Issues: I am able to cross-compile the example, but I get a segmentation fault when I run it on the board. I have tried all of them. Most of them gave me the segmentation fault, and only EGLRenderingSample runs and exits on "failed to create a surface, eglMakeCurrent() failed."

Have you encountered this before? I am very new to OpenGL ES and don't really know how to debug it. Any tips would be helpful. Thanks ahead.

@alokguptaxilinx
Copy link
Collaborator

Do you have libmali.so binary ?
Make sure you are following right petalinux steps to enable the libMali for respective display protocol like for X11 or FBDEV
if you have compiled libMali.so for X11 & trying to run a FBDEV example from SDK then it will give segfault.

Trying using these steps to run glmark2 first & see if that works & then move to SDK samples.

Ref -- https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841928/Zynq+UltraScale+MPSoC+-+Graphics+Driver+Stack+-+Mali+400

@siliangZ
Copy link
Author

Hi @alokguptaxilinx ,
Thanks for replying. As I described, I was able to run glmark2-es2 successfully, and I am able to write a simple hello triangle program from scratch and get that running as well. Do you know if there is anything else I should look at?

@alokguptaxilinx
Copy link
Collaborator

alokguptaxilinx commented Jun 25, 2024

& then run the samples for FBDEV for sanity check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants