Genymobile / Genymobile/scrcpy

scrcpy frezes after a few seconds

Open
#4,306 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
150k
Forks
13.7k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

- [*] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
- [*] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).

**Environment**
- OS: Ubuntu 22.04
- scrcpy version: 2.1.1
- installation method: Manual from official repository
- device model: Samsung Galaxy S23 Ultra SM-S918B
- Android version: 13

**Describe the bug**
**I'm trying to use scrcpy on Ubuntu 22.04 with a Samsung S22 Ultra connected wirelessly via ADB. However, when I run the command from the PC's terminal, the program starts, and everything works correctly for a few seconds. Then, the transmission pauses without any error message in the terminal where the process is running; the video simply freezes (if I interact with the smartphone's screen, it works correctly, but the screen changes stop being displayed on the PC).

After this error occurs, when I run a command like 'adb devices,' the device is now listed as 'offline.' The only way to reconnect to the device via ADB is to restart the PC and the device.

This issue only happens when using this particular device. When I use any other phone (e.g., Nokia 2.3 with Android 11), the connection works correctly both wirelessly and with a USB cable.

Furthermore, this error only occurs when the ADB connection is wireless. If I make an ADB connection via USB, scrcpy works correctly on the same PC.

On Windows, the program works well both wirelessly and with a USB connection.

My PC, where I encounter this problem, is running Ubuntu 22.04. The device in question is a Samsung S23 Ultra SM-S918B.

The scrcpy version is as follows:

```shell
scrcpy 2.1.1

Dependencies (compiled / linked):
- SDL: 2.0.20 / 2.0.20
- libavcodec: 58.134.100 / 58.134.100
- libavformat: 58.76.100 / 58.76.100
- libavutil: 56.70.100 / 56.70.100
- libavdevice: 58.13.100 / 58.13.100
- libusb: - / 1.0.25
```

Ubuntu Version:
```shell
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
```

kernel version:

```shell
6.2.0-33-generic
```

**

```
scrcpy
scrcpy 2.1.1
INFO: ADB device found:
INFO: --> (tcpip) 192.168.1.148:34679 device SM_S918B
/usr/local/share/scrcpy/scrcpy-server: 1 file pushed, 0 skipped. 77.6 MB/s (56995 bytes in 0.001s)
[server] INFO: Device: [samsung] samsung SM-S918B (Android 13)
INFO: Renderer: opengl
INFO: OpenGL version: 4.6 (Compatibility Profile) Mesa 23.0.4-0ubuntu1~22.04.1
INFO: Trilinear filtering enabled
INFO: Texture: 720x1544

```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the issue with the reported scrcpy command on Ubuntu 22.04, using the Samsung SM-S918B over wireless ADB, then check the connection with `adb devices` when video freezes. Compare the wireless failure with the working USB case; done means scrcpy continues displaying changes and the device remains online without requiring a restart.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, ubuntu
Domain
networking, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.