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] Marathon getting zero-byte screen recording videos #847

Open
tabletenniser opened this issue Oct 2, 2023 · 2 comments
Open

[Android] Marathon getting zero-byte screen recording videos #847

tabletenniser opened this issue Oct 2, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@tabletenniser
Copy link
Contributor

Describe the bug
Many video recording files provided by Marathon are empty have zero-bytes, as shown in the screenshot below:

Screenshot 2023-10-02 at 9 53 44 AM

Expected behavior
MP4 video files having the actual screen recording content

Logs and reports

Relevant logs that I can find (can upload full logs if needed):

09-29 15:01:11.968 516-559/? I/ActivityTaskManager: Displayed com.duolingo.devel.test/androidx.test.core.app.                                 InstrumentationActivityInvoker$EmptyActivity: +72ms
09-29 15:01:11.975 298-298/? D/goldfish-address-space: claimShared: Ask to claim region [0x3f9b8a000 0x3fa373000]
09-29 15:01:11.995 7226-7226/? D/MPEG4Writer: PreAllocation disabled. fallocate : Operation not supported on transport endpoint, 95
09-29 15:01:11.999 7136-7243/? W/GraphicBufferSource: released unpopulated slots: [3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18,   19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,   54, 55, 56, 57, 58, 59, 60, 61, 62, 63]
09-29 15:01:12.017 400-400/? I/perfetto: probes_producer.cc:329  Producer stop (id=60)
09-29 15:01:12.018 402-402/? I/perfetto: ng_service_impl.cc:1948 Tracing session 60 ended, total sessions:3
09-29 15:01:12.088 7226-7226/? E/MediaMuxer: stop() is called in invalid state 1
09-29 15:01:12.091 7226-7226/? D/ScreenRecord: failed
09-29 15:01:12.092 7226-7226/? I/BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
09-29 15:01:12.093 7226-7226/? I/BpBinder: onLastStrongRef automatically unlinking death recipients: <uncached descriptor>
09-29 15:01:12.094 7226-7226/? I/hw-BpHwBinder: onLastStrongRef automatically unlinking death recipients
09-29 15:01:12.103 787-809/? I/ndroid.systemu: NativeAlloc concurrent copying GC freed 11941(533KB) AllocSpace objects, 0(0B) LOS objects,    49% free, 5778KB/11MB, paused 35us total 251.913ms
09-29 15:01:12.205 3572-3631/? W/Settings: Setting always_finish_activities has moved from android.provider.Settings.System to android.       provider.Settings.Global, returning read-only value.
09-29 15:01:12.207 516-4626/? I/ActivityTaskManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER]          flg=0x10008000 cmp=com.duolingo.devel/com.duolingo.test.EmptyEntryPointTestActivity} from uid 10122
09-29 15:01:12.207 516-554/? D/EventSequenceValidator: Transition from ACTIVITY_FINISHED to INTENT_STARTED
09-29 15:01:12.214 516-4626/? W/ActivityTaskManager: Tried to set launchTime (0) < mLastActivityLaunchTime (171843)

Devices (please complete the following information):

  • Device: [e.g. emulator/simulator/Nexus 5/etc]: Android Emulator
  • OS: [e.g. iOS8.1]: Android 11
@tabletenniser tabletenniser added the bug Something isn't working label Oct 2, 2023
@Malinskiy
Copy link
Member

Seems like a duplicate of #812 with the same underlying cause: the screenrecord binary failed

09-29 15:01:12.091 7226-7226/? D/ScreenRecord: failed

There isn't much marathon can do here short of a new implementation for screen recording.

@tabletenniser
Copy link
Contributor Author

tabletenniser commented Oct 3, 2023

Got it, thanks for looking into it! We managed to bypass this issue by using screenshot instead of video screen record videos based off the suggestion from #812 which gives us .gif instead of .mp4. Feel free to close this if you feel appropriate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants