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 when making OpenGL window on BSD #13

Open
Andrej123456789 opened this issue Dec 13, 2023 · 3 comments
Open

Segmentation fault when making OpenGL window on BSD #13

Andrej123456789 opened this issue Dec 13, 2023 · 3 comments
Labels
BSD BSD area (FreeBSD, OpenBSD, etc.) bug Something isn't working help wanted Extra attention is needed

Comments

@Andrej123456789
Copy link
Member

Andrej123456789 commented Dec 13, 2023

Describe the bug
OpenGL gives seg fault when making window.

Version of Termi
Commit 651

Expected behavior
To run Termi on BSD same as on (GNU/)Linux

Screenshots
image

Additional context
@hahahahacker2009 replicated issue too

This is possibly caused by non existent config files.

@Andrej123456789 Andrej123456789 added bug Something isn't working BSD BSD area (FreeBSD, OpenBSD, etc.) labels Dec 13, 2023
@hahahahacker2009
Copy link
Member

Read it ktrace and found termi created log in my ~/.config . It is because of another problem.

@MeowMeowElectro
Copy link

It could be possible that it is caused by non-existent checks here:
image

Checks missed out:

  1. Is GLFW initialized?
    Fix: if(glfwInit()) instead of just glfwInit() (Line 171)
  2. Is window valid before glfwMakeContextCurrent?
    Fix: Put lines 157 to 179 in between of 172 and 173

@Andrej123456789 Andrej123456789 added the help wanted Extra attention is needed label Dec 26, 2023
@Andrej123456789
Copy link
Member Author

I will try that. Thanks

VanGutan pushed a commit that referenced this issue Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BSD BSD area (FreeBSD, OpenBSD, etc.) bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants