zserge / lorca

Build cross-platform modern desktop apps in Go + HTML5
MIT License
8.03k stars 533 forks source link

Golang part stops responding to javascript after some (variable) amount of time #166

Open SimonShapiro opened 2 years ago

SimonShapiro commented 2 years ago

I don't know if anyone else has observed this. I use svelte for the front-end following the template on gihub. Everything is fine, but after some time, which I cannot determine, the golang code stops responding to calls from the javscript code.

I am keeping global state in golang using Mutex locks.

Could it have something to do with the fact that lorca is based on devtools?

I use yarn build followed by ./app on MacOs.

Any ideas?

tyoung3 commented 2 years ago

My app times out after 10 minutes in test mode (go test) with no activity. Running normally, it stays up.

Tom Young47 MITCHELL ST.STAMFORD, CT 06902

When bad men combine, the good must associate; ... -Edmund Burke 'Thoughts on the cause of the present discontents' , 1770

On Tue, Jan 11, 2022 at 1:29 PM SimonShapiro @.***> wrote:

I don't know if anyone else has observed this. I use svelte for the front-end following the template on gihub. Everything is fine, but after some time, which I cannot determine, the golang code stops responding to calls from the javscript code.

I am keeping global state in golang using Mutex locks.

Could it have something to do with the fact that lorca is based on devtools?

I use yarn build followed by ./app on MacOs.

Any ideas?

— Reply to this email directly, view it on GitHub https://github.com/zserge/lorca/issues/166, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKX7ZTKTV5O4BYPOYKHKQTUVRZI3ANCNFSM5LXARGYA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you are subscribed to this thread.Message ID: @.***>