Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 88 results for
dylib
- Page 1
Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
… 0x00000001048ef7a7 0 + 4371445671 9 libjvm.
dylib
0x0000000103b6336e JavaCalls::call_helper(JavaValue*, methodHandle*, … 0x00007fff8568b8c6 CGContextDrawImage + 434 19 libawt_lwawt.
dylib
0x0000000118e1c31b Java_sun_lwawt_macosx_CRobot_nativeGetScreenPixels + 348 20 ???…
Java Program crashes at around 30min. libosxapp.dylib plugin crash
Hardware and Software
macOS
10 Years Ago
by scheppy
… 0x00000001048ef7a7 0 + 4371445671 9 libjvm.
dylib
0x0000000103b6336e JavaCalls::call_helper(JavaValue*, methodHandle*, … 0x00007fff8568b8c6 CGContextDrawImage + 434 19 libawt_lwawt.
dylib
0x0000000118e1c31b Java_sun_lwawt_macosx_CRobot_nativeGetScreenPixels + 348 20 ???…
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
Nope, that it, no stack trace... it crashes with that message in the terminal, and the the huge dialog that I posted when I created this post, which is a new window in itself. says that program has crashed with the libjvm
dylib
plugin and that I can send crash information to apple... Any thought on Illegal Exception: 4??
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Hardware and Software
macOS
10 Years Ago
by rubberman
Too much data to analyze in any reasonable amount of time. Reduce it to some reasonable subset around the point of the crash, along with other supporting data. FWIW, 250ms per snap is only 1/4 of a second. This is a lot of data to capture, and may be contributory to your failure. Try setting it to 1 second intervals and see what happens.
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Hardware and Software
macOS
10 Years Ago
by scheppy
Great idea, although the bot won't fuction properly, because it needs speed to play properly and consistant. I will try this when I get home and let you know. BTW... It is only taking screenshots on certain areas, the biggest being maybe 200 pixels by 600, mostly only 100 by 300. But I will give it a try and report back.
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Hardware and Software
macOS
10 Years Ago
by scheppy
the bot wont funtion properly at 1 seconds intervals, ill set the bot to take screenshots every 500milliseconds instead of every 250milliseconds right now and ill keep you all posted
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Hardware and Software
macOS
10 Years Ago
by scheppy
ok, resuts. It crashed again, at 66min thought, functioning perfectly at 500milliseconds per screenshot. Anyone have any thoughts what this could mean?
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
Im still having a problem with this... Does someone have any clue just a litt bit???
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by JamesCherrill
I see 20 threads there - is that expected? If it's a problem with your code (as opposed to a bug in the lib itself) the it probably relates to your not closing/freeing/terminating something properly (maybe)
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
I dont even know how to multithread. what could that even mean, how would I accidently make new threads?
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by JamesCherrill
Without seeing the code I can only guess. Do you create one `new Robot()` and re-use that for everything, or do you create a new Robot for each screen shot?
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by ~s.o.s~
I see that you are using OpenJDK. Would it be possible for you to try out Oracle JDK and see if the same thing happens?
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
I use 1 robot, I dont recreate it everytime. It initialize it once in my main, and use that same robot for all the tasks. Open JDK? Ill look into that, dident know there was a differance.I Think I am running oracleJDK...Ill look into that a little more, how to tell.
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
I do use this code alot!!! this piece. The program will take a screenshot of a certain section of the screen, put all the pixels into an array, than look for a color, if it finds the matching color, it will do robots events accordingly. Screenshot = robot.createScreenCapture(TroopRect); Pixels = ((DataBufferInt) Screenshot.getRaster().…
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by ~s.o.s~
> I Think I am running oracleJDK...Ill look into that a little more, how to tell. Oracle JDK is the JVM implementation offered by Oracle (previously Sun). OpenJDK is the open source implementation of JVM. You can find it out by doing: java -version At the command prompt. If it contains "openjdk", it means that you have …
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
Ive done some research and the version of java i have is oracle jdk. I even reinstalled it for good measure, but this doesant seem to fix the problem.
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by ~s.o.s~
How did you reinstall it? Can you post the output of `java -version` here?
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b27) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
ok, so I did some profiling with netbeans. results.. The heap size never when over 50% of what it could do.. max surviving generations of garbage collections was 8, but ussually it was 5..., nbd. Relative time spent on gc is 0.0% with a maximum relative time spent on cg is 0.9%... But the classes.... When the program starts after like 2min there …
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by ~s.o.s~
I don't think this has got something to do with memory; if you run out of memory you should get an out of memory error. The only times I have seen the JVM crash is when there is a problem with the native library we have written or any third-party native library we are using. Is this a pure Java app? Have you tried running the same app on JDK 7?
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
yes this app is pure java, and no, i havent tried running it ok JDK 7, I will try this and let DaniWeb know. Thanks
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
Ok, so im downloaded jdk 7 but netbeans wont allow anything under java 8. Im kinda stuck, whhat should I do?
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by ~s.o.s~
Why do you need Netbeans to run a Java app? If you have the JDK, all you have to do is create a JAR for your application (which can be done in Netbeans) and then simply run the JAR from the command line. Search around the internet for creating a runnable-JAR in Netbeans and executing that JAR from the command line...
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
Well I know how to do all that lol, and know how to run it from the command line, its just i have JDK 8 on my mac, I installed JDK 7, but cant find it anywhere!!!! spent hours looking.
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by ~s.o.s~
I don't own a Mac so won't be able to help you out on that one. Mabe try the Mac forum? In any case, since you already know how to run the app on command line, all you would need to do is locate the JDK 7 executable and run your JAR.
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
ok, Ive spent hours on this already, but thier has to be a way, keep you all updated
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by scheppy
ok, so I finally got to program to run on JDK 7, it still crashes!!!:(. What Another message that I recieve in terminal when the program crashes is Illegal Exception: 4 what could this mean anyone???
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by ~s.o.s~
> What Another message that I recieve in terminal when the program crashes is Illegal Exception: 4 Is this the entire exception message? Don't you have the stack trace?
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Hardware and Software
macOS
10 Years Ago
by scheppy
Hey guys....any help on the issue would be appreciated. Please visit the java section of the forum, to see the same question, and see updates.... Thanks.
Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash
Programming
Software Development
10 Years Ago
by ~s.o.s~
Nope, never seen it before. What version of Java was the JAR file compiled for? Did you recompile the JAR file with JDK 7 before running it?
1
2
3
Next
Search
Search
Forums
Forum Index
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2025 DaniWeb® LLC