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

All-black image on macOS #76

Closed
mdickinson opened this issue May 2, 2020 · 7 comments
Closed

All-black image on macOS #76

mdickinson opened this issue May 2, 2020 · 7 comments

Comments

@mdickinson
Copy link

I'm failing to get pixels to work on macOS (specifically, macOS 10.14.6, on a MacBook Pro laptop with integrated Intel Iris Plus GPU). Both in my own project, and when I try any of the bundled examples, I simply get a black window.

For example, here's what I see when I run $ cargo run --release --package invaders. (This was on the master branch, but I see the same with the 0.0.3 tag.)

Screenshot 2020-05-02 at 17 33 06

Any idea what I might be doing wrong, or how to begin troubleshooting?

The examples for the wgpu-rs crate work fine for me, so it seems there's nothing wrong with that part.

@mdickinson
Copy link
Author

Apologies. I just found the duplicate issue #72. Closing.

@mdickinson
Copy link
Author

I did a bit more digging. The invaders example works for me with version 0.0.2 of pixels, but not with 0.0.3. A git bisect points to 246375f as the first bad commit.

@parasyte
Copy link
Owner

parasyte commented May 3, 2020

Yeah, that commit just updates wgpu. Can you please try the wgpu examples and let us know if they have the same behavior?

And if so, could you also test the gfx examples with --features=metal?

@mdickinson
Copy link
Author

The wgpu-rs examples work fine on my machine. (I didn't test all of them - just cube, boids and skybox, all of which worked.) The gfx examples also worked for me.

@parasyte
Copy link
Owner

parasyte commented May 3, 2020

Thanks, that suggests maybe the porting effort to wgpu 0.5 was incomplete. I'm surprised it compiles if we have missed something obvious! Also it works for macOS 10.15, so that is even more concerning. I'll try to take a closer look into this soon!

@parasyte
Copy link
Owner

parasyte commented May 7, 2020

I had a chance to take a closer look, and I am unable to reproduce this on my older Mac with Mojave:

$ system_profiler SPSoftwareDataType SPDisplaysDataType
Software:

    System Software Overview:

      System Version: macOS 10.14.6 (18G4032)
      Kernel Version: Darwin 18.7.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: JayMBP (9)
      User Name: jay (jay)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 5 days 21:08

Graphics/Displays:

    Intel Iris Pro:

      Chipset Model: Intel Iris Pro
      Type: GPU
      Bus: Built-In
      VRAM (Dynamic, Max): 1536 MB
      Vendor: Intel
      Device ID: 0x0d26
      Revision ID: 0x0008
      Metal: Supported, feature set macOS GPUFamily1 v4
      Displays:
        Color LCD:
          Display Type: Built-In Retina LCD
          Resolution: 2880 x 1800 Retina
          Framebuffer Depth: 24-Bit Color (ARGB8888)
          Main Display: Yes
          Mirror: Off
          Online: Yes
          Rotation: Supported
          Automatically Adjust Brightness: No

Can you run this command and post its output? I have received reports that there is an issue related to scaling the texture view, but have been unable to verify this yet. And anyway "it works for me" is preventing me from making any progress on the issue.

Also of note, it works on a newer mac with both GPUs, and also on Windows 10 with an RTX 2080 Ti...

@mdickinson
Copy link
Author

Can you run this command and post its output?

Yep, here it is:

Full output of system_profiler
lovelace:pixels mdickinson$ system_profiler SPSoftwareDataType SPDisplaysDataType
Software:

    System Software Overview:

      System Version: macOS 10.14.6 (18G4032)
      Kernel Version: Darwin 18.7.0
      Boot Volume: Macintosh HD
      Boot Mode: Normal
      Computer Name: lovelace
      User Name: Mark Dickinson (mdickinson)
      Secure Virtual Memory: Enabled
      System Integrity Protection: Enabled
      Time since boot: 28 days 11:40

Graphics/Displays:

    Intel Iris Plus Graphics 655:

      Chipset Model: Intel Iris Plus Graphics 655
      Type: GPU
      Bus: Built-In
      VRAM (Dynamic, Max): 1536 MB
      Vendor: Intel
      Device ID: 0x3ea5
      Revision ID: 0x0001
      Metal: Supported, feature set macOS GPUFamily2 v1
      Displays:
        Color LCD:
          Display Type: Built-In Retina LCD
          Resolution: 2560 x 1600 Retina
          Framebuffer Depth: 24-Bit Color (ARGB8888)
          Main Display: Yes
          Mirror: Off
          Online: Yes
          Rotation: Supported
          Automatically Adjust Brightness: No

Mostly similar to yours; the following two lines are probably the most relevant differences:

Chipset Model: Intel Iris Plus Graphics 655
Metal: Supported, feature set macOS GPUFamily2 v1

And anyway "it works for me" is preventing me from making any progress on the issue.

Completely understood. I'll keep hacking, and see if can reduce the problem to something minimal. But I'm new to Rust, so it may take a while ...

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

No branches or pull requests

2 participants