RenderDoc fails to launch 2.8 with BadDrawable error #55565

Closed
opened 2018-06-21 08:31:48 +02:00 by Lukas Tönne · 8 comments
Member

System Information
system-info.txt

Blender Version
Broken: 2.8 43eebdfebd
Worked:

  • 2.8 21c24c0423
  • 2.79b
    (can't seem to access builder.blender.org atm, so haven't tried with an official build yet)

Broken by commit 128926a41b

Short description of error
Starting blender on its own works fine.
But launching blender through renderdoc (https:*renderdoc.org/ ) fails.

Exact steps for others to reproduce the error
RenderDoc is a tool for debugging OpenGL code. Versions 0.37 and 1.0 of renderdoc both fail to run blender with the same error.

  • Build blender (make sure to disable asan)
  • Start renderdoc.
  • In the "Launch Application" tab set the "Executable Path" to /bin/blender
  • Click "Launch"

Blender window pops up for a split second, then closes. Output on the console:

Log - Got remote handshake: blender [30041]
Read prefs: /home/lukas/.config/blender/2.80/config/userpref.blend
Log - Used API: OpenGL (Presenting & supported)
X Error of failed request: BadDrawable (invalid Pixmap or Window parameter)
Major opcode of failed request: 14 (X_GetGeometry)
Resource id in failed request: 0x420001b
Serial number of failed request: 204
Current serial number in output stream: 204

Some more info under Help > View Diagnostic Log File:

RDOC 028738: [06:55:00] core.cpp( 298) - Log - RenderDoc v1.0 64-bit Development (5ef2d0bb5e86a37ba6c250987e9dc8c33c26435c) loaded in replay application
QTRD 028738: [06:55:00] qrenderdoc.cpp( 87) - Log - QRenderDoc initialising.
RDOC 028747: [06:55:06] core.cpp( 298) - Log - RenderDoc v1.0 64-bit Development (5ef2d0bb5e86a37ba6c250987e9dc8c33c26435c) capturing application
RDOC 028747: [06:55:06] posix_libentry.cpp( 59) - Log - Using delay for debugger 0
RDOC 028747: [06:55:06] posix_libentry.cpp( 69) - Log - Loading into /home/lukas/src/bf-blender/cmake-noasan-debug/bin/blender
RDOC 028747: [06:55:06] hooks.cpp( 45) - Debug - Hooking libGL.so
RDOC 028747: [06:55:06] hooks.cpp( 45) - Debug - Hooking libvulkan.so.1
RDOC 028738: [06:55:06] target_control.cpp( 512) - Log - Got remote handshake: blender [28747]
RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 572) - Debug - glXCreateContextAttribsARB:
RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 9126: 1
RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 2091: 4
RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 2092: 5
RDOC 028747: [06:55:06] gl_common.cpp( 408) - Log - Vendor checks for 0 (NVIDIA Corporation / GeForce GT 740M/PCIe/SSE2 / 4.5.0 NVIDIA 384.130)
RDOC 028747: [06:55:06] gl_common.cpp( 690) - Warning - FBOs are shared on this implementation
RDOC 028738: [06:55:06] target_control.cpp( 720) - Log - Used API: OpenGL (Presenting & supported)
RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 572) - Debug - glXCreateContextAttribsARB:
RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 9126: 1
RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 2091: 4
RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 2092: 5
RDOC 028747: [06:55:06] gl_common.cpp( 408) - Log - Vendor checks for 45 (NVIDIA Corporation / GeForce GT 740M/PCIe/SSE2 / 4.5.0 NVIDIA 384.130)

