错误描述:
心率区无法更改。
(或其他区域,如自行车攀登)
实际行为:
可以更改和保存区域设置。 但是刷新后,旧设置仍然存在
预期行为:
更改任何值并按“保存”应保存它们。
重现步骤:
更改任何区域,保存。
转到其他页面,然后返回“设置心率区”页面。
它将具有旧设置
铬版
Vivaldi 1.13.1008.40,基于 Chrome 62.0.3202.97
插件版本:
5.12.1
活动链接?:
控制台错误?
Fetch fitnessData from fitnessDataService.getFitnessData
FitnessDataService.js:68 Fetch fitnessObjectsWithDaysOff from fitnessDataService.getFitnessObjectsWithDaysOff
FitnessDataService.js:183 First preview day is Sat Jan 06 2018 00:00:00 GMT+0000 (GMT)
FitnessDataService.js:214 Generating FitnessData from storage took 369 ms.
fitnessTrendGraph.js:25 FitnessTrendGraph: message fitnessDataLoaded received
fitnessTrendGraph.js:267 Configure graph options
fitnessTrendTable.js:12 FitnessTrendTable: message fitnessDataLoaded received
fitnessTrendGraph.js:539 Generating Fitness Graph took 250 ms.
index.html#!/zonesSettings/heartRate:1 Unchecked runtime.lastError while running storage.set: QUOTA_BYTES_PER_ITEM quota exceeded
at eval (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/directives/xtdZones/XtdZones.js:78:41)
at Object.eval [as callback] (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/services/ChromeStorageService.js:78:17)
XtdZones.js:86 localStorageMustBeCleared has been updated to: true
11YearProgressController.js:260 Graph loaded
angular.js:14700 Possibly unhandled rejection: undefined
(anonymous) @ angular.js:14700
angular.js:14700 ARIA: Attribute " aria-label ", required for accessibility, is missing on node: <input ng-keypress="dialog.keypress($event)" md-autofocus ng-model="dialog.result" placeholder ng-required="dialog.required" class="ng-pristine ng-valid md-autofocus md-input ng-not-empty ng-valid-required ng-touched" id="input_167" aria-invalid="false" style>
(anonymous) @ angular.js:14700
index.html#!/zonesSettings/heartRate:1 Unchecked runtime.lastError while running storage.set: QUOTA_BYTES_PER_ITEM quota exceeded
at eval (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/directives/xtdZones/XtdZones.js:78:41)
at Object.eval [as callback] (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/services/ChromeStorageService.js:78:17)
XtdZones.js:86 localStorageMustBeCleared has been updated to: true
index.html#!/zonesSettings/heartRate:1 Unchecked runtime.lastError while running storage.set: QUOTA_BYTES_PER_ITEM quota exceeded
at eval (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/directives/xtdZones/XtdZones.js:78:41)
at Object.eval [as callback] (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/services/ChromeStorageService.js:78:17)
XtdZones.js:86 localStorageMustBeCleared has been updated to: true
index.html#!/zonesSettings/heartRate:1 Unchecked runtime.lastError while running storage.set: QUOTA_BYTES_PER_ITEM quota exceeded
at eval (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/directives/xtdZones/XtdZones.js:78:41)
at Object.eval [as callback] (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/services/ChromeStorageService.js:78:17)
XtdZones.js:86 localStorageMustBeCleared has been updated to: true
angular.js:14700 mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`.
(anonymous) @ angular.js:14700
11YearProgressController.js:260 Graph loaded
2angular.js:14700 mdMenu: The $mdOpenMenu method is deprecated. Please use `$mdMenu.open`.
(anonymous) @ angular.js:14700
index.html#!/zonesSettings/ascent:1 Unchecked runtime.lastError while running storage.set: QUOTA_BYTES_PER_ITEM quota exceeded
at eval (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/directives/xtdZones/XtdZones.js:78:41)
at Object.eval [as callback] (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/services/ChromeStorageService.js:78:17)
XtdZones.js:86 localStorageMustBeCleared has been updated to: true
AthleteSettingsController.js:48 userMaxHr has been updated to 177
AthleteSettingsController.js:30 localStorageMustBeCleared has been updated to true
AthleteSettingsController.js:48 userMaxHr has been updated to 178
AthleteSettingsController.js:30 localStorageMustBeCleared has been updated to true
index.html#!/zonesSettings/heartRate:1 Unchecked runtime.lastError while running storage.set: QUOTA_BYTES_PER_ITEM quota exceeded
at eval (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/directives/xtdZones/XtdZones.js:78:41)
at Object.eval [as callback] (chrome-extension://dhiaggccakkgdfcadnklkbljcgicpckn/options/app/services/ChromeStorageService.js:78:17)
XtdZones.js:86 localStorageMustBeCleared has been updated to: true
如有必要,链接屏幕截图或 YouTube 视频链接:
@luisgutz感谢您的报告和日志。 似乎是您的插件同步存储似乎超出了配额。 你能不能帮我做一下:
chrome.storage.local.getBytesInUse((bytesInUse) => {
let storage = {
bytesInUse,
quotaBytes: chrome.storage.local.QUOTA_BYTES,
percentUsage: bytesInUse / chrome.storage.local.QUOTA_BYTES * 100,
};
console.log(storage);
});
这将返回类似: {bytesInUse: 1626377, quotaBytes: 5242880, percentUsage: 31.020679473876957}
给我这个结果:)
谢谢你的帮助。
汤姆
嗨,托马斯,
这是命令的输出:
{bytesInUse: 2358341, quotaBytes: 5242880, percentUsage: 44.98178482055664}
所以我想我还有一点可用空间......
顺便说一句,谢谢你这么快看这个
路易斯
2018 年 1 月 5 日 19:46,Thomas Champagne通知@github.com
写道:
@luisgutz https://github.com/luisgutz感谢您的报告和日志。
似乎是您的插件同步存储似乎有配额
超过了。 你能不能帮我做一下:
- 使用 chrome 转到任何区域设置
- 像你做的那样按 F12/
- 在控制台中复制/粘贴/输入:
chrome.storage.local.getBytesInUse((bytesInUse) => {
让存储= {
字节使用中,
quotaBytes: chrome.storage.local.QUOTA_BYTES,
百分比使用:bytesInUse / chrome.storage.local.QUOTA_BYTES * 100,
};
控制台日志(存储);
});这将返回类似于:{bytesInUse: 1626377, quotaBytes:
5242880,百分比:31.020679473876957}给我这个结果:)
谢谢你的帮助。
汤姆
—
你收到这个是因为你被提到了。
直接回复本邮件,在GitHub上查看
https://github.com/thomaschampagne/stravistix/issues/498#issuecomment-355647908 ,
或静音线程
https://github.com/notifications/unsubscribe-auth/AAXf4rh8XN0E46vPuOxHMfkYLQIMn9Khks5tHnwUgaJpZM4RUzNs
.
哦,我的错误。 这将获得本地存储,而不是出现错误的同步存储。
你能不能重试一下:
chrome.storage.sync.getBytesInUse((bytesInUse) => {
let storage = {
bytesInUse,
quotaBytes: chrome.storage.sync.QUOTA_BYTES,
percentUsage: bytesInUse / chrome.storage.sync.QUOTA_BYTES * 100,
};
console.log(storage);
});
我更换了 chrome.storage。 本地通过 chrome.storage。 同步
谢谢 !
甚至更少!
{bytesInUse: 9207, quotaBytes: 5242880, percentUsage: 0.17560958862304688}
路易斯
2018 年 1 月 5 日 20:41,Thomas Champagne通知@github.com
写道:
哦,我的错误。 这将获得本地存储,而不是同步的存储
你有错误。
你能不能重试一下:chrome.storage.sync.getBytesInUse((bytesInUse) => {
让存储= {
字节使用中,
quotaBytes: chrome.storage.local.QUOTA_BYTES,
百分比使用:bytesInUse / chrome.storage.local.QUOTA_BYTES * 100,
};
控制台日志(存储);
});我更换了 chrome.storage。 本地通过 chrome.storage。 同步
谢谢 !
—
你收到这个是因为你被提到了。
直接回复本邮件,在GitHub上查看
https://github.com/thomaschampagne/stravistix/issues/498#issuecomment-355660112 ,
或静音线程
https://github.com/notifications/unsubscribe-auth/AAXf4llBC3qWYod8Udm9UfpJc7rdNImTks5tHokJgaJpZM4RUzNs
.
你使用健身趋势功能吗?
我的意思是,您可以将历史记录存储在插件存储区中。
如果您单击“3 点”并单击“关于”。
您应该会看到:“历史记录大小:XXX MB。”
你的是什么?
历史大小:2.2MB。
路易斯
2018 年 1 月 5 日 21:04,Thomas Champagne通知@github.com
写道:
你使用健身趋势功能吗?
我的意思是,您可以将历史记录存储在插件存储区中。
如果您单击“3 点”并单击“关于”。
您应该会看到:“历史记录大小:XXX MB。”
你的是什么?
—
你收到这个是因为你被提到了。
直接回复本邮件,在GitHub上查看
https://github.com/thomaschampagne/stravistix/issues/498#issuecomment-355665087 ,
或静音线程
https://github.com/notifications/unsubscribe-auth/AAXf4h4PU62wm-jVcOyKmb9nok2PQ2tPks5tHo5pgaJpZM4RUzNs
.
对我来说也是一样。 我的历史大小为 0,7MB
我有同样的问题。
同步历史大小:1.26 MB
并且无法节省电量或心率区。
如果我们还有什么可以帮助您的...
我也有同样的问题。
更改功率区并保存 > 心率区是默认设置
更改心率区并保存 > 功率区恢复为默认设置
@约翰DH
谢谢
嗨@thomaschampagne
该死:/没有错误消息是可怕的:/
这个在控制台的输出是什么?
chrome.storage.sync.getBytesInUse((bytesInUse) => {
let storage = {
bytesInUse,
quotaBytes: chrome.storage.sync.QUOTA_BYTES,
percentUsage: bytesInUse / chrome.storage.sync.QUOTA_BYTES * 100,
};
console.log(storage);
});
结果是:{bytesInUse: 6677, quotaBytes: 102400, percentUsage: 6.5205078125}
@JohanDH @luisgutz @delumerlino @davidcafor
简单的问题...你有一个谷歌帐户链接到你的 chrome 吗? (我的意思是您可以在各种 Chrome/计算机之间同步书签、密码……)。
因为我使用chrome.storage.sync在你的 chrome 同步存储中保存区域(用于跨 chrome 使用)。 如果没有google 帐户与您使用的 chrome 相关联,这可能是根本原因。
是的,我的 Google 帐户已链接到 Chrome。
好,谢谢。 再次@JohanDH @luisgutz @delumerlino @davidcafor
当您无法保存区域时。 你能把这个发送到控制台并打印结果吗:)
chrome.storage.sync.get({zones: null}, (data) => {
function byteCount(s) {
return encodeURI(s).split(/%..|./).length - 1;
}
console.log("User zones item size saved: " + byteCount(JSON.stringify(data)) + " bytes" );
});
它计算同步存储中用户区域项目的大小(谷歌限制为 8192 字节(https://developer.chrome.com/extensions/storage#property-sync))
保存的用户区域项目大小:6107 字节
好的,我想我重现了这个问题。
显示 9 个心率区而不是 3 个。
你正在经历这个吗?
汤姆
是的,这就是问题所在。
下一个版本解决了问题;)
托马斯,仍然面临着类似的事情。
在“区域设置”页面上,我删除了 Z5-Z14 并点击了保存,它给了我一个“超出 QUOTA_BYTES_PER_ITEM 配额”的错误。
在控制台上运行你的脚本,它说:
保存的用户区域项目大小:8092 字节
{bytesInUse: 10195, quotaBytes: 102400, percentUsage: 9.9560546875}
最有用的评论
是的,这就是问题所在。