为什么Chrome会停止更新Chrome应用? (包括日志文件/错误)

时间:2013-06-10 21:49:46

标签: google-chrome google-chrome-extension google-chrome-app

我创建了一个打包应用。我已正确设置update_url(我第一次更新时确认了这一点),但如果我更新了应用(通过点击“立即更新扩展程序”按钮或通过chrome.runtime.requestUpdateCheck(..)),请两次进入一排,它不会第二次更新!当我通过chrome.runtime.requestUpdateCheck(..)执行此操作并检查状态时,它会显示为"throttled"!之后,即使我单击手动按钮,它也不会继续更新。

这使得开发变得非常麻烦。有谁知道如何解决这个问题?

要对此进行测试,请执行以下操作:

  1. 安装Chrome应用程序(将“.crx”文件拖到chrome:// extensions page
  2. 上)
  3. 确保“manifest.json”设置为update_url,并指向包含更新信息的XML文件
  4. 将manifest.json中的“version”更改为高一级(例如“1.0.1”vs“1.0.0”)
  5. 重新打包您的应用(并确保它在您的网络服务器上的正确位置可用)
  6. 点击“立即更新扩展程序”
  7. 等待5-10秒
  8. 重复步骤3-5
  9. 第二次更新无效。

    编辑当我点击“立即更新扩展程序”按钮时,我已经从chrome的日志中添加了日志信息:

    chrome_debug.log

    [VERBOSE1:transport_dib_linux.cc(50)] Created SysV shared memory region 83246577
    [VERBOSE1:x11_util.cc(1126)] X attached to shared memory segment 83246577
    [VERBOSE1:transport_dib_linux.cc(50)] Created SysV shared memory region 83279377
    [VERBOSE1:x11_util.cc(1126)] X attached to shared memory segment 83279377
    [VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
    [VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
    [VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
    [VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
    [VERBOSE1:sandbox_linux.cc(148)] Lacking support for seccomp-bpf sandbox.
    [VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
    [VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
    [VERBOSE1:database_manager.cc(991)] SafeBrowsingCheckDone
    [VERBOSE1:speech_input_extension_manager.cc(152)] Extension unloaded. Requesting to enforce stop...
    [VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
    [VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
    [VERBOSE1:transport_dib_linux.cc(50)] Created SysV shared memory region 83312150
    [VERBOSE1:x11_util.cc(1126)] X attached to shared memory segment 83312150
    [VERBOSE1:resource_loader.cc(336)] OnResponseStarted: chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/_generated_background_page.html
    [VERBOSE1:resource_loader.cc(376)] OnReadCompleted: "chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/_generated_background_page.html" bytes_read = 55
    [VERBOSE1:resource_loader.cc(376)] OnReadCompleted: "chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/_generated_background_page.html" bytes_read = 0
    [VERBOSE1:resource_loader.cc(627)] ResponseCompleted: chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/_generated_background_page.html
    [VERBOSE1:chrome_v8_context.cc(43)] Created context:
      extension id: dnpkphihgmicdfligbpcleigpmcbclbp
      frame:        0x7f151d5f7600
      context type: BLESSED_EXTENSION
    [VERBOSE1:dispatcher.cc(839)] Num tracked contexts: 1
    [VERBOSE1:resource_loader.cc(336)] OnResponseStarted: chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/main.js
    [VERBOSE1:resource_loader.cc(376)] OnReadCompleted: "chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/main.js" bytes_read = 3153
    [VERBOSE1:resource_loader.cc(376)] OnReadCompleted: "chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/main.js" bytes_read = 0
    [VERBOSE1:resource_loader.cc(627)] ResponseCompleted: chrome-extension://dnpkphihgmicdfligbpcleigpmcbclbp/main.js
    [VERBOSE1:dispatcher.cc(873)] Num tracked contexts: 0
    [VERBOSE1:ipc_sync_channel.cc(385)] Canceling pending sends
    [VERBOSE1:transport_dib_linux.cc(50)] Created SysV shared memory region 84475990
    [VERBOSE1:x11_util.cc(1126)] X attached to shared memory segment 84475990
    

0 个答案:

没有答案