Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote Debugging Fails - GsGciLostSessionError #53

Open
regkrock opened this issue May 10, 2017 · 13 comments
Open

Remote Debugging Fails - GsGciLostSessionError #53

regkrock opened this issue May 10, 2017 · 13 comments

Comments

@regkrock
Copy link

I attempted to remote debug (from a remote playground) the code below. The remote debugging failed with a GsGciLostSessionError.

OrderedCollection new
add: 1;
add: 2;
yourself

All of the other remote menu options worked.

Server: a Gt4Gemstone 3.3.3 stone - no GsDevKit tools loaded in the server or client.
Client: Pharo 5.0 using the GtGsBareClient.

@chisandrei
Copy link
Member

I tried but cannot reproduce this. Can you provide more details? Does it happen every time you log in and execute this code? Does it happen any time you open the debugger?

@regkrock
Copy link
Author

regkrock commented May 10, 2017 via email

@chisandrei
Copy link
Member

What do you mean by 'no GsDevKit tools loaded in the server or client.'?

@regkrock
Copy link
Author

regkrock commented May 11, 2017 via email

@chisandrei
Copy link
Member

What code/instructions did you use to create the client/server?

You can try to debug by putting a breakpoint in GtGsMinimalClient>>debuggerRequested:. If a debugger appears there was an error in the gemstone side. You can then select and execute 'GtGsGenericStackDebugger openBasicStackViewerFor: gsNotification from: self'. This will open a transcript with the gemstone stack. If this also doesn't work then these is a deeper problem. Then after executing the code above you can click proceed in the debugger. If a second debugger opens then there was an error while opening the debugger. You can execute again 'GtGsGenericStackDebugger openBasicStackViewerFor: gsNotification from: self' to see what the error was that prevents the debugger from opening.

@regkrock
Copy link
Author

regkrock commented May 12, 2017 via email

@chisandrei
Copy link
Member

Based on the error it seems that the is some issues with the tODE version. Can you go to $GS_HOME/shared/repos/tode and do a git status. Is the project on the dev branch? If not switch to the dev branch, update and then update gt4gemstone from the client. If the debugger then works I think I'll need to update the installation instructions.

@regkrock
Copy link
Author

The git status is:

rk:tode regkrock$ pwd
/Users/regkrock/GsDevKit_home/shared/repos/tode
rk:tode regkrock$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working tree clean

I am a Git newbie, how do I change the branh.

@regkrock regkrock reopened this May 12, 2017
@regkrock
Copy link
Author

My mistake. Re-opened.

@chisandrei
Copy link
Member

Try:
git checkout dev
git pull

@regkrock
Copy link
Author

It now works!!!!

  1. I changed to the dev stream and pulled the dev stream.
  2. I loaded gt4gemstone in the server:
    gtClient := GtGsMinimalClient forSessionDescriptionNamed: SCIGemStoneServerConfigSpec
    defaultSessionName.
    gtClient evaluateCommandStream: 'project load Gt4Gemstone' readStream .
    gtClient evaluateCommandStream: 'commit' readStream.
  3. Debugger now works!!!!!

@regkrock
Copy link
Author

IMPACT ON STARTING SEASIDE IN TODE CLIENT

Stone - 3.3.5

  1. In a pristine devKit_33 server with only the seaside loaded on top of the virgin stone, I was able to start the seaside server with no problems.
    /home/seaside/gemServer —start=seaside
  2. I loaded the Gt4Gemstone code into an existing GsDevKit stone (devKit_33)
    I was still able to start the seaside server with no problems.
  3. I created a Gt4Gemstone client (Pharo 5.0) following the instructions listed on GitHub.
    Remote debugging failed.
  4. I then applied the patch as described in this issue.
    a) cd /Users/regkrock/GsDevKit_home/shared/repos/tode
    b) git status
    On branch master
    Your branch is up-to-date with 'origin/master’.
    nothing to commit, working tree clean
    c) Changed to dev stream
    git checkout dev
    git pull
    d) I then applied the changes from Gt4Gemstone client from the local playground.
    gtClient := GtGsMinimalClient forSessionDescriptionNamed: SCIGemStoneServerConfigSpec defaultSessionName.
    gtClient evaluateCommandStream: 'project load Gt4Gemstone' readStream.
    gtClient evaluateCommandStream: 'commit' readStream.
  5. In TODE1 client I did an abort and tried to start the seaside server
    /home/seaside/gemServer —start=seaside

The start failed and I needed to comment out the two classes FastCGISeasideGemServer and SwazooSeasideGemServer in order to get script to work

@dalehenrich
Copy link
Contributor

I assume that this is an issue with the dev branch version of tODE and not specifically related to gt4gemstone --- however I have not characterized the problem, yet ... I will try to find time over the weekend to run some experiments and see if I can figure things out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants