Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some problems at boot of Tropy 1.5 #374

Open
Emic37 opened this issue Jun 8, 2019 · 17 comments
Open

Some problems at boot of Tropy 1.5 #374

Emic37 opened this issue Jun 8, 2019 · 17 comments

Comments

@Emic37
Copy link

Emic37 commented Jun 8, 2019

Ouch ! I upgraded my Tropy to last version and I encountered some problems at boot and the application doesn't work properly.

The two first errors seems concern GPU process :

{"msg":"unhandled error: GPU process crashed unexpectedly","stack":"Error: GPU process crashed unexpectedly\n at App.<anonymous> (/Applications/Tropy.app/Contents/Resources/app.asar/lib/browser/tropy.js:713:38)\n at App.emit (events.js:194:13)","system":"Darwin 17.7.0 (x64)","time":1560002794932,"version":"1.5.0"}

and
{"msg":"unhandled error: GPU process crashed unexpectedly","stack":"Error: GPU process crashed unexpectedly\n at App.<anonymous> (/Applications/Tropy.app/Contents/Resources/app.asar/lib/browser/tropy.js:713:38)\n at App.emit (events.js:194:13)","system":"Darwin 17.7.0 (x64)","time":1560002832294,"version":"1.5.0"}

The third error seems to concern my project. The loading of my project fails and Tropy displays nothing. the loading of my project fails and Tropy displays the home page. After that, I can always access Tropy's options but it's so long to quit it.

{"msg":"/Users/Aymeric/OneDrive/Applications/Tropy/patindus_val_aubois.tpy","stack":"Error: Migration #1904161246 failed: SQLITE_CONSTRAINT: UNIQUE constraint failed: trash.id\n at /Applications/Tropy.app/Contents/Resources/app.asar/lib/common/migration.js:44:13\n at tryCatcher (/Applications/Tropy.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/util.js:16:23)\n at Promise._settlePromiseFromHandler (/Applications/Tropy.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:517:31)\n at Promise._settlePromise (/Applications/Tropy.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:574:18)\n at Promise._settlePromise0 (/Applications/Tropy.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:619:10)\n at Promise._settlePromises (/Applications/Tropy.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/promise.js:695:18)\n at _drainQueueStep (/Applications/Tropy.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:138:12)\n at _drainQueue (/Applications/Tropy.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:131:9)\n at Async._drainQueues (/Applications/Tropy.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:147:5)\n at Async.drainQueues (/Applications/Tropy.app/Contents/Resources/app.asar/node_modules/bluebird/js/release/async.js:17:14)","system":"Darwin 17.7.0 (x64)","time":1560002852679,"version":"1.5.0"}

I come back to 1.4.5 waiting a fix. I remain at your disposal for more informations. Thanks in advance.

@Emic37
Copy link
Author

Emic37 commented Jun 8, 2019

Just additional information : I have the same problem with beta3.

@Emic37 Emic37 changed the title Some problems with new version 1.5.0 Some problems at boot of new Tropy 1.5 Jun 8, 2019
@Emic37 Emic37 changed the title Some problems at boot of new Tropy 1.5 Some problems at boot of Tropy 1.5 Jun 8, 2019
@Emic37
Copy link
Author

Emic37 commented Jun 9, 2019

In part same issue described here.

@inukshuk
Copy link
Member

inukshuk commented Jun 12, 2019

Hi @Emic37 sorry about that migration error. It should work to migrate your project in the 1.5.1 beta (and we will push 1.5.1 shortly in case you want to wait; if you do try out the beta please make a backup copy of your project first, just in case!).

I'm very interested in the GPU crash though. Reporting this error is new in 1.5 so it might have been happening in 1.4.5 without you noticing it. After the GPU process crashes new items will not render anymore in the detail view (and there may be other consequences). Do you notice anything not working after the GPU crash? Reloading the view may be enough to fix it, or else you'd likely have to relaunch Tropy. Also, how often does this happen? Does it happen right when you start Tropy or during a specific action?

@Emic37
Copy link
Author

Emic37 commented Jun 12, 2019

