-
Notifications
You must be signed in to change notification settings - Fork 143
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
A fatal error has been detected by the Java Runtime Environment: SIGSEGV (0xb) #17
Comments
So the snippet posted in jpype-project/jpype#22 does not help? If this is a boilerpipe issue I can close the issue in our jpype fork.. ;> |
I dont know as @tcalmant mentioned i can start JVM and attach thread . i think the problem is with boilerpipe i have also posted in stackoverflow . It can give you more idea about the problem |
According to the trace posted on pastebin, this is a class loading problem. Could you add some traces around these lines ? (use a logger and/or don't forget to flush the sys.stdout/stderr). |
OK, I've reproduced the bug : the thread that calls the JVM is not attached to it, therefore the calls to JVM internals fail. First, monkey patching : in the code you posted on stackoverflow, you just have to add the following code before the creation of the extractor : class ExtractingContent:
@classmethod
def processingContent(self,sourceUrl,extractorType="DefaultExtractor"):
print "State=", jpype.isThreadAttachedToJVM()
if not jpype.isThreadAttachedToJVM():
print "Needs to attach..."
jpype.attachThreadToJVM()
print "Check Attached=", jpype.isThreadAttachedToJVM()
extractor = Extractor(extractor=extractorType, url=sourceUrl) About boilerpipe: the check |
@tcalmant Thanks for the patch its working fine :) |
alright! Thanks for the clarification! |
@tcalmant Hey im running the same example in production with nginx and uwsgi but its breaking
right in this line . Log doesnt show any error .It just gets stuck here .But its working independently as script in the python console .Any idea .. |
To give more details, When we are trying via Python-rq (extracting article in the background) thats when it fails silently... I can see rq-worker running but nothing really happens... |
Hi, |
Hey,
Python-biolerpipe work perfectly from the console and as a script but when i trying it out with my flask application it breaks .This break when i try to instantiated Extractor and pass the url . This is what i get
http://pastebin.com/Rhzfh3hE
Initially i thought this problem is coming from jpype i raised a ticket there too . Didint help much
jpype-project/jpype#22
Environment details
I did saw similar issue been raised but that didnt help much :-/ . Any help will be appreciated.Thanks
The text was updated successfully, but these errors were encountered: