crossover icon indicating copy to clipboard operation
crossover copied to clipboard

CrossOver Error (`setBadge`) | PLEASE UPDATE TO THE LATEST VERSION

Open At-Heal opened this issue 2 years ago • 10 comments

<!-- Please succinctly describe your issue and steps to reproduce it. Screenshots are worth a hundred bug reports! -->


---

TypeError: windows.setBadge is not a function:
TypeError: windows.setBadge is not a function
at NsisUpdater.<anonymous> (C:\Users\hrvoj\AppData\Local\Temp\27UaVUQfGUYgaOqe4G5VUkyhLMU\resources\app.asar\src\main\auto-update.js:59:13)
at NsisUpdater.emit (events.js:315:20)
at NsisUpdater.dispatchUpdateDownloaded (C:\Users\hrvoj\AppData\Local\Temp\27UaVUQfGUYgaOqe4G5VUkyhLMU\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:581:10)
at Object.done (C:\Users\hrvoj\AppData\Local\Temp\27UaVUQfGUYgaOqe4G5VUkyhLMU\resources\app.asar\node_modules\electron-updater\out\BaseUpdater.js:42:14)
at done (C:\Users\hrvoj\AppData\Local\Temp\27UaVUQfGUYgaOqe4G5VUkyhLMU\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:719:25)
at async NsisUpdater.executeDownload (C:\Users\hrvoj\AppData\Local\Temp\27UaVUQfGUYgaOqe4G5VUkyhLMU\resources\app.asar\node_modules\electron-updater\out\AppUpdater.js:757:12)

---

CrossOver 3.0.0-4

Electron 11.5.0 win32 10.0.19044 Locale: en-US

At-Heal avatar Apr 11 '22 05:04 At-Heal

CrossOver 3.0.0-4 had some errors, can you try v3? https://github.com/lacymorrow/crossover/releases

lacymorrow avatar Apr 12 '22 16:04 lacymorrow

I'm really sorry about this, I believe I pushed a bug in version 2.7.4 that actually broke the auto-updater.

The fix is to manually install v3.0.0: https://github.com/lacymorrow/crossover/releases/tag/v3.0.0

lacymorrow avatar Apr 12 '22 18:04 lacymorrow

duplicate #153 #154 #155

lacymorrow avatar Apr 12 '22 18:04 lacymorrow

Still happening to me in version 3.1. Did a full clean (uninstalled manually the other version 2.7.4, remove anything remaining in app data). First start is fine, on the second one it starts happening endlessly again.

I saw it's a bug coming from 2.7.4 that got into 3.0 "beta", but still happen to me in 3.1.

nomis51 avatar Apr 14 '22 20:04 nomis51

@nomis51 do you remember what the error you received was? I’m working on this now, it’s due to the windows store build

lacymorrow avatar Apr 14 '22 20:04 lacymorrow

@nomis51 do you remember what the error you received was? I’m working on this now, it’s due to the windows store build

it's the setBadge one, here the stack trace

TypeError: Cannot read property 'setBadge' of undefined
    at Object.setBadge (C:/Users/me/AppData/Local/Programs/crossover/resources/app.asar/src/main/dock.js:5:35)
    at NsisUpdater.onUpdateDownloaded (C:/Users/me/AppData/Local/Programs/crossover/resources/app.asar/src/main/auto-update.js:51:7)
    at NsisUpdater.dispatchUpdateDownloaded (C:/Users/me/AppData/Local/Programs/crossover/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:581:10)
    at Object.done (C:/Users/me/AppData/Local/Programs/crossover/resources/app.asar/node_modules/electron-updater/out/BaseUpdater.js:42:14)
    at done (C:/Users/me/AppData/Local/Programs/crossover/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:719:25)
    at async NsisUpdater.executeDownload (C:/Users/me/AppData/Local/Programs/crossover/resources/app.asar/node_modules/electron-updater/out/AppUpdater.js:730:14)```

nomis51 avatar Apr 14 '22 23:04 nomis51

I've updated things and added fixes in v3.1.5, check out https://github.com/lacymorrow/crossover/releases/latest

lacymorrow avatar Apr 15 '22 18:04 lacymorrow

I've updated things and added fixes in v3.1.5, check out https://github.com/lacymorrow/crossover/releases/latest

Works perfectly!

nomis51 avatar Apr 15 '22 19:04 nomis51

THANK YOU for testing it out, I really appreciate your help @nomis51

lacymorrow avatar Apr 15 '22 20:04 lacymorrow

Duplicates: #189, #187

lacymorrow avatar May 27 '22 21:05 lacymorrow