Hi @inukshuk thanks for your reply. I installed the 1.5.1 beta version and I didn't encounter problem to migrate my project. This error seems to be fixed. Thanks !

For the GPU error, I ignore if it already existed before the relase of tropy 1.5 but the report of this error is new and was appeared with Tropy 1.5. This error occurs two times on each boot of the application. After that, Tropy opens itself and displays my project without problem.

Just something doesn't work very well : for large images (around 33 Mo), it's so long to load and display images. Often, Tropy freezes a few seconds and using zoom on these images is almost impossible. This behavior always existed, since the first version.
I know that my Mac is now almost a dinosaur but using the native viewer, it works properly and it's pretty smooth ! :D So maybe, there is indeed a problem in Tropy ?

I share a link to download one of these images and the log of the error. And of course, I remain at your disposal for more informations or if I was not very understandable.

{"level":30,"time":1560372360094,"type":"browser","name":"main","opts":{"_":[],"auto-updates":true,"ignore-gpu-blacklist":false,"debug":false,"trace":false,"environment":"production","env":"production","$0":"Applications/Tropy Beta.app/Contents/MacOS/Tropy Beta","data":"/Users/Aymeric/Library/Application Support/Tropy Beta","cache":"/Users/Aymeric/Library/Caches/Tropy Beta","logs":"/Users/Aymeric/Library/Logs/Tropy Beta"},"version":"1.5.1-beta.1","msg":"main.init 1.5.1-beta.1 Darwin 17.7.0 (x64)","v":1}
{"level":30,"time":1560372360378,"type":"browser","name":"main","msg":"plugins scanned: 0","v":1}
{"level":30,"time":1560372360461,"type":"browser","name":"main","msg":"app state restored","v":1}
{"level":30,"time":1560372360464,"type":"browser","name":"main","file":"/Users/Aymeric/OneDrive/Applications/Tropy/patindus_val_aubois.tpy","msg":"open new project window","v":1}
{"level":30,"time":1560372360528,"type":"browser","name":"main","msg":"ready after 494ms [req:83ms]","v":1}
{"level":30,"time":1560372360634,"type":"browser","name":"main","msg":"checking for updates...","v":1}
{"level":60,"time":1560372360640,"type":"browser","name":"main","msg":"GPU process crashed unexpectedly","stack":"Error: GPU process crashed unexpectedly\n    at App.<anonymous> (/Applications/Tropy Beta.app/Contents/Resources/app.asar/lib/browser/tropy.js:713:38)\n    at App.emit (events.js:194:13)","type":"Error","v":1}
{"level":30,"time":1560372361165,"type":"renderer","name":"project","dpx":1,"opts":{"dark":false,"environment":"production","documents":"/Users/Aymeric/Documents","maximizable":true,"minimizable":true,"pictures":"/Users/Aymeric/Pictures","scrollbars":true,"theme":"system","file":"/Users/Aymeric/OneDrive/Applications/Tropy/patindus_val_aubois.tpy","recent":["/Users/Aymeric/OneDrive/Applications/Tropy/patindus_val_aubois.tpy"],"data":"/Users/Aymeric/Library/Application Support/Tropy Beta","debug":false,"dev":false,"cache":"/Users/Aymeric/Library/Caches/Tropy Beta","plugins":"/Users/Aymeric/Library/Application Support/Tropy Beta/plugins","frameless":true,"level":"info","locale":"fr","log":"/Users/Aymeric/Library/Logs/Tropy Beta/tropy.log","uuid":"01177520-8d52-11e9-8cf4-cd614b987895","update":{},"version":"1.5.1-beta.1","webgl":true,"zoom":1},"msg":"project.init","v":1}
{"level":30,"time":1560372361228,"type":"renderer","name":"project","msg":"plugins scanned: 0","v":1}
{"level":30,"time":1560372361228,"type":"renderer","name":"project","msg":"plugins loaded: 0","v":1}
{"level":30,"time":1560372361927,"type":"browser","name":"main","msg":"no updates available","v":1}
{"level":30,"time":1560372362360,"type":"renderer","name":"project","msg":"open db /Users/Aymeric/Library/Application Support/Tropy Beta/ontology.db","v":1}
{"level":30,"time":1560372362366,"type":"renderer","name":"project","msg":"restoring recent@tropy","v":1}
{"level":60,"time":1560372509575,"type":"browser","name":"main","msg":"GPU process crashed unexpectedly","stack":"Error: GPU process crashed unexpectedly\n    at App.<anonymous> (/Applications/Tropy Beta.app/Contents/Resources/app.asar/lib/browser/tropy.js:713:38)\n    at App.emit (events.js:194:13)","type":"Error","v":1}

