anyproto / anytype-heart

Shared library for Anytype clients
https://anytype.io
Other
241 stars 47 forks source link

Anytype does not open and sits dormant as background process on launch #1081

Open jack5github opened 7 months ago

jack5github commented 7 months ago

Have you read a contributing guide?

Current Behavior

Sometimes when attempting to launch Anytype, it does not open its window or display in the taskbar. Upon looking in Task Manager, Anytype is seen as a background process, but it never does anything. Attempting to launch Anytype again will cause another background process to start that also does nothing. The only way to correct this is to kill all instances of Anytype that are in the Task Manager and retry.

Expected Behavior

Anytype should open and display itself properly when launched, or if it is already open, direct the user to the active Anytype instance.

Steps To Reproduce

This bug occurs randomly when attempting to open Anytype on Microsoft Windows 10 Home 10.0.19045 (win32 x64). This has been a consistent issue for multiple desktop versions of Anytype.

Environment

- OS: Microsoft Windows 10 Home 10.0.19045 (win32 x64)
- Version: 0.39.0

Anything else?

No response

adhadseKavida commented 7 months ago

Duplicate of anyproto/anytype-ts#630 but on windows?

jack5github commented 7 months ago

It is possible. From doing a little more experimentation, I've found it's easy to cause this bug simply by attempting to open the program multiple times fast. This happens frequently to me, as I search for my programs rather than finding them on the Windows Start menu, and clicking a program in the search doesn't always make it look like it registered the click, so sometimes I end up clicking twice, at which point the program is likely not to display itself. However, this shouldn't completely discount it failing to appear later on during its active life.

jack5github commented 5 months ago

This may be a related issue. While Anytype is in this state, it refuses to close when right-click closing it from the taskbar. Close error