rr-debugger / rr-debugger/rr

rr doesn't work with Clutter apps

Open
#1,824 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.7k
Forks
662
Avg merge
2d 3h
Merged PRs (30d)
2

Description

I'm not sure why it happens, but rr fails with all applications using clutter.

The following code built with:
gcc clutter.c -o clutterapp pkg-config clutter-1.0 --cflags --libs

#include <clutter/clutter.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
    clutter_init(&argc, &argv);

    ClutterColor stage_color = { 0, 0, 0, 255 };

    ClutterActor *stage = clutter_stage_get_default();
    clutter_actor_set_size(stage, 512, 512);
    clutter_stage_set_color(CLUTTER_STAGE(stage), &stage_color);
    clutter_actor_show(stage);

    clutter_main();

    return EXIT_SUCCESS;
}

It fails to grab a GL context
(clutterapp:5165): Clutter-CRITICAL **: Unable to initialize Clutter: Unable to initialize the Clutter backend: no available drivers found.

All other clutter apps I tried failed for what seems to be a related reason.

Contributor guide

Open the contributing guide

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

Start with the provided clutter.c example and reproduce the failure using the documented gcc and pkg-config command, then run the resulting clutterapp under rr. Trace why Clutter cannot initialize a backend or obtain a GL context; done means the example and other Clutter applications can be recorded without the reported driver error.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux
Domain
devtools, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.