@inukshuk
Copy link
Member

Thanks!

Could you take one more look at the tropy.log file for a message that reads either "esper using webgl renderer" or "esper using canvas renderer"?

@Emic37
Copy link
Author

Emic37 commented Jun 15, 2019

There is a message "esper using canvas renderer" :

{"level":30,"time":1560583312757,"type":"browser","name":"main","opts":{"_":[],"auto-updates":true,"ignore-gpu-blacklist":false,"debug":false,"trace":false,"environment":"production","env":"production","$0":"Applications/Tropy Beta.app/Contents/MacOS/Tropy Beta","data":"/Users/Aymeric/Library/Application Support/Tropy Beta","cache":"/Users/Aymeric/Library/Caches/Tropy Beta","logs":"/Users/Aymeric/Library/Logs/Tropy Beta"},"version":"1.5.1-beta.1","msg":"main.init 1.5.1-beta.1 Darwin 17.7.0 (x64)","v":1}
{"level":30,"time":1560583313152,"type":"browser","name":"main","msg":"plugins scanned: 0","v":1}
{"level":30,"time":1560583313157,"type":"browser","name":"main","msg":"app state restored","v":1}
{"level":30,"time":1560583313161,"type":"browser","name":"main","file":"/Users/Aymeric/OneDrive/Applications/Tropy/patindus_val_aubois.tpy","msg":"open new project window","v":1}
{"level":30,"time":1560583313294,"type":"browser","name":"main","msg":"ready after 524ms [req:81ms]","v":1}
{"level":30,"time":1560583313370,"type":"browser","name":"main","msg":"checking for updates...","v":1}
{"level":60,"time":1560583313377,"type":"browser","name":"main","msg":"GPU process crashed unexpectedly","stack":"Error: GPU process crashed unexpectedly\n    at App.<anonymous> (/Applications/Tropy Beta.app/Contents/Resources/app.asar/lib/browser/tropy.js:713:38)\n    at App.emit (events.js:194:13)","type":"Error","v":1}
{"level":30,"time":1560583313917,"type":"renderer","name":"project","dpx":1,"opts":{"dark":false,"environment":"production","documents":"/Users/Aymeric/Documents","maximizable":true,"minimizable":true,"pictures":"/Users/Aymeric/Pictures","scrollbars":true,"theme":"system","file":"/Users/Aymeric/OneDrive/Applications/Tropy/patindus_val_aubois.tpy","recent":["/Users/Aymeric/OneDrive/Applications/Tropy/patindus_val_aubois.tpy"],"data":"/Users/Aymeric/Library/Application Support/Tropy Beta","debug":false,"dev":false,"cache":"/Users/Aymeric/Library/Caches/Tropy Beta","plugins":"/Users/Aymeric/Library/Application Support/Tropy Beta/plugins","frameless":true,"level":"info","locale":"fr","log":"/Users/Aymeric/Library/Logs/Tropy Beta/tropy.log","uuid":"01177520-8d52-11e9-8cf4-cd614b987895","update":{},"version":"1.5.1-beta.1","webgl":true,"zoom":1},"msg":"project.init","v":1}
{"level":30,"time":1560583314023,"type":"renderer","name":"project","msg":"plugins scanned: 0","v":1}
{"level":30,"time":1560583314023,"type":"renderer","name":"project","msg":"plugins loaded: 0","v":1}
{"level":30,"time":1560583314090,"type":"browser","name":"main","msg":"no updates available","v":1}
{"level":30,"time":1560583315119,"type":"renderer","name":"project","msg":"open db /Users/Aymeric/Library/Application Support/Tropy Beta/ontology.db","v":1}
{"level":30,"time":1560583315125,"type":"renderer","name":"project","msg":"restoring recent@tropy","v":1}
{"level":60,"time":1560583316804,"type":"browser","name":"main","msg":"GPU process crashed unexpectedly","stack":"Error: GPU process crashed unexpectedly\n    at App.<anonymous> (/Applications/Tropy Beta.app/Contents/Resources/app.asar/lib/browser/tropy.js:713:38)\n    at App.emit (events.js:194:13)","type":"Error","v":1}
{"level":30,"time":1560583375573,"type":"renderer","name":"project","msg":"restoring settings@tropy","v":1}
{"level":30,"time":1560583375573,"type":"renderer","name":"project","msg":"restoring ui@tropy","v":1}
{"level":40,"time":1560583375589,"type":"renderer","name":"project","stack":"TimeoutError: ResourceRequest timed out\n    at ResourceRequest._fireTimeout (/Applications/Tropy Beta.app/Contents/Resources/app.asar/node_modules/generic-pool/lib/ResourceRequest.js:62:17)\n    at bound (/Applications/Tropy Beta.app/Contents/Resources/app.asar/node_modules/generic-pool/lib/ResourceRequest.js:8:15)","msg":"unexpected error in *ontology","v":1}
{"level":30,"time":1560583375650,"type":"renderer","name":"project","msg":"open db /Users/Aymeric/OneDrive/Applications/Tropy/patindus_val_aubois.tpy","v":1}
{"level":30,"time":1560583375872,"type":"renderer","name":"project","msg":"esper using canvas renderer","v":1}
{"level":30,"time":1560583375968,"type":"renderer","name":"project","msg":"open db /Users/Aymeric/OneDrive/Applications/Tropy/patindus_val_aubois.tpy","v":1}
{"level":30,"time":1560583375975,"type":"renderer","name":"project","msg":"project ready 62117ms [dom:87ms win:79ms req:61554ms]","v":1}
{"level":30,"time":1560583375999,"type":"renderer","name":"project","msg":"restoring nav@92cae078-209d-4688-b84f-92c089a9936c","v":1}
{"level":30,"time":1560583375999,"type":"renderer","name":"project","msg":"restoring notepad@92cae078-209d-4688-b84f-92c089a9936c","v":1}
{"level":30,"time":1560583376000,"type":"renderer","name":"project","msg":"restoring esper@92cae078-209d-4688-b84f-92c089a9936c","v":1}
{"level":30,"time":1560583376000,"type":"renderer","name":"project","msg":"restoring imports@92cae078-209d-4688-b84f-92c089a9936c","v":1}
{"level":30,"time":1560583376000,"type":"renderer","name":"project","msg":"restoring sidebar@92cae078-209d-4688-b84f-92c089a9936c","v":1}
{"level":30,"time":1560583376000,"type":"renderer","name":"project","msg":"restoring panel@92cae078-209d-4688-b84f-92c089a9936c","v":1}
{"level":30,"time":1560583376051,"type":"renderer","name":"project","msg":"open db /Users/Aymeric/OneDrive/Applications/Tropy/patindus_val_aubois.tpy","v":1}
{"level":40,"time":1560583376548,"type":"renderer","name":"project","query":"\n        SELECT id, list_id AS list\n          FROM list_items","ms":221,"msg":"SLOW: db query took 221ms","v":1}
{"level":40,"time":1560583376838,"type":"renderer","name":"project","query":"\n        SELECT id, tag_id AS tag\n          FROM taggings","ms":326,"msg":"SLOW: db query took 326ms","v":1}
{"level":40,"time":1560583376838,"type":"renderer","name":"project","query":"\n        SELECT id AS photo, item_id AS id\n          FROM photos\n            LEFT OUTER JOIN trash USING (id)\n          WHERE \n            deleted IS NULL\n          ORDER BY item_id, position","ms":345,"msg":"SLOW: db query took 345ms","v":1}
{"level":40,"time":1560583376838,"type":"renderer","name":"project","query":"\n        SELECT\n            id,\n            template,\n            datetime(created, \"localtime\") AS created,\n            datetime(modified, \"localtime\") AS modified,\n            deleted\n          FROM subjects\n            JOIN items USING (id)\n            LEFT OUTER JOIN trash USING (id)","ms":351,"msg":"SLOW: db query took 351ms","v":1}
{"level":30,"time":1560583376838,"type":"renderer","name":"project","msg":"db query took 51ms","query":"\n        SELECT\n            id,\n            item_id AS item,\n            template,\n            datetime(created, \"localtime\") AS created,\n            datetime(modified, \"localtime\") AS modified,\n            angle,\n            mirror,\n            negative,\n            brightness,\n            contrast,\n            hue,\n            saturation,\n            sharpen,\n            width,\n            height,\n            path,\n            page,\n            size,\n            protocol,\n            mimetype,\n            checksum,\n            orientation\n          FROM subjects\n            JOIN images USING (id)\n            JOIN photos USING (id)","ms":51,"v":1}
{"level":30,"time":1560583376838,"type":"renderer","name":"project","msg":"db query took 130ms","query":"\n      SELECT id, property, text, datatype AS type\n        FROM subjects\n          JOIN metadata USING (id)\n          JOIN metadata_values USING (value_id) ORDER BY id, metadata.created ASC","ms":130,"v":1}
{"level":40,"time":1560583376952,"type":"renderer","name":"project","ms":890,"list":true,"query":"sucrerie","tags":false,"trash":null,"msg":"SLOW: *search query \"sucrerie\" took 890ms","v":1}

