Page 1 of 1

sync bug? Application throw an exception "Cannot read properties of undefined (reading 'then1')"

Posted: Sat Oct 04, 2025 12:34 am
by andyroooo
MMW v2024.1.0.3113 selecting albums to sync to MMA on Samsung S25+

I am selecting albums to sync to my s25+ on the tab "Sync list (Library -> Device)
scrolling through the albums and using the contents menu that appears when pausing (awesome feature)
periodically when scrolling (don't have to be clicking on anything) I get this error in a pop-up window (the "Abort Retry Ignore " text only shows up when I copy/paste the error):

Code: Select all

---------------------------
Application Error
---------------------------
Application throw an exception "Cannot read properties of undefined (reading 'then1')"

TypeError: Cannot read properties of undefined (reading 'then1')
    at CheckboxTree.localPromise (file:///controls/control:1342:26)
    at eval (file:///controls/deviceConfig/syncToDevice.js:299:51)
 at line 1342!!

Source code:
1338.     */
1339.     localPromise(promise) {
1340.         let _this = this;
1341.         let _uid = createUniqueID();
1342.         let pr = promise.then1(function (e) {
1343.             _this._localPromises[_uid] = undefined;
1344.             return e;
1345.         });
1346.         this._localPromises[_uid] = promise;
1347.         return promise; // return the original promise, not the pr (as pr does not reject because of then1 usage)


Callstack: Script: file:///mminit.js ; Func: window.myAlert ; Row: 313 ; Col: 17
Script: file:///mminit.js ; Func: window.alertException ; Row: 324 ; Col: 9
Script: file:///mminit.js ; Func: window.onerror ; Row: 289 ; Col: 13


Would you like to restart MediaMonkey in Safe mode?
---------------------------
Abort   Retry   Ignore   
---------------------------
It shows buttons restart/restart in safe mode/continue [I selected continue - I guess these are the "Abort/retry/ignore" buttons]

Then I see this message:

Code: Select all

---------------------------
Application Error
---------------------------
Application throw an exception Uncaught TypeError: Cannot read properties of undefined (reading 'then1')

Script: file:///controls/control

Line 1342:         let pr = promise.then1(function (e) {


Callstack:

file:///controls/control : localPromise(1342)

file:///controls/deviceConfig/syncToDevice.js : eval(299)



Would you like to restart MediaMonkey in Safe mode?
---------------------------
Abort   Retry   Ignore   
---------------------------
I select continue again and everything seems to work fine. I've been selecting songs and periodically syncing for a few hours and probably saw the message 10 times or so.

Re: sync bug? Application throw an exception "Cannot read properties of undefined (reading 'then1')"

Posted: Sat Oct 04, 2025 12:48 pm
by Lowlander
Please try again with the latest MediaMonkey 2024.2 beta build? Do you still experience the same issue?

Re: sync bug? Application throw an exception "Cannot read properties of undefined (reading 'then1')"

Posted: Fri Oct 10, 2025 12:31 pm
by rusty
Hi,

I can't replicate this at all with 2024.2.0.3168. I guess we can consider the issue resolved?

-Rusty