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

Android compute particles sample not working properly #5

Open
discosultan opened this issue Apr 14, 2017 · 4 comments
Open

Android compute particles sample not working properly #5

discosultan opened this issue Apr 14, 2017 · 4 comments

Comments

@discosultan
Copy link
Owner

There's an issue where the particle simulation on Android does not work properly on initial startup. It's probably due to invalid handling of the app life-cycle.

Current workaround to get the simulation running properly is to simply suspend and resume the sample. For example:

  1. Start the sample app
  2. Navigate to another app
  3. Navigate back to the sample app
@AdvKern
Copy link

AdvKern commented Jan 1, 2018

Is there anything else to look out for? Can't seem to get any of the examples to run on my Nougat test device (which runs other non-Vulkan apps in Debug mode fine). It flashes the screen for a second and then closes. I tried putting breaks in OnCreate(0 and Initialize(), but doesn't get there. Navigating to another app and back doesn't help either. This is on VS17.

@discosultan
Copy link
Owner Author

Are you testing on a physical device or emulator? If physical, which device more specifically?

@AdvKern
Copy link

AdvKern commented Jan 1, 2018

Hey, yeah it's a physical device. Huawei Honor 8.

Output shows this in debug mode:
Could not load assembly 'System.Runtime.CompilerServices.Unsafe' during startup registration.

@discosultan
Copy link
Owner Author

discosultan commented Jan 2, 2018

@AdvKern Your phone should have the same GPU as my Galaxy S7 - Mali-T880. And I assume you are running Android 7.0+ which means hardware and software requirements are met.

I need to reinstall Xamarin tooling to test this on my phone. Will let you know in the upcoming days. Seems to be an issue with the Xamarin project definition according to your output.

Edit: Issue confirmed. Investigating ...

Edit 2: The fix doesn't seem to be as straightforward as I'd hoped. Seems to be an issue with the new .csproj format and especially how NuGet packages are handled. I'll have a second go at fixing it this week.

Edit 3: I opened a new issue #16 because this particular compute particles sample issue is unrelated.

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

No branches or pull requests

2 participants