Kong / insomnia

The open-source, cross-platform API client for GraphQL, REST, WebSockets, SSE and gRPC. With Cloud, Local and Git storage.
https://insomnia.rest
Apache License 2.0
33.8k stars 1.89k forks source link

Application Freezes / Unresponsive #7445

Open jonathan-fsa opened 2 months ago

jonathan-fsa commented 2 months ago

Expected Behavior

I leave my computer on and apps open. I expect the app to be responsive when I come back the next day.

Actual Behavior

App is frozen (can't click or do anything besides the menus in the top bar)

Occasionally there is a popup that says "app appears to be unresponsive" and I can refresh it, otherwise I have to quit and reopen

Reproduction Steps

  1. Open app (macOS, latest)
  2. Put on second display
  3. Leave open overnight, let computer sleep
  4. Attempt to use the app the next day

Is there an existing issue for this?

Additional Information

Version: Insomnia 9.2.0 Build date: 5/15/2024 OS: Darwin arm64 23.4.0 Electron: 29.3.0 Node: 20.9.0 Node ABI: 121 V8: 12.2.281.27-electron.0 Architecture: arm64

MacBook Pro M1 MacOS 14.4.1 (23E224)

Insomnia Version

Insomnia 9.2.0

What operating system are you using?

macOS

Operating System Version

MacOS 14.4.1 (23E224)

Installation method

download from insomnia

Last Known Working Insomnia version

?

subnetmarco commented 1 month ago

@CurryYangxx maybe related to your current work to improve performance

CurryYangxx commented 1 month ago

@CurryYangxx maybe related to your current work to improve performance

I will try to reproduce this issue

sgarner commented 1 month ago

I have the same issue. Insomnia works fine all day, but when I return the next day it's unresponsive. If I click on the frozen window and wait a minute, then an alert appears:

image

If I click 'Reload' then it comes right.

This reliably happens to me every day.

subnetmarco commented 1 month ago

I am able to reproduce, for some reason it does freeze when the application is kept running in the background, but not used for a day and the computer goes into standby. It's like the application cannot "wake up" anymore after such state.

CurryYangxx commented 5 days ago

Hi @sgarner. Which page did your application stay on before you left your computer?

sgarner commented 5 days ago

Which page did your application stay on before you left your computer?

I would have left it open editing the body of a request. I mostly work with GraphQL requests, in case that makes a difference. I wonder if it's hanging when auto-refreshing the schema?

I'll try some things and see if I can narrow it down.

CurryYangxx commented 5 days ago

Thanks for your feedback! I will look into this issue more.

sgarner commented 1 day ago

Well, I tried leaving Insomnia open on non-GraphQL requests and still experienced the same hangs, so that doesn't appear to be a factor.

I believe I've also encountered hangs without my computer going into sleep mode at all, just by using other apps and coming back to Insomnia after an hour or two.

It seems like the longer I've been away, the more "Insomnia has become unresponsive" dialogs I have to click through before reloading actually brings it back to life. Often it stays hung, and another "unresponsive" dialog appears about 10 seconds later. This can repeat four or five times before the app is usable.