Navigation Menu

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 Loading of snapshot not working #142

Closed
idr-pt opened this issue Sep 27, 2020 · 5 comments
Closed

Android Loading of snapshot not working #142

idr-pt opened this issue Sep 27, 2020 · 5 comments

Comments

@idr-pt
Copy link

idr-pt commented Sep 27, 2020

If i try to load a saved Snapshot in Android the rust emulator hangs with a cracking sound. Please help with any fix

@michelhe
Copy link
Owner

Thx for reporting this,
are you building 'master' ?
can you please post a logcat of the application from the crash ?

@idr-pt
Copy link
Author

idr-pt commented Sep 27, 2020

Yes i am building master .Application is not crashing the emulation just Freezes with crackling voice

here is the log when it Freezes

I/OnePlusAudioTrackInjector: play() packageName: com.mrmichel.rustdroid_emu
I/OnePlusAudioTrackInjector: bufferSizeInBytes:4096, sampleRate:44100
E/AudioSystem-JNI: Command failed for android_media_AudioSystem_setParameters: -1
E/AudioSystem-JNI: Command failed for android_media_AudioSystem_setParameters: -1
D/AudioTrack: ClientUid 10538 AudioTrack::start
I/Choreographer: Skipped 40 frames! The application may be doing too much work on its main thread.
D/DecorView: onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@b30450b[EmulatorActivity]
I/OpenGLRenderer: Davey! duration=722ms; Flags=1, IntendedVsync=212761978040889, Vsync=212762644707529, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=212762646007533, AnimationStart=212762646261961, PerformTraversalsStart=212762647704513, DrawStart=212762675882429, SyncQueued=212762695044513, SyncStart=212762695439148, IssueDrawCommandsStart=212762695541492, SwapBuffers=212762700134669, FrameCompleted=212762700707221, DequeueBufferDuration=3149000, QueueBufferDuration=129000,
D/OnePlusJankManager: Chor uploadMDM JANK_TYPE_ONCE mViewTitle = com.mrmichel.rustdroid_emu/com.mrmichel.rustdroid_emu.ui.snapshots.SnapshotPickerActivity--- jank level = 3
I/OpenGLRenderer: Davey! duration=727ms; Flags=1, IntendedVsync=212761978040889, Vsync=212762644707529, OldestInputEvent=9223372036854775807, NewestInputEvent=0, HandleInputStart=212762646007533, AnimationStart=212762646261961, PerformTraversalsStart=212762647704513, DrawStart=212762702102429, SyncQueued=212762704227013, SyncStart=212762704601908, IssueDrawCommandsStart=212762704659721, SwapBuffers=212762705348002, FrameCompleted=212762705897065, DequeueBufferDuration=97000, QueueBufferDuration=120000,
V/ViewRootImpl: The specified message queue synchronization barrier token has not been posted or has already been removed

But there is no Error message . i checked everywhere for error messages in log

@michelhe
Copy link
Owner

I've managed to reproduce on a clean master build (though it had cost me my right ear)
Will look into it, thx!

@michelhe
Copy link
Owner

@idr-pt Can you verify if 46c34ee fixes this on your end ?

@michelhe michelhe reopened this Sep 27, 2020
@idr-pt
Copy link
Author

idr-pt commented Sep 27, 2020

hahaha ... Thanks for prompt resolution. its working now .i also have problem with audio if i turn on turbo mode or change frame rate of emulator... audio cracks and Logs show this message . Games run perfectly but only audio has some cracking

I/chatty: uid=10539(com.mrmichel.rustdroid_emu) Thread-4 identical 25 lines
W/EmulatorBindings: : failed to push audio sample
W/EmulatorBindings: : failed to push audio sample
I/chatty: uid=10539(com.mrmichel.rustdroid_emu) Thread-4 identical 3752 lines
W/EmulatorBindings: : failed to push audio sample
W/EmulatorBindings: : failed to push audio sample
I/chatty: uid=10539(com.mrmichel.rustdroid_emu) Thread-4 identical 26652 lines
W/EmulatorBindings: : failed to push audio sample
W/EmulatorBindings: : failed to push audio sample

Can you tell me its fix also

@idr-pt idr-pt closed this as completed Sep 28, 2020
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