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

screenshot empty when running on android #1184

Open
zhuker opened this issue Feb 6, 2025 · 2 comments
Open

screenshot empty when running on android #1184

zhuker opened this issue Feb 6, 2025 · 2 comments

Comments

@zhuker
Copy link

zhuker commented Feb 6, 2025

1 Fresh git checkout
2 Run on Android 13, 14, 15
3 Draws fine, click "Take screenshot"
4 screenshot.ppm is filled with zeros

@zhuker
Copy link
Author

zhuker commented Feb 6, 2025

debugger shows zero-filled data after

		// Map image memory so we can start copying from it
		const char* data;
		vkMapMemory(device, dstImageMemory, 0, VK_WHOLE_SIZE, 0, (void**)&data);

@zhuker
Copy link
Author

zhuker commented Feb 6, 2025

Also I see a bunch of messages like this in logcat

2025-02-06 01:41:47.194 26350-26449 BufferQueueProducer     de.saschawillems.vulkanScreenshot    D  [VRI[VulkanActivity]#0(BLAST Consumer)0](id:66ee00000000,api:1,p:26350,c:26350) connect: api=1 producerControlledByApp=true
2025-02-06 01:41:47.202 26350-26449 BufferQueueProducer     de.saschawillems.vulkanScreenshot    D  [VRI[VulkanActivity]#0(BLAST Consumer)0](id:66ee00000000,api:1,p:26350,c:26350) disconnect: api 1

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

1 participant