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

Support using rr-record with headless servo #21465

Open
jdm opened this issue Aug 20, 2018 · 2 comments
Open

Support using rr-record with headless servo #21465

jdm opened this issue Aug 20, 2018 · 2 comments

Comments

@jdm
Copy link
Member

@jdm jdm commented Aug 20, 2018

Running /.mach rr-record -z -d foo.html on a machine that can't create a window yields:

jdm@sandman:~/servo$ ./mach rr-record -z -d foo.html
rr: Saving execution to trace directory `/home/jdm/.local/share/rr/servo-0'.
assertion failed: !context.is_null() (thread main, at ports/servo/glutin_app/window.rs:98)
Error running mach:

    ['rr-record', '-z', '-d', 'foo.html']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.

You should consider filing a bug for this issue.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

CalledProcessError: Command 'rr --fatal-errors record /home/jdm/servo/target/debug/servo -z foo.html' returned non-zero exit status 101

  File "/home/jdm/servo/python/servo/post_build_commands.py", line 210, in rr_record
    check_call(rr_cmd + servo_cmd)
  File "/home/jdm/servo/python/servo/command_base.py", line 179, in check_call
    raise subprocess.CalledProcessError(status, ' '.join(*args))
@jdm jdm added the A-mach label Aug 20, 2018
@highfive
Copy link

@highfive highfive commented Aug 20, 2018

@jdm jdm added the I-papercut label Aug 20, 2018
@mateon1
Copy link
Contributor

@mateon1 mateon1 commented Aug 22, 2018

Using ./mach run [-r|-d] -z --debugger=rr ... works. Looks like rr-record doesn't set the proper environment variables for headless mode.

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

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.