【问题标题】:Native Messaging host tried sending a message that is 460151579 bytes long本机消息传递主机尝试发送长度为 460151579 字节的消息
【发布时间】:2013-12-02 13:06:23
【问题描述】:

当使用谷歌浏览器的原生消息 API 时,从终端运行 chrome 是一个优势,这样人们就可以读取 chrome 和一个本地应用程序打印到 stderr 的消息。

由于某种原因,这会导致 Chrome 出现以下问题:

[22173:22201:1202/134930:ERROR:native_message_process_host.cc(271)] \
Native Messaging host tried sending a message that is 460151579 bytes long.

如何解决?

【问题讨论】:

    标签: linux google-chrome google-chrome-extension


    【解决方案1】:

    一种解决方法是将 stderr 重定向到文件。

    为了能够实时查看此日志,一种解决方案是:

    $ google-chrome 2> >(tee stderr.log >&2)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-10-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多