rive-app / rive-app/rive-runtime

OpenGL context fails on Linux

Open
#92 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1.2k
Forks
121
PR merge metrics
No merged PRs in 30d

Description

My AMD Ryzen (latest drivers) device supports OpenGL 4.6 but path_fiddle still can't seem to run using OpenGL.

I build with:

./renderer$ ../build/build_rive.sh debug --with_vulkan

Error:

$ ./out/debug/path_fiddle 
==== GL GPU: AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.64, 6.17.0-1012-oem) ====
GL ERROR: 0:557(170): error: syntax error, unexpected NEW_IDENTIFIER
path_fiddle: ../../path_fiddle/fiddle_context_gl.cpp:47: void err_msg_callback(GLenum, GLenum, GLuint, GLenum, GLsizei, const GLchar *, const void *): Assertion `0' failed.
Aborted (core dumped)

Running with vulkan works fine: ./out/debug/path_fiddle --vk

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Build the renderer with the command shown and run path_fiddle without --vk to reproduce the shader error. Start at path_fiddle/fiddle_context_gl.cpp:47 and trace the OpenGL error callback and the reported shader location. Done means path_fiddle runs on the reported Linux AMD setup using OpenGL without the syntax-error assertion.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.