forums.tropy.org

Error message when opening Tropy

Morning…
Each time I open Tropy I receive the error message below. If I close Tropy and the reopen it, it does so without the error message, but it’s a bit annoying having to do that each time I want to use it. Any suggestions? Thanks in advance for your help!

{“msg”:“unhandled error: ResourceRequest timed out”,“stack”:“TimeoutError$1: ResourceRequest timed out\n at ResourceRequest._fireTimeout (C:\Users\Jon Winder\AppData\Local\tropy\app-1.9.0\resources\app.asar\lib\db-f5c74430.js:13084:17)\n at bound (C:\Users\Jon Winder\AppData\Local\tropy\app-1.9.0\resources\app.asar\lib\db-f5c74430.js:13030:15)”,“system”:“Windows_NT 10.0.18363 (x64)”,“time”:1615973104118,“version”:“1.9.0”}

Thanks for reporting!

Can you clarify when exactly the error message occurs: you’re saying it happens each time you open Tropy, but not when you close and re-open, but how exactly do you close and re-open? On Windows, if you close a the sole project window and then start Tropy again the process is identical to when you start Tropy the first time – so the question would be what’s different to the first start where the error occurred. Is it that the error happens the first time you start Tropy after re-starting the computer, and then it works on successive tries? Or is it that the error occurs when you start Tropy after some time has expired, and then it works when you start it again shortly after the unsuccessful attempt?

In any case, could you check the log file (Help → Show log files) the next time the error occurs, and post it here? That might help figuring this out. Judging by the error it seems like there is a timeout while opening the project file; another thing you could try is to create a new, empty, project and try to see if you can reproduce the error with it.

Hi agian,
Here’s the text from the log file. However, I think I’ve figured it out after some experimentation - and suspect its has something to do with my computer, rather than Tropy. When I start work in the morning I switch on my computer and open Tropy, Word, Zotero and Firefox all at the same time - and that’s when the error occurs. If I let each programme open fully before opening the next one I don’t seem to get the Tropy error message. So, in response to your question, I wonder if the difference is that Tropy doesn’t like opening when lots of other programmes are also trying to open, but is happy when I open it on it’s own?

