Skip to content
This repository has been archived by the owner on Nov 19, 2018. It is now read-only.

Snapshot corrupts screen #296

Closed
ConfusedVorlon opened this issue Nov 7, 2015 · 13 comments
Closed

Snapshot corrupts screen #296

ConfusedVorlon opened this issue Nov 7, 2015 · 13 comments
Labels

Comments

@ConfusedVorlon
Copy link
Contributor

this is weird, and I suspect there is nothing you can do.

On both the iPhone 6+ and the iPad Pro, my toolbar which shows at the bottom of the screen corrupts when you take a screenshot. On all other simulators, it is fine.

iphone6plus-00imagescreen

It should look like

iphone6-00imagescreen

I don't see the corruption in the simulator - though I do see snapshot pressing the right-hand button in the toolbar.

@ConfusedVorlon
Copy link
Contributor Author

Now I'm looking more closely, I'm seeing that other screen elements are undrawn when the snapshot happens. In the example above, the whole bar at the top is gone. In other screenshots - other complete elements are missing.

this only applies on the 6+ and the iPad pro.

@cescobaz
Copy link

cescobaz commented Nov 7, 2015

Same issue in all simulators:
screenshot should be as following
simulator screen shot 07 nov 2015 23 02 12
but snapshot takes:
iphone6-01-screenshot

@foozmeat
Copy link

foozmeat commented Nov 8, 2015

I'm seeing something similar on 6+ and iPad Retina. It's as if drawing hasn't completed before the snapshot is taken.

@ggruen
Copy link

ggruen commented Nov 8, 2015

I'm seeing this intermittently on various different devices in the simulator (on my last run, it was all devices - see iPhone 5 screenshot below). I noticed, however, that running the simulator from the command line produces the same artifacts. That is, if I run the following, the screenshots in the "output" directory will have the same artifacts:

xcodebuild -project YAWA.xcodeproj \
       -scheme "YAWA iOS UI Tests" \
           -sdk iphonesimulator \
           -destination 'platform=iOS Simulator,name=iPhone 6s,OS=9.1' \
           -derivedDataPath './output' \
           test

So it's clearly not snapshot's doing - it's the simulator. Oddly, I've had some screenshots look ok, then not look ok on the same device (e.g. iPhone 5).

If I run the simulator and hit command-S to generate the screenshot, the resulting screenshot looks fine.

iphone5-4hotspotadded

@ggruen
Copy link

ggruen commented Nov 8, 2015

Ok, solved, and this is a duplicate of #249. Run the simulator at 100% scale (hint: hit command-1) and the screenshots are fine.

@ConfusedVorlon
Copy link
Contributor Author

good spot - thank you.

@cescobaz
Copy link

cescobaz commented Nov 8, 2015

Works for me, thank you

@foozmeat
Copy link

foozmeat commented Nov 8, 2015

It looks like the Debug -> Optimize Hardware for Window Scale setting is the culprit.

@mihahribar
Copy link

Scale solved it for me too.

@robertoferraz
Copy link

Scale solved it for me too

@Ged2323
Copy link

Ged2323 commented Nov 21, 2015

Awesome scale did it for me too!

@KrauseFx
Copy link
Collaborator

I just pushed a new release https://github.com/fastlane/snapshot/releases/tag/1.2.0
Please update to the latest version, make sure to read the release notes and let me know if it works for you 👍

@fastlanebot
Copy link

This issue was migrated to fastlane/fastlane#2549. Please post all further comments there.

fastlane is now a mono repo, you can read more about the change in our blog post. All tools are now available in the fastlane main repo 🚀

@fastlane-old fastlane-old locked and limited conversation to collaborators Mar 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

9 participants