summaryrefslogtreecommitdiff
path: root/BUGS.markdown
blob: 989379b540e9a5bc2c26111034ad58eb62eff952 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
Reporting bugs
==============

Before reporting, please skim through the known issues below.

Report any issues on [github](https://github.com/apitrace/apitrace/issues),
always including the following information:

* operating system name and version

* OpenGL/D3D driver name and version


Known issues
============

These are issues that the developers are already aware of, but for which there
is no immediate plan to address them, because either:

* they stem from architectural limitations that are difficult to overcome
  and/or time-consuming;

* they are corners cases that are thought to be of very little practical use;

* merely lack of time/opportunity.

That said, feel free to file an issue and/or send an email to the mailing list
if:

* send an email to the mailing list if you want discuss the rationale, propose
  your ideas on how to address it, or volunteer to work on it;

* file the issue in the issue tracker (or comment to it if it already exists)
  if it is important for you and you would like to see it addressed sooner
  rather than later.


Tracing
-------

* Fake calls may be emitted in the trace, in order to provide complete
  information for retracing.  The typical case is OpenGL vertex arrays in user
  memory (as opposed to VBOs): where glXxxPointer calls will be deferred,
  glInterleavedArrays will be decomposed, etc.

  This should not affect the rendered output, but it may use different paths in
  the OpenGL driver, exercising different paths and with different performance
  characteristics.

  There is no way to distinguish the fake calls from those actually
  made by the application yet.

* On MacOSX, the internal OpenGL calls done by GLU are not traced yet.


Retracing
---------

* glretrace needs to infer window sizes from glViewport calls, because calls
  that create/resize windows happen outside of OpenGL and are not traced.
  Therefore window will be missing if the application relies on the default
  viewport instead of explicitly invoking glViewport; or it will to too big if
  the window is shrunk.  Most apps call glViewport before rendering.

* OS specific OpenGL APIs (WGL, GLX, CGL, etc), are not retraced literally, but
  instead partially emulated.  This is by design, to allow traces to be
  retraced on any OS, as the focus is on the OS-independent parts of OpenGL API.

* There is no guarantee that the same visual that was used on tracing will be
  used for retracing OpenGL.  Actually currently, glretrace will always choose
  a standard 32bit RGBA, 24bit depth, 8bit alpha, double buffer visual.  Unless
  overridden on command line.

* Multi-threaded OpenGL is not yet supported.

* OpenGL context sharing is not fully respected -- all contexts are expected to
  share state, and most likely there


GUI
---

* Not all types of arguments can be edited.



Proprietary/confidential applications
=====================================

Issues should be preferably filed on github to facilitate collaborative
development and for future reference.

Access to applications source code is not required -- binaries are sufficient.

If the bug happens with a proprietary application, and you don't want to
publicly release the application and/or any data collected from it, then
alternatively you can provide the necessary application and/or data via e-mail,
to *jose dot r dot fonseca at gmail dot com*.

If it is not technically/legally feasible for you to provide application and/or
data at all, then you must be either:

* develop and provide a test application, stripped-down of all
  proprietary/confidential data, but that can reproduce the issue;

* be willing/able to do the investigation of the issue, namely to identify the
  root cause of the issue (e.g., which OpenGL call is not properly handled and
  why), using all necessary tools (such as debuggers).

Failure to do so will render the apitrace authors powerless to address the
issue.


Attachments
===========

github issue tracker doesn't support attachments.

Please attach long logs to https://gist.github.com/ and paste the URL into the
issue description.

For big attachments, such as traces, please upload it temporarily to a web
server you control, or use a file upload service such as
http://www.megaupload.com/ or http://dropbox.com/ and paste the URL into the
issue description.

Trace files are only slightly compressed (for performance reasons).  You can
further reduce their size when attaching/uploading by compressing with
[XZ](http://tukaani.org/xz/) or [7-Zip](http://www.7-zip.org/).


Bugs on tracing
===============

For bugs that happen while tracing (e.g., crashes while tracing the
application, or incorrect traces) please:

* provide information on how to obtain the application;

* describe how you were using it when the issue happened.


Bugs on retracing/GUI
=====================

For bugs on retracing (e.g. crashes when retracing the application,
incorrect inconsistent rendering, or viewing with the GUI) please:

* provide the trace file;

* describe the results you got, and what results you were expecting.


Obtaining stack back-traces
===========================


Linux/MacOSX
------------

Please rebuild apitrace with debugging information, by passing
`-DCMAKE_BUILD_TYPE=Debug` to cmake.

To obtain a stack back-trace, run the application with gdb from a terminal:

    $ gdb --args application arg1 arg2 ...
    (gdb) run
    ...
    (gdb) bt


See also more detailed and Distro specific instructions:

* http://wiki.debian.org/HowToGetABacktrace

* https://wiki.ubuntu.com/Backtrace

* http://fedoraproject.org/wiki/StackTraces

* http://live.gnome.org/GettingTraces


Windows
-------

See:

* https://developer.mozilla.org/en/how_to_get_a_stacktrace_with_windbg