@inukshuk
Copy link
Member

OK this most likely explains why there are issues when loading/zooming in the images. It means that WebGL is not available -- probably because the GPU process crashed, but perhaps because your GPU (or graphics driver) is blacklisted by Chromium for use with WebGL. Could you try to start Tropy from the command line to force enable WebGL. On macOS if you've installed Tropy in the default Applications folder you could run this from a Terminal:

/Applications/Tropy.app/Contents/MacOS/Tropy --ignore-gpu-blacklist

Does that change anything?

@Emic37
Copy link
Author

Emic37 commented Jun 18, 2019

I just tried and the positive effects are that GPU error doesn't appear and app seems to be smoother.
But Tropy doesn't display the big images but only a black square.

Capture d’écran 2019-06-18 à 22 12 15

And the Terminal returns some errors (always the same) :

macbook-pro-de-aymeric:~ Aymeric$ /Applications/Tropy.app/Contents/MacOS/Tropy --ignore-gpu-blacklist
2019-06-18 22:02:40.362 Tropy[564:15085] *** WARNING: Textured window <AtomNSWindow: 0x7fb4a20eec90> is getting an implicitly transparent titlebar. This will break when linking against newer SDKs. Use NSWindow's -titlebarAppearsTransparent=YES instead.
[566:0618/220243.819251:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220243.991828:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.193089:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.204309:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.207153:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.253032:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.292104:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.348535:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.349376:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.387210:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.416289:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.439844:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.462189:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.484611:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.507495:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.528062:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.550390:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.570998:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.591350:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.610468:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.
[566:0618/220244.630445:ERROR:gles2_cmd_decoder.cc(10403)] [.WebGL-0x7fdb840fa200]RENDER WARNING: texture bound to texture unit 1 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering.

For information, my MacBook is from late 2011 using an Intel HD 3000 GPU.

@inukshuk
Copy link
Member

Yes, that GPU is indeed blacklisted by default, because of potential issues with WebGL.

By the looks of the error messages, I think it might be worth a try to see if we can make the image viewer work if we turn off all the filters -- that would be an acceptable trade-off since the filters don't work in the 2d fallback mode anyway. If you want to give this a try I'll prepare a custom dev build for you try.

@Emic37
Copy link
Author

Emic37 commented Jun 28, 2019

Ok. Indeed, I can try this solution.

@inukshuk
Copy link
Member

inukshuk commented Jul 1, 2019

OK, great, I'll prepare a dev-build for you later today!

@inukshuk
Copy link
Member

inukshuk commented Jul 1, 2019

@Emic37 you can download this Tropy dev-build (link should be valid for a week) -- it will force enable WebGL but disable the use of filters / shaders. Let me know if this results in a better performance / fixes the issue (obviously, the filters won't work). If it does, we'll add a way to enable this behavior via configuration for older Macs.

@Emic37
Copy link
Author

Emic37 commented Jul 2, 2019

@inukshuk thanks! I just tried this dev-build but no improvement for the moment. The app launch himself without error but some images are not displayed :

Capture d’écran 2019-07-02 à 10 05 36

I didn't check if it's always true but between two "large" images, the first one (7910x5386, 2,55 MB) is displayed and the second (8560x5805, 2,85 MB) are not. And all of bigger photographs I checked aren't displayed.

With the standard build, Tropy displays error at boot two times but all seems work quiet well.The display of the large images works. It's just much slower than in Preview.

I share you the log file, if it can help you :
tropy.log

@inukshuk
Copy link
Member

inukshuk commented Jul 7, 2019

The large images not showing up with WebGL is certainly #167 -- judging by the examples your GPU's texture size is likely at 8000..

Regarding the bad performance when using the 2d renderer, has it always been this slow? Or did you get better performance using an older version of Tropy?

@Emic37
Copy link
Author

Emic37 commented Jul 8, 2019

@inukshuk amazing ! The last update fix the issue at boot and Omeka plugin works again ! Thanks !

Regarding the large images which are not showing up, I just cheked and indeed the texture size limit on my laptop is fixed at 8192. Is there a way to increase this limit ? Or an other solution to display larger images ?

Regarding the bad performance, it was always been slow. I made a little video to show you the behavior of Tropy. It's quite smooth with light images but not with large images. Tropy even freeze a few seconds when I select a large image or when I open it. Zooming and scrolling are not very smooth too.

I know, my computer is very old but if I use Viewer, it's smoother. Also, before to import these images into Tropy, I view and download them using my browser and it's very smooth. So maybe is there something to do in Tropy ? I just retry and dev-build is anyway faster and smoother but it just misses displaying of the large images.

@Emic37
Copy link
Author

Emic37 commented Jul 8, 2019

On OS X, everything seems fixed with the last update except the bad performance.

However, last week I encountered for the first time an other bug using Tropy on windows 10 laptop :

Capture_error

I share you a copy of this error and the log file : error1.txt tropy1.log

Sometimes this error happens when I select a large image or at boot of Tropy if a large image was selected before closing the app. When this error appears, then Tropy displays a white screen. Refresh or reboot Tropy allows refind a standard behavior, except if a large image is selected. In this case, just after refresh or reboot, I have to select an other list to refind functional Tropy.

Sometimes, when I select a large image, Tropy displays no error but freeze, displays a few seconds a black screen and then, displays the project as if nothing happened. But, no more image displays in the viewer. Reboot the app allows fix this problem... until it happens again ! I copied the log file after encountered this error : tropy2.log

Hope all of this help you. I specify that I encountered for the moment this issue only on windows and with Tropy 1.5.1 and 1.5.2. My windows laptop is slighty newer than my OS X laptop and has a GPU Intel 4000.

I post this report here because it seems to be a GPU/webGL issue too but if you prefer, I can open a new issue. And I'm sorry for all these issues. Don't hate me ! xD

@inukshuk
Copy link
Member

inukshuk commented Jul 9, 2019

@Emic37 no worries, this is all valuable feedback because we've not encountered those errors ourselves!

But not to get mixed-up too much: so with the original issue we're in a bit of catch-22: if we add the workaround to enable WebGL your performance is OK, but large images don't load -- you seem to have plenty of those so that's not really a solution until we fix #167. Unfortunately the 8129 textures size limit is really a hard memory limit of the GPU, the only way to increase it is to get another graphics card. On the other hand, there's an obvious solution to #167 it will just require a lot of work: we'll have to cut up and cache large images individually, then stitch them together in the image viewer. That's something we want to do, but no one is working on this at the moment.

For the windows error, I'll open a separate issue. If you notice anything about the photos or circumstances where the error occurs that might be very helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants