Skip to content
TheChatArchiveThe Chat Archive
o3-2025-04-16· OpenAIHugging Face LMArena Human Preference 140K

server] WARN: No clipboard manager, copy-paste between device and computer will not work…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-sonnet-4-20250514’s answer.
  1. User

    server] WARN: No clipboard manager, copy-paste between device and computer will not work INFO: Renderer: opengl INFO: OpenGL version: 3.1 Mesa 21.2.6 INFO: Trilinear filtering enabled [server] ERROR: Encoding error: java.lang.IllegalArgumentException: [server] INFO: Retrying with -m2560... [server] INFO: Retrying... INFO: Texture: 6296x1736

  2. Assistant

    Looks like you just pasted a chunk of the ‟scrcpy” server log (the little Java program that runs on your Android phone when you mirror the screen to your computer).
    Here’s a quick walkthrough of what each line means, why the encoding error pops up, and what you can try next.


    1. Line-by-line decode

    Log linePlain-English meaningShould you worry?
    [server] WARN: No clipboard manager, copy-paste between device and computer will not workOn many Android ROMs there’s no system-wide clipboard service accessible to third-party apps. scrcpy falls back gracefully, but cross-device copy/paste just won’t work.Benign (feature limitation).
    INFO: Renderer: openglINFO: OpenGL version: 3.1 Mesa 21.2.6INFO: Trilinear filtering enabledThis is your PC side. scrcpy is telling you that it will render the phone screen using the OpenGL backend, detected version 3.1 (Mesa drivers).All good.
    [server] ERROR: Encoding error: java.lang.IllegalArgumentException:The Android side tried to start a MediaCodec video encoder with the requested parameters (native screen res + default bitrate). The codec threw IllegalArgumentException, which usually means “unsupported resolution / profile.”This is the real problem.
    [server] INFO: Retrying with -m2560...[server] INFO: Retrying...scrcpy automatically falls back to “max size 2560 px” (that’s the -m flag) and tries again.Automatic fix attempt.
    INFO: Texture: 6296x1736Once the reconnect succeeded, your PC created a 6296×1736 texture to draw the incoming frames. That number is simply your phone’s effective framebuffer size (often wider than the visible resolution thanks to the scrolling notification area etc.).Informational only.

    2. Why does the encoder puke?

    Most Snapdragon / MediaTek encoders have hard limits on:
    • Max dimension (e.g., 4096 or 3840 pixels)
    • Alignment (16-pixel macro-block)
    • Max pixel count (e.g., 8,294,400 ≈ 4K@60)

    If your phone display is ultrawide (for example 3120 × 1440) the longer edge may exceed the codec’s limit. The server first tries full native res, fails, then retries with 2560 as the larger dimension.


    3. Did it finally start streaming?

    • If you now see your phone on the PC screen → you’re good.
    • If it keeps looping “retrying” → the fallback size is still too large, or another parameter is off.


    4. Things you can try

    1. Manually cap the resolution lower than 2560:
      scrcpy -m 1920        # or even -m 1280 on older devices
      
    2. Lower the bitrate (lighter load on encoder):
      scrcpy -b 6M          # default is 8M
      
    3. Force a specific codec profile / baseline (rarely needed):
      scrcpy --codec-options profile=1,level=8
      
    4. Update scrcpy (on both PC and Android). Newer versions contain work-arounds for ROM quirks.
    5. Re-enable copy-paste (optional): install a clipboard manager on the phone, e.g. “Clipped” or “Clipper,” then restart scrcpy.

    5. Quick checklist

    ✅ Using scrcpy ≥ v2.3?
    ✅ USB debugging ON, authorization accepted?
    ✅ adb logcat | grep MediaCodec shows more clues?
    ✅ Try wireless mode scrcpy --tcpip=<device-ip> – sometimes USB negotiation glitches.


    Need more help?

    • Post the full stack trace after IllegalArgumentException (there’s usually half a page of codec config info).
    • Share your device model + Android version, and I’ll recommend a tested -m size and bitrate combo.

    Hope this demystifies the warning/error messages!

  3. User

    用中文回答

  4. Assistant

    下面把之前那段 scrcpy 服务器日志翻译并详解成中文,同时给出常见原因与解决办法。👇


    1. 日志逐行解释

    日志含义是否需要担心
    [server] WARN: No clipboard manager, copy-paste between device and computer will not work手机里没有可用的系统级剪贴板服务,因此电脑与手机之间无法互拷文字。只是功能受限,无伤大雅
    INFO: Renderer: opengl INFO: OpenGL version: 3.1 Mesa 21.2.6 INFO: Trilinear filtering enabled电脑端渲染信息:使用 OpenGL、驱动版本 3.1、开启了三线性过滤。正常
    [server] ERROR: Encoding error: java.lang.IllegalArgumentException:安卓端启动 MediaCodec 编码器时参数不被支持,抛出 IllegalArgumentException。关键错误
    [server] INFO: Retrying with -m2560... [server] INFO: Retrying...scrcpy 自动降分辨率,把长边限制到 2560 像素后重试。自动补救
    INFO: Texture: 6296x1736电脑端创建了 6296×1736 的纹理来显示手机画面,这是手机实际帧缓冲大小。信息性

    2. 为什么会编码失败?

    大多数手机硬编(Snapdragon/MediaTek)的限制:

    • 最大单边长度:常见 4096 或 3840 像素
    • 宏块对齐:16 像素对齐
    • 最大像素数:约 8,294,400(4K@60 级别)

    如果你的屏幕超宽或超高(例:3120×1440),直接推原生分辨率就会超过上述限制,于是编码器报错,scrcpy 退而求其次使用 2560。


    3. 现在到底成功了吗?

    • 如果日志只报一次错然后窗口能正常显示手机 → OK。
    • 若不断循环 “Retrying…” → 2560 还是太大,或还有别的参数不合适。

    4. 可尝试的解决方案

    # ① 再降分辨率
    scrcpy -m 1920        # 或者 -m 1280
    
    # ② 降低码率
    scrcpy -b 6M          # 默认 8M
    
    # ③ 指定编码器 profile/level(很少用到)
    scrcpy --codec-options profile=1,level=8
    
    # ④ 更新 scrcpy(电脑端+apk)到最新版
    
    # ⑤ 想用剪贴板功能?装一个剪贴板管理器再重连
    

    5. 排查清单

    • ✔️ scrcpy ≥ v2.3?
    • ✔️ USB 调试已授权?
    • ✔️ adb logcat | grep MediaCodec 查看更详细错误?
    • ✔️ 试试无线模式:scrcpy --tcpip=<手机IP>,有时候 USB 协议握手会翻车。

    6. 仍有问题?

    请贴出 IllegalArgumentException 后面的完整堆栈、手机型号和系统版本,我可以帮你指定最合适的 -m 分辨率和 -b 码率。

    希望这份中文说明能让你秒懂日志含义并顺利解决编码错误!🎉

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.