Giter Site home page Giter Site logo

Comments (11)

juanjux avatar juanjux commented on August 19, 2024 1

Oooooh yes, I totally forgot about that, I also lost many hours with that the other day with that cache...

from sdk.

juanjux avatar juanjux commented on August 19, 2024

Fixed by PR #135 when merged.

from sdk.

bzz avatar bzz commented on August 19, 2024

Wow! So awesome, did not realize #135 is merged - going to test now.

from sdk.

bzz avatar bzz commented on August 19, 2024

I have tested the the latest bblfsh server \w #135 merged and I still get buffer size exceeded sometimes :/ not sure if that is related to this particular buffer size..

Here is the 12k LOC file it happened on
https://github.com/bit-man/bit-tools/blob/master/GenUnitTests-ECI2012/src/test/java/ej2/conInvariante/RandoopTestConInvariante1.java

I would be happy to just skip such files, but after this error - server hangs forever 😞
Might be related to bblfsh/bblfshd#42

from sdk.

juanjux avatar juanjux commented on August 19, 2024

Very odd since that message is not in the SDK code anymore, I'll try with the docker image (but that SDK code is really used in the drivers which also have new versions compiled against the latest SDK).

from sdk.

juanjux avatar juanjux commented on August 19, 2024

I can't reproduce it. Steps I took (using the workaround posted on Slack for the problem with the current server and env variables):

# Remove old images
docker rm (docker ps -a -q)  
docker rmi --force (docker images -q)

# workaround
export BBLFSH_DRIVER_IMAGES="a=a"
# Run the server
docker run -e BBLFSH_DRIVER_IMAGES --privileged -p 9432:9432 --name bblfsh bblfsh/server

# Send the file
docker run  -v $(pwd):/work --link bblfsh bblfsh/server bblfsh client --address=bblfsh:9432 /work/shit.java

time="2017-07-05T19:27:06Z" level=debug msg="reading file: /work/shit.java" 
time="2017-07-05T19:27:06Z" level=debug msg="dialing server at bblfsh:9432" 
time="2017-07-05T19:27:06Z" level=debug msg="instantiating service client" 
time="2017-07-05T19:27:06Z" level=debug msg="sending request" 

(super huge UAST is printed)

I tried again with several consecutive requests just in case it was hanging at the second request like in server bug #36 but it works perfectly.

from sdk.

bzz avatar bzz commented on August 19, 2024

Ok, I was missing --transport=docker-daemon when running server, so I guess drivers were fetched from DockerHub instead of using latest build/taggeg :\

But this does not explain why buffer size exceeded show up, does it?

from sdk.

juanjux avatar juanjux commented on August 19, 2024

Actually, I should be using the version from Dockerhub to test it, let me test again without that.

from sdk.

juanjux avatar juanjux commented on August 19, 2024

I didn't use --transport=docker-daemon. I just tried without the workaround (since @abeaumont fixed that and published the new image) and it worked again without problems:

docker rm (docker ps -a -q)  
docker rmi --force (docker images -q)
docker run --privileged -p 9432:9432 --name bblfsh bblfsh/server
docker run  -v (pwd):/work --link bblfsh bblfsh/server bblfsh client --address=bblfsh:9432 /work/shit.java

from sdk.

juanjux avatar juanjux commented on August 19, 2024

Closing since the fix was merged.

from sdk.

bzz avatar bzz commented on August 19, 2024

Ok, after more digging - the reason I was getting this is that if you do not use transport - by default all the runtime, that includes driver containers, is cached under ./tmp and is never updated.

AFAIK there are plans to add update command eventually to bblfsh that would help to avoid it, but that's in future.

I'm removing it manually and it should work now.

from sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.