Hey Andrey,

I was playing around with the new tag feature and managed to brick my tonfotos installation. When I open it I am now greeted with the following message:

View Image

Here is the information I can give you:

  • Running version 1.2.0
  • 2021 M1 MacBook Pro (running Ventura 13.1)
  • Crash occurred after creating a tag with spaces in the name. I think i called it “this is a tag” or something while I was testing the feature
  • I am unable to do anything else in the program while this message is displayed, when I try to close it another one pops up immediately (with exactly the same message)

Please tell me where crash logs are stored so I can send you some more information. Let me know anything else I need to send you to help debug.

I am very sorry to hear that. I am already looking into crash dump. I will come back to you later.

    Andrey I was afraid that one of your files became corrupted as result of XMP modification, but thanks heaven, this is not what happened. For some reason your Tonfotos database got corrupt. Specifically, database record about one of your tags or albums. I assume this is the same tag that you have just created. I don’t know what could be the reason for that, but let’s focus first on “reviving” your installation.

    Most radical solution would be to delete database completely, but that would mean reindex everything from the scratch. I think there could be easier way. Please follow these steps:

    • Close Tonfotos (not just window, but whole application, it should disappear from your dock).
    • I guess that you already know, at least partially, what files are associated with this error, at least in what directory. So I would suggest you to temporarily move those files to some other place, which Tonfotos does not index, while Tonfotos is closed.
    • Start Tonfotos again, let it complete its rescan and detect that those files are missing. Please be carefull during this and do not do any extra moves to not provoke this crash again.
    • When you will see “Ready” in status string, that means those files already disappeared from your database, and most likely troublesome tag is gone too.
    • Switch to “Albums” and check if this tag is still there. If it is gone - then you are fine. If not - delete it. I hope it will not crash during this operation.
    • When it is gone - you can return those files to their original location and start working normally.

    Please let me know how it went.

      Andrey I am not sure exactly which photo it was that I tagged, so I can’t move one specific photo out of the folder. Should I temporarily remove the .tonfotos.ini file and allow the application to rescan the entire folder?

        Jamie What we are trying to achieve here is to delete this corrupted record from database. I guess you can’t do that directly (if you can - that this would be the easiest way, btw.) So the trick is to let Tonfotos decide there is no more files that have this tag, so it will delete it itself.

        So my idea was to hide files that were marked with this tag from Tonfotos. You don’t actlually need to cherry pick, you can hide whole folder that contain those files. Or you can even delete that whole source from the library, if you are OK with full rescan later.

        tonfotos.ini has nothing to do with it.

        Andrey I tried systematically going through the locations that Tonfotos scans for images and moving the entire folder into a new location (one that Tonfotos does not scan)

        After moving all my folders I am still getting an error.

        All images are now in a folder on my desktop (not a scanned location) and I force quit Tonfotos and restarted it. No change.

          Jamie ok, got it. Please give me some time to think and experiment. Maybe I will be able to reproduce same situation in my test and then can get idea how to fix.

          I have a very similar problem with a new installation. Everything was fine until I tried to tag a photo; after that, it kept hanging up on a scan with the JavaScript error. However, I can still use much of the program, unlike the person who opened this case.

          `—DEBUG OUTPUT STARTED—
          C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\tonfotos.exe undefined
          Arch: x64 Platform: win32
          OS Version: Windows 10 Pro for Workstations
          OS Release: 10.0.19044

          Sun Jan 22 2023 12:36:00 GMT+0200 (Israel Standard Time)

          +0ms | checkpoint config: 3 ms
          +23ms | checkpoint app ready: 26 ms
          +53ms | Server running at http://127.0.0.1:9871/
          +19ms | scanning 1674217519184 Pictures Storage
          +1ms | Auto update URL: https://tonfotos.com/distribution/tonfotos/release/win32/x64
          +11ms | intercepted file:///C:/Users/itzik/AppData/Local/tonfotos/app-1.2.0/resources/app/.webpack/renderer/main_window/index.html
          +3008ms | New WIA device: {
          id: ‘{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0000’,
          Manufacturer: ‘Microsoft’,
          Description: ‘WSD Scan Device’,
          Type: 65537,
          Port: ‘urn:uuid:e3248000-80ce-11db-8000-30055c8aa69b/uri:e3248000-80ce-11db-8000-30055c8aa69b/ScannerService’,
          Name: ‘Brother MFC-L2700DW series [30055c8aa69b]’,
          Server: ‘local’,
          ‘Remote Device ID’: '',
          ‘UI Class ID’: ‘{00000000-0000-0000-0000-000000000000}’,
          ‘Hardware Configuration’: 0,
          BaudRate: '',
          ‘STI Generic Capabilities’: 49,
          ‘WIA Version’: ‘2.0’,
          ‘Driver Version’: ‘10.0.19041.1806’,
          ‘PnP ID String’: ‘\\?\swd#dafwsdprovider#urn:uuid:e3248000-80ce-11db-8000-30055c8aa69b#uri:e3248000-80ce-11db-8000-30055c8aa69b#scannerservice#{6bdd1fc6-810f-11d0-bec7-08002be2092f}’,
          ‘STI Driver Version’: 3
          }
          +1ms | New WIA device: {
          id: ‘{6BDD1FC6-810F-11D0-BEC7-08002BE2092F}\0001’,
          Manufacturer: ‘Brother’,
          Description: ‘Brother MFC-L2700DW’,
          Type: 65537,
          Port: ‘\\.\Usbscan0’,
          Name: ‘Brother MFC-L2700DW’,
          Server: ‘local’,
          ‘Remote Device ID’: '',
          ‘UI Class ID’: ‘{4DB1AD10-3391-11D2-9A33-00C04FA36145}’,
          ‘Hardware Configuration’: 0,
          BaudRate: '',
          ‘STI Generic Capabilities’: 57,
          ‘WIA Version’: ‘2.0’,
          ‘Driver Version’: ‘3.20.2.2’,
          ‘PnP ID String’: ‘\\?\usb#vid_04f9&pid_0331&mi_01#6&26f88f1d&0&0001#{6bdd1fc6-810f-11d0-bec7-08002be2092f}’,
          ‘STI Driver Version’: 3
          }
          +47794ms | - file size has been modified (\NAS\homes\admin\Itzik\Pictures Storage\Photos -temp\2011-02\02072011201.jpg) 345153 -> 347234
          +122ms | —–>> CRASH DUMP <<—–
          +0ms | TypeError: Cannot read properties of null (reading ‘type’)
          at C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:364327
          at Proxy.filter (<anonymous>)
          at to (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:364295)
          at Realm.<anonymous> (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:343381)
          at Object.update_file (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:342938)
          at Su (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:3129764)
          at C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:3141569
          at Object.<anonymous> (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:327807) uncaughtException
          +574619ms| Clusterization buffer read from cache successfully.
          +5648ms | MenuCommand context_to_person
          +5052ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 3 116 no_more 3 cur 116 Ovadia
          +25733ms | MenuCommand context_to_person
          +5042ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 4 116 no_more 4 cur 116 Ovadia
          +16652ms | MenuCommand context_to_person
          +15109ms | MenuCommand confirm_recognized_faces
          +5054ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 5 116 no_more 4 cur 115 Ovadia
          +523ms | MenuCommand confirm_recognized_faces
          +5033ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 3 26 no_more 92 cur 115 Ovadia
          +748ms | MenuCommand confirm_recognized_faces
          +39551ms | —–>> CRASH DUMP <<—–
          +1ms | TypeError: Cannot read properties of null (reading ‘type’)
          at C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:341702
          at Proxy.some (<anonymous>)
          at C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:341670
          at Proxy.map (<anonymous>)
          at Object.get (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:341550)
          at IpcMainImpl.<anonymous> (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:3206192)
          at IpcMainImpl.emit (events.js:376:20)
          at Object.<anonymous> (electron/js2c/browser_init.js:161:9959)
          at Object.emit (events.js:376:20) uncaughtException
          +30027ms | MenuCommand menu-preferences
          +17ms | intercepted file:///C:/Users/itzik/AppData/Local/tonfotos/app-1.2.0/resources/app/.webpack/renderer/preferences_window/index.html
          +44840ms | MenuCommand confirm_recognized_faces
          +5043ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 22 26 no_more 21 cur 25 Ovadia
          +17759ms | MenuCommand confirm_recognized_faces
          +5023ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 1 26 no_more 0 cur 25 Ovadia
          +6257ms | MenuCommand context_file_info_new_person
          +5041ms | New faces assigned to person 1674379728533 confident: 0 ,uncertain: 2 4 no_more 0 cur 2 Sara
          +11ms | New faces assigned to person 1674384619386 confident: 1 ,uncertain: 6 6 no_more 0 cur 0 New person
          +3379ms | MenuCommand group_rename_person
          +50336ms | MenuCommand context_to_person
          +4334ms | MenuCommand confirm_recognized_faces
          +5031ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 20 27 no_more 19 cur 26 Ovadia
          +5045ms | New faces assigned to person 1674384619386 confident: 1 ,uncertain: 5 9 no_more 0 cur 4 Dovi
          +4571ms | MenuCommand confirm_recognized_faces
          +5044ms | New faces assigned to person 1674384619386 confident: 2 ,uncertain: 10 16 no_more 0 cur 6 Dovi
          +48442ms | MenuCommand context_to_person
          +5053ms | New faces assigned to person 1674384619386 confident: 0 ,uncertain: 5 19 no_more 2 cur 16 Dovi
          +2476ms | MenuCommand confirm_recognized_faces
          +5036ms | New faces assigned to person 1674379375629 confident: 1 ,uncertain: 18 26 no_more 17 cur 25 Ovadia
          +15855ms | MenuCommand confirm_recognized_faces
          +5035ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 2 27 no_more 0 cur 25 Ovadia
          +18338ms | MenuCommand context_to_person
          +3474ms | MenuCommand confirm_recognized_faces
          +5022ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 2 28 no_more 0 cur 26 Ovadia
          +5045ms | New faces assigned to person 1674384619386 confident: 0 ,uncertain: 1 20 no_more 0 cur 19 Dovi
          +1530ms | MenuCommand context_to_person
          +3722ms | MenuCommand confirm_recognized_faces
          +5037ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 2 28 no_more 1 cur 27 Ovadia
          +5042ms | New faces assigned to person 1674384619386 confident: 0 ,uncertain: 3 20 no_more 3 cur 20 Dovi
          +827ms | Error parsing exif for file \NAS\homes\admin\Itzik\Pictures Storage\Photos -temp\Hannukah 2011\2011-12-21 01-43-17-271.jpg RangeError [ERR_OUT_OF_RANGE]: The value of “offset” is out of range. It must be >= 0 and <= 220. Received 702066647
          at boundsError (internal/buffer.js:83:9)
          at Uint8Array.readUInt16LE (internal/buffer.js:240:5)
          at nextUInt16 (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:135203)
          at e (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:150394)
          at Object.parseTags (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:151074)
          at l.parse (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:154756)
          at C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:326190
          at Object.<anonymous> (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:326414) {
          code: ‘ERR_OUT_OF_RANGE’
          }
          +1ms | Error
          at C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:3237335
          at Array.forEach (<anonymous>)
          at _e (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:3237307)
          at C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:326367
          at Object.<anonymous> (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:326414)
          +5999ms | MenuCommand confirm_recognized_faces
          +5035ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 10 28 no_more 9 cur 27 Ovadia
          +8886ms | MenuCommand confirm_recognized_faces
          +5036ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 1 28 no_more 0 cur 27 Ovadia
          +12449ms | MenuCommand context_file_info_new_person
          +5049ms | New faces assigned to person 1674379728533 confident: 0 ,uncertain: 2 4 no_more 0 cur 2 Sara
          +7ms | New faces assigned to person 1674384619386 confident: 0 ,uncertain: 5 25 no_more 0 cur 20 Dovi
          +5270ms | MenuCommand group_rename_person
          +17823ms | MenuCommand confirm_recognized_faces
          +5023ms | New faces assigned to person 1674379375629 confident: 0 ,uncertain: 2 29 no_more 0 cur 27 Ovadia
          +4642ms | —–>> CRASH DUMP <<—–
          +1ms | TypeError: Cannot read properties of null (reading ‘type’)
          at C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:341702
          at Proxy.some (<anonymous>)
          at C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:341670
          at Proxy.map (<anonymous>)
          at Object.get (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:341550)
          at IpcMainImpl.<anonymous> (C:\Users\itzik\AppData\Local\tonfotos\app-1.2.0\resources\app.webpack\main\index.js:2:3206192)
          at IpcMainImpl.emit (events.js:376:20)
          at Object.<anonymous> (electron/js2c/browser_init.js:161:9959)
          at Object.emit (events.js:376:20) uncaughtException
          +29636ms | MenuCommand context_to_person
          +407053ms| MenuCommand context_file_info_new_person
          +5099ms | New faces assigned to person 1674384619386 confident: 0 ,uncertain: 4 29 no_more 0 cur 25 Dovi
          +2876ms | MenuCommand group_rename_person
          +15638ms | MenuCommand context_file_info_new_person
          +5054ms | New faces assigned to person 1674379728533 confident: 0 ,uncertain: 3 7 no_more 0 cur 4 Sara
          +5ms | New faces assigned to person 1674384619386 confident: 0 ,uncertain: 2 31 no_more 0 cur 29 Dovi
          +11174ms | MenuCommand group_remove_person
          +21844ms | MenuCommand context_to_person
          +24336ms | MenuCommand context_to_person
          +9202ms | MenuCommand context_to_person
          +5070ms | New faces assigned to person 1674384869519 confident: 0 ,uncertain: 2 2 no_more 0 cur 0 Yitzi
          +1310ms | MenuCommand context_to_person
          +5070ms | New faces assigned to person 1674384619386 confident: 0 ,uncertain: 1 29 no_more 0 cur 28 Dovi
          +8490ms | MenuCommand context_to_person
          +13268ms | MenuCommand context_to_person
          +2307ms | MenuCommand context_to_person
          +2785ms | MenuCommand context_to_person
          +5056ms | New faces assigned to person 1674379822260 confident: 0 ,uncertain: 1 1 no_more 0 cur 0 Ellie
          +4194ms | MenuCommand context_to_person
          +16740ms | MenuCommand context_to_person
          +25869ms | MenuCommand context_add_face
          +5473ms | MenuCommand context_to_person
          +13164ms | MenuCommand context_add_face
          +265ms | intercepted file:///C:/Users/itzik/AppData/Local/tonfotos/app-1.2.0/resources/app/.webpack/renderer/message_box/index.html
          +12464ms | MenuCommand context_add_face
          +9057ms | MenuCommand context_to_person
          +20097ms | MenuCommand context_copy_files
          `

            Itzik thank you for reporting. We are already working on the issue.

            Issue is fixed in 1.2.1, please update.

            Write a Reply...