{“level”:30,“time”:1616577274012,“type”:“browser”,“name”:“main”,“args”:[],“opts”:{“env”:“production”,“autoUpdates”:true,“webgl”:false,“debug”:false,“trace”:false,“data”:“C:\Users\Jon Winder\AppData\Roaming\Tropy”,“cache”:“C:\Users\Jon Winder\AppData\Roaming\Tropy\cache”,“logs”:“C:\Users\Jon Winder\AppData\Roaming\Tropy\log”},“version”:“1.9.0”,“msg”:“main.init 1.9.0 Windows_NT 10.0.18363 (x64)”}
{“level”:30,“time”:1616577274067,“type”:“browser”,“name”:“main”,“msg”:“plugins scanned: 0”}
{“level”:30,“time”:1616577274070,“type”:“browser”,“name”:“main”,“msg”:“app state restored”}
{“level”:30,“time”:1616577274073,“type”:“browser”,“name”:“main”,“file”:“C:\Users\Jon Winder\Documents\PhD\4.1 Tropy\PhD1.tpy”,“msg”:“open new project window”}
{“level”:30,“time”:1616577274576,“type”:“browser”,“name”:“main”,“msg”:“ready after 4658.199951171875ms”}
{“level”:30,“time”:1616577274577,“type”:“browser”,“name”:“main”,“msg”:“switch to “light” theme”}
{“level”:30,“time”:1616577277814,“type”:“renderer”,“name”:“project”,“dpx”:1,“opts”:{“aqua”:false,“contrast”:false,“dark”:false,“env”:“production”,“documents”:“C:\Users\Jon Winder\Documents”,“maximizable”:true,“minimizable”:true,“pictures”:“C:\Users\Jon Winder\Pictures”,“scrollbars”:true,“theme”:“light”,“file”:“C:\Users\Jon Winder\Documents\PhD\4.1 Tropy\PhD1.tpy”,“recent”:[“C:\Users\Jon Winder\Documents\PhD\4.1 Tropy\PhD1.tpy”,“C:\Users\Jon Winder\OneDrive - University of Kent\Documents\PhD\4.1 Tropy\PhD1.tpy”,“C:\Users\Jon Winder\Desktop\test.tpy”,“C:\Users\Jon Winder\Desktop\Test.tpy”,“C:\Users\Jon Winder\Documents\TESTnew.tpy”],“data”:“C:\Users\Jon Winder\AppData\Roaming\Tropy”,“debug”:false,“dev”:false,“cache”:“C:\Users\Jon Winder\AppData\Roaming\Tropy\cache”,“plugins”:“C:\Users\Jon Winder\AppData\Roaming\Tropy\plugins”,“fontSize”:“14px”,“frameless”:false,“level”:“info”,“locale”:“en”,“log”:“C:\Users\Jon Winder\AppData\Roaming\Tropy\log\tropy.log”,“uuid”:“7ce73590-22f5-11e9-9cf3-2521f68433c8”,“update”:{},“version”:“1.9.0”,“webgl”:true,“zoom”:1},“msg”:“project.init”}
{“level”:30,“time”:1616577283254,“type”:“renderer”,“name”:“project”,“msg”:“plugins scanned: 0”}
{“level”:30,“time”:1616577283254,“type”:“renderer”,“name”:“project”,“msg”:“plugins loaded: 0”}
{“level”:30,“time”:1616577303019,“type”:“renderer”,“name”:“project”,“msg”:“restoring recent@tropy”}
{“level”:30,“time”:1616577303022,“type”:“renderer”,“name”:“project”,“msg”:“restoring settings@tropy”}
{“level”:30,“time”:1616577303022,“type”:“renderer”,“name”:“project”,“msg”:“restoring ui@tropy”}
{“level”:30,“time”:1616577303027,“type”:“renderer”,“name”:“project”,“mode”:“w+”,“msg”:“open db C:\Users\Jon Winder\AppData\Roaming\Tropy\ontology.db”}
{“level”:30,“time”:1616577325771,“type”:“renderer”,“name”:“project”,“msg”:“Esper.instance created using webgl renderer”}
{“level”:30,“time”:1616577325818,“type”:“renderer”,“name”:“project”,“msg”:“project ready 51273ms [dom:8462ms win:259ms req:19748ms]”}
{“level”:40,“time”:1616577325825,“type”:“renderer”,“name”:“project”,“stack”:“TimeoutError$1: ResourceRequest timed out\n at ResourceRequest._fireTimeout (C:\Users\Jon Winder\AppData\Local\tropy\app-1.9.0\resources\app.asar\lib\db-f5c74430.js:13084:17)\n at bound (C:\Users\Jon Winder\AppData\Local\tropy\app-1.9.0\resources\app.asar\lib\db-f5c74430.js:13030:15)”,“msg”:“unexpected error in *ontology”}
{“level”:30,“time”:1616577325832,“type”:“renderer”,“name”:“project”,“mode”:“w”,“msg”:“open db C:\Users\Jon Winder\Documents\PhD\4.1 Tropy\PhD1.tpy”}
{“level”:30,“time”:1616577334087,“type”:“browser”,“name”:“main”,“msg”:“checking for updates…”}
{“level”:30,“time”:1616577334862,“type”:“renderer”,“name”:“project”,“mode”:“w”,“msg”:“open db C:\Users\Jon Winder\Documents\PhD\4.1 Tropy\PhD1.tpy”}
{“level”:40,“time”:1616577334969,“type”:“renderer”,“name”:“project”,“query”:“PRAGMA user_version”,“ms”:7846,“msg”:“SLOW: db query took 7846ms”}
{“level”:30,“time”:1616577335833,“type”:“renderer”,“name”:“project”,“msg”:“persisting recent@tropy”}
{“level”:30,“time”:1616577335833,“type”:“renderer”,“name”:“project”,“msg”:“persisting settings@tropy”}
{“level”:30,“time”:1616577335834,“type”:“renderer”,“name”:“project”,“msg”:“persisting ui@tropy”}
{“level”:60,“time”:1616577335835,“type”:“renderer”,“name”:“project”,“stack”:“TimeoutError$1: ResourceRequest timed out\n at ResourceRequest._fireTimeout (C:\Users\Jon Winder\AppData\Local\tropy\app-1.9.0\resources\app.asar\lib\db-f5c74430.js:13084:17)\n at bound (C:\Users\Jon Winder\AppData\Local\tropy\app-1.9.0\resources\app.asar\lib\db-f5c74430.js:13030:15)”,“msg”:“unhandled error in saga middleware”}
{“level”:60,“time”:1616577335847,“type”:“browser”,“name”:“main”,“stack”:“TimeoutError$1: ResourceRequest timed out\n at ResourceRequest._fireTimeout (C:\Users\Jon Winder\AppData\Local\tropy\app-1.9.0\resources\app.asar\lib\db-f5c74430.js:13084:17)\n at bound (C:\Users\Jon Winder\AppData\Local\tropy\app-1.9.0\resources\app.asar\lib\db-f5c74430.js:13030:15)”,“type”:“Error”,“msg”:“ResourceRequest timed out”}
{“level”:30,“time”:1616577338183,“type”:“browser”,“name”:“main”,“msg”:“no updates available”}
{“level”:40,“time”:1616577386454,“type”:“renderer”,“name”:“project”,“query”:“PRAGMA integrity_check(10)”,“ms”:51101,“msg”:“SLOW: db query took 51101ms”}

If your computer is under heavy load (such as while opening multiple programs) it can cause some long running tasks to time out – so yes, this is most certainly the reason for the error. How large, in terms of number of items/photos is your project? Opening the project and the initial integrity check take 5-7 seconds according to the log which is a suspiciously long time. Could you share your hardware specs? Most notably the CPU and the hard drive type.

The project has 186 items made up of about 2500 photos. My laptop is an Lenovo ideapad 310-15ISK, HDD drive, processor is an Intel Core i3-6006u cpu @ 2.00GHz. Not that any of that means much to me I’m afraid.

Thanks for your ongoing help and for Tropy in general - it’s made my research so much easier!

Thanks! Your project is definitely far below a size where I would expect any performance issues. My own test device for Windows is an old Surface with an i5 and I don’t think that the i3 should be that much slower. I think it’s most likely that either the hard drive is very slow or that there is some issue reading from the file system: I’ve noticed this on Windows in the past that file reads would sometimes hang a couple of seconds, especially when there was much disk activity at the time.