SensorServer icon indicating copy to clipboard operation
SensorServer copied to clipboard

Server can not be stopped from within the App

Open matthias-buchmeier opened this issue 1 year ago • 7 comments

Phone: Samsung Galaxy S22; Android 14; Kernel 5.10.177; One UI version 6.0.

Bug: The server does not stop after activating the stop button on the main screen of the App. The App and server even keep running after closing it. Only "force stop option from Settings/Applications works.

matthias-buchmeier avatar May 03 '24 10:05 matthias-buchmeier

  • Does this behavior always occur on your device? In other words, have you noticed this happening every time you try to stop the server?
  • Are you able to reproduce the same issue on any other Android devices?
  • Have you tried clearing the app's cache and storage?

Sometimes clearing an app's cache and storage can resolve temporary glitches.

UmerCodez avatar May 05 '24 09:05 UmerCodez

The behavior is always reproduced on this device. I never observed it on other devices. Clearing the cache does not help.

matthias-buchmeier avatar May 06 '24 13:05 matthias-buchmeier

It sounds like the issue might be specific to your device. Have you tried stopping the server from the notification bar?

UmerCodez avatar May 09 '24 09:05 UmerCodez

I'm also unable to stop the connection from within the app.

Galaxy A52 One UI-Version 6.0 Android Version 14 Kernel 4.14.190

wijaflo avatar Jun 03 '24 09:06 wijaflo

@wijaflo I don't know why the app is showing such behavior on your and @matthias-buchmeier's device

UmerCodez avatar Jun 04 '24 09:06 UmerCodez

Same problem, Galaxy A52s, Android 14 Server still running even if ~~I force close the app~~ the app is running in the background (Only way is to force stop it via the phone settings -> apps menu).

itamark-targa avatar Jun 07 '24 21:06 itamark-targa

@itamark-targa Noted !

UmerCodez avatar Jun 09 '24 07:06 UmerCodez

This issue has been resolved in v6.1.1. Please check if the problem still persists on your device.

UmerCodez avatar Jul 23 '24 10:07 UmerCodez

This issue has been resolved in v6.1.1. Please check if the problem still persists on your device.

Thanks, now the server can be stopped :) Another issue (not sure if it's related), is that if I close the app (by "up swiping" it) and re-open, pressing the "start" button gives a "port already in use" message. It can be resolved by force-stopping the app.

itamark-targa avatar Jul 25 '24 07:07 itamark-targa

Another issue (not sure if it's related), is that if I close the app (by "up swiping" it) and re-open, pressing the "start" button gives a "port already in use" message. It can be resolved by force-stopping the app.

I am unable to reproduce this issue on an Android 14 emulator using the following steps:

  1. Open the app.
  2. Start the server.
  3. Close the app by swiping up from the apps list while the server is running.
  4. Reopen the app.
  5. A message appears: "Service running."
  6. Stop the server.
  7. Start the server again.
  8. A message appears: "Server started."

UmerCodez avatar Jul 26 '24 12:07 UmerCodez