• Bugs
  • A JavaScript error occurred in the main process

I get javascript error when I try click that ok mark on suggested face.

[Window Title]
Error

[Main Instruction]
A JavaScript error occurred in the main process

[Content]
Uncaught Exception:
RangeError: Array buffer allocation failed
at new ArrayBuffer (<anonymous>)
at new Uint8Array (<anonymous>)
at new FastBuffer (node:internal/buffer:959:5)
at createUnsafeBuffer (node:internal/buffer:1062:12)
at Function.allocUnsafeSlow (node:buffer:390:10)
at Cd (C:\Users\makel\AppData\Local\tonfotos\app-1.9.1\resources\app.webpack\main\index.js:2:2885496)
at C:\Users\makel\AppData\Local\tonfotos\app-1.9.1\resources\app.webpack\main\index.js:2:2891305
at Realm.<anonymous> (C:\Users\makel\AppData\Local\tonfotos\app-1.9.1\resources\app.webpack\main\index.js:2:325668)
at Object.assign_person (C:\Users\makel\AppData\Local\tonfotos\app-1.9.1\resources\app.webpack\main\index.js:2:324741)
at wd (C:\Users\makel\AppData\Local\tonfotos\app-1.9.1\resources\app.webpack\main\index.js:2:2884918)

[OK]

    Mikko Based on the error message, there is just not enough memory for program to run properly. How much free memory do you have?

    Memory used 14,4 GB and free 17,3 GB
    I have Tonfotos at C: and photos at E: and both have few hundred gigabytes free space.
    Tonfotos uses 127,9 MB of memory at time of that error message.

      Mikko Tonfotos uses 127,9 MB of memory at time of that error message.

      This is odd, it usually takes more.

      Can you still reproduce this error? Does it happen on every photos or on specific one?

      So far on every photo, but I haven’t tried them all. Few photos on maybe 10 different person.
      Also that error comes when I start software, at least I think it is the same one:

      [Window Title]
      Error

      [Main Instruction]
      A JavaScript error occurred in the main process

      [Content]
      Uncaught Exception:
      RangeError: Array buffer allocation failed
      at new ArrayBuffer (<anonymous>)
      at new Uint8Array (<anonymous>)
      at new FastBuffer (node:internal/buffer:959:5)
      at createUnsafeBuffer (node:internal/buffer:1062:12)
      at Function.allocUnsafeSlow (node:buffer:390:10)
      at Cd (C:\Users\makel\AppData\Local\tonfotos\app-1.9.1\resources\app.webpack\main\index.js:2:2885496)
      at zd (C:\Users\makel\AppData\Local\tonfotos\app-1.9.1\resources\app.webpack\main\index.js:2:2891073)
      at IpcMainImpl.<anonymous> (C:\Users\makel\AppData\Local\tonfotos\app-1.9.1\resources\app.webpack\main\index.js:2:2875893)
      at IpcMainImpl.emit (node:events:513:28)
      at EventEmitter.<anonymous> (node:electron/js2c/browser_init:2:81053)

      [OK]

      I have restarted the software and rebooted computer also.
      Retested that memory consumtion after reboot.
      After I clicked ok on that error Tonfotos says ‘Ready’ at the lower left corner and takes 269,4 MB of memory

        Mikko OK, I see. It could be some computer misconfiguration, or data corruption in database. If you don’t mind we can do the following to see which one it is. If you can archive the content of %AppData%/tonfotos (your DB and config), upload to cloud drive and send me link to support@tonfotos.com, I will check it on my test PC. If that is program issue, theoretically I will see the same error. This way we will at least know where to go further from here.

        That sounds good, I’ll send it rightaway

        Write a Reply...