fxgallego/DolphinHttpServer

Walkback post install and save image a couple of times

sanjayminni opened this issue · 14 comments

I start getting this walkback anytime shortly after installing seaside which includes DolphinHttpServer.
I tried several times in all combinations with a clean image

Here is a way i reproduced it (D7.1.20 Windows 10)

  • started with a clean image
  • loaded seaside thru package browser
  • moved around in welcome screen played with counter
  • saved image in dolphin (welcome screen still open) (*see note 1 below)
  • then closed the welcome screen but other tabs in browser open not related to seaside
  • saved image again
  • exited
  • restarted dolphin and ... error message appeared

however saving image with a seaside web screen still open is not the only way - i keep getting it in various ways to the point if D7+Seaside being impossible to use.
Once it appears the walkback appears on D7 start, File-Save Image but does not come when you do a File->Exit Dolphin [save image->yes].

DolphinSeasideErr

DPROerrors.txt

DolphinSeasideErr

Could you confirm that this does not happens if you never save the image?

also observed
on a fresh image only installed DolphinHttpServer\Dolhin Http Server Demo.pax
repeated the sequence sequence several times:

  1. start image
    in a workspace:
    1.1 - HttpServerDemo start.
    <-- problem only if i save image / exit dolphin here*
    1.2 - HttpServerDemo stop.
  2. save image / exit Dolphin

*Problem surfaces on restart of image or even start/stop of HttpServerDemo. but then after that after a successful stop and save the problem seems to go away

Seems to me it's an inoffensive issue because if you close the walkback screen the server still runs. In my machine I can't reproduce always, seems to be a race condition issue because I'm receiving an invalid request. I believe we can safely ignore it if it does not produce any other side effects. I mean, it's only a development issue, I think.

I see, I think something could be done, I will investigate it more deeply.

Nope, its still there,

  1. installed a new image,
  2. Installed rko281/Seaside; Closed the browser tab with seaside welcome screen.
  3. Saved image thru Shell->File->Save Image (so did not exit the image - which is still running)
  4. Installed rko281/Seaside-Bootstrap4; Closed the browser tab with bootstrap4 welcome screen.
  5. Saved image thru Shell->File->Save Image (so did not exit the image - which is still running)
    Walkback appears !

DPROerrors.txt

D7HttpServerErr

I'm sorry. I can't reproduce this, even loading Seaside in a new image.
Please, could you check if the DolphinHttpServer package is the right one?
The source of HttpServer>>onSessionStarted should look like this:

onSessionStarted
	[self startIfPaused] postToInputQueue

I am running directly on a Windows 10 i5 8gb machine. are you on something similar ?

However I could not reproduce with only a single package DolphinHttpServer - demo loaded, but am checking it out now

Checked the code as mentioned - it is the latest version only:

onSessionStarted
[self startIfPaused] postToInputQueue

onImageSaveStarting
self isRunning
ifTrue:
[state := #paused.
self stopListenersAndCloseSession.
(Delay forSeconds: 1) wait "Wait for other processes to be cleaned before image save."]

Ok, yes I'm on a i5 also. Please, could you save the image with the process explorer open and upload a screen capture of the process list after the save image?

I have shared the image on google drive at for fxgallego@gmail.com
https://drive.google.com/drive/u/0/folders/1hAvpkBGFxsHH27plP4VCGZoJAg1IIl2r

here is a definite way to reproduce the issue

  1. install a new image
  2. Load GitHub and
  3. GitHub rko281/seaside-bootstrap4
  4. Close the bootstrap4 welcome page (to be sure)
  5. in Dolphin Control Panel do File->Save Image twice (second time walkback
    appears)

d7-01-HttpServerSeasideBootstrapInstalled

d7-02-HttpServerSeasideBootstrapInstalled-error

pls see a related response at
rko281/Seaside#6

Ok I implemented and tested the solution provided by John in rko281/Seaside#6
Seems to work ok in my machine.