Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

restoreExternalWindowPositionAndState throws error. #31

Open
weiteho opened this issue Jul 23, 2020 · 0 comments
Open

restoreExternalWindowPositionAndState throws error. #31

weiteho opened this issue Jul 23, 2020 · 0 comments

Comments

@weiteho
Copy link
Contributor

weiteho commented Jul 23, 2020

Saved the snapshot json from java adapter(doesn't matter from where), which has "externalWindows: [null]" that caused the error below.

snapshot file attached.

[2020-07-23 08:20:45.502]-[VERBOSE1:electron_api_app.cc(1604)] sent in-runtime <= 1 {"action":"ack","correlationId":"19f63b0a-cd63-4a54-93d5-ff9dfc7b75df","payload":{"success":true,"data":{"deviceScaleFactor":1,"dpi":{"x":96,"y":96},"nonPrimaryMonitors":[],"primaryMonitor":{"available":{"dipRect":{"top":0,"bottom":1040,"left":0,"right":1920},"scaledRect":{"top":0,"bottom":1040,"left":0,"right":1920}},"availableRect":{"top":0,"bottom":1040,"left":0,"right":1920},"deviceId":"\\?\DISPLAY#LGD0533#4&396877a2&0&UID265988#{e6f07b5f-ee97-4a90-b076-33f57bf4eaa7}","deviceScaleFactor":1,"displayDeviceActive":true,"dpi":{"x":96,"y":96},"monitor":{"dipRect":{"top":0,"bottom":1080,"left":0,"right":1920},"scaledRect":{"top":0,"bottom":1080,"left":0,"right":1920}},"monitorRect":{"top":0,"bottom":1080,"left":0,"right":1920},"name":"\\.\DISPLAY1"},"reason":"api-query","taskbar":{"dipRect":{"top":1040,"bottom":1080,"left":0,"right":1920},"edge":"bottom","rect":{"top":1040,"bottom":1080,"left":0,"right":1920},"scaledRect":{"top":1040,"bottom":1080,"left":0,"right":1920}},"virtualScreen":{"top":0,"bottom":1080,"left":0,"right":1920,"dipRect":{"top":0,"bottom":1080,"left":0,"right":1920},"scaledRect":{"top":0,"bottom":1080,"left":0,"right":1920}}}}}
[2020-07-23 08:20:45.502]-[INFO:CONSOLE(30549)] "Error on action apply-snapshot sent by {"uuid":"e1640246-93da-41e7-aa0a-052df57d984e","name":"e1640246-93da-41e7-aa0a-052df57d984e","runtimeUuid":"16.83.51.26/9696/"}: {"stack":"TypeError: Cannot read property 'name' of null\n at restoreExternalWindowPositionAndState (https://openfin.github.io/platform-api-project-seed/js/external-window-snapshot.js:26:59)\n at https://openfin.github.io/platform-api-project-seed/js/platform-provider.js:32:87\n at Array.map ()\n at Override.applySnapshot (https://openfin.github.io/platform-api-project-seed/js/platform-provider.js:32:64)\n at ChannelProvider.processAction (:27099:43)\n at ChannelProvider.processAction (:27466:22)\n at Channel.processChannelMessage (:27390:35)\n at Channel.onmessage (:27228:22)\n at Transport.onmessage (:34504:15)\n at EventEmitter. (:34279:26)","message":"Cannot read property 'name' of null"}", source: (30549)

snapshot2.zip

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

No branches or pull requests

1 participant