**System Information** [system-info.txt](https://archive.blender.org/developer/F3756595/system-info.txt) **Blender Version** Broken: 2.8 43eebdfebd6e31d188ae3c1b220c8991fc869df3 Worked: - 2.8 21c24c0423b4c82eb3baa18bd7474acc2a5a81bf - 2.79b (can't seem to access builder.blender.org atm, so haven't tried with an official build yet) **Broken by commit 128926a41b368e166af63515370d9c9367e3dda2** **Short description of error** Starting blender on its own works fine. But launching blender through renderdoc ([https:*renderdoc.org/ ](https:*renderdoc.org/)) fails. **Exact steps for others to reproduce the error** RenderDoc is a tool for debugging OpenGL code. Versions 0.37 and 1.0 of renderdoc both fail to run blender with the same error. - Build blender (make sure to disable asan) - Start renderdoc. - In the "Launch Application" tab set the "Executable Path" to <build dir>/bin/blender - Click "Launch" Blender window pops up for a split second, then closes. Output on the console: > Log - Got remote handshake: blender [30041] > Read prefs: /home/lukas/.config/blender/2.80/config/userpref.blend > Log - Used API: OpenGL (Presenting & supported) > X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) > Major opcode of failed request: 14 (X_GetGeometry) > Resource id in failed request: 0x420001b > Serial number of failed request: 204 > Current serial number in output stream: 204 > Some more info under Help > View Diagnostic Log File: > > RDOC 028738: [06:55:00] core.cpp( 298) - Log - RenderDoc v1.0 64-bit Development (5ef2d0bb5e86a37ba6c250987e9dc8c33c26435c) loaded in replay application > QTRD 028738: [06:55:00] qrenderdoc.cpp( 87) - Log - QRenderDoc initialising. > RDOC 028747: [06:55:06] core.cpp( 298) - Log - RenderDoc v1.0 64-bit Development (5ef2d0bb5e86a37ba6c250987e9dc8c33c26435c) capturing application > RDOC 028747: [06:55:06] posix_libentry.cpp( 59) - Log - Using delay for debugger 0 > RDOC 028747: [06:55:06] posix_libentry.cpp( 69) - Log - Loading into /home/lukas/src/bf-blender/cmake-noasan-debug/bin/blender > RDOC 028747: [06:55:06] hooks.cpp( 45) - Debug - Hooking libGL.so > RDOC 028747: [06:55:06] hooks.cpp( 45) - Debug - Hooking libvulkan.so.1 > RDOC 028738: [06:55:06] target_control.cpp( 512) - Log - Got remote handshake: blender [28747] > RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 572) - Debug - glXCreateContextAttribsARB: > RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 9126: 1 > RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 2091: 4 > RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 2092: 5 > RDOC 028747: [06:55:06] gl_common.cpp( 408) - Log - Vendor checks for 0 (NVIDIA Corporation / GeForce GT 740M/PCIe/SSE2 / 4.5.0 NVIDIA 384.130) > RDOC 028747: [06:55:06] gl_common.cpp( 690) - Warning - FBOs are shared on this implementation > RDOC 028738: [06:55:06] target_control.cpp( 720) - Log - Used API: OpenGL (Presenting & supported) > RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 572) - Debug - glXCreateContextAttribsARB: > RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 9126: 1 > RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 2091: 4 > RDOC 028747: [06:55:06] gl_hooks_linux.cpp( 579) - Debug - 2092: 5 > RDOC 028747: [06:55:06] gl_common.cpp( 408) - Log - Vendor checks for 45 (NVIDIA Corporation / GeForce GT 740M/PCIe/SSE2 / 4.5.0 NVIDIA 384.130) >
Author
Member

Added subscriber: @LukasTonne

Added subscriber: @LukasTonne
Author
Member

128926a41b seems to cause Blender launch from renderdoc to fail.

However, there are similar OpenGL "BadDrawable" errors logged by renderdoc even before that. I've managed to bisect this down to either 13261304a3 (build errors) or fa7e4cc685.

128926a41b seems to cause Blender launch from renderdoc to fail. However, there are similar OpenGL "BadDrawable" errors logged by renderdoc even before that. I've managed to bisect this down to either 13261304a3 (build errors) or fa7e4cc685.
Member

Added subscribers: @fclem, @lichtwerk

Added subscribers: @fclem, @lichtwerk
Member

Just saying I'm getting the same (with very similar logs -- obviously with different card mentioned in my logs [970m in my case...])

I'm not sure if this is the right place though?

Maybe @fclem can comment?

Just saying I'm getting the same (with very similar logs -- obviously with different card mentioned in my logs [970m in my case...]) I'm not sure if this is the right place though? Maybe @fclem can comment?

Added subscriber: @mont29

Added subscriber: @mont29
Clément Foucault was assigned by Bastien Montagne 2018-07-23 10:01:31 +02:00

I would not consider this a bug (blender itself works fine, this is an issue when combined with another debugging tool, more like dev topic really), but will let @fclem decide here…

I would not consider this a bug (blender itself works fine, this is an issue when combined with another debugging tool, more like dev topic really), but will let @fclem decide here…

Well the culprit commit was reverted long ago. I can now use renderdoc myself if I donc compile with asan.

@lichtwerk if renderdoc works but have warning/errors I do not considered this as a bug then.

Well the culprit commit was reverted long ago. I can now use renderdoc myself if I donc compile with asan. @lichtwerk if renderdoc works but have warning/errors I do not considered this as a bug then.

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#55565
No description provided.