hang during texture load

Started by raft, May 17, 2006, 12:05:15 AM

Previous topic - Next topic

raft

hello,

sometimes program hangs during initial texture loads. this typically happens after running the program a couple of times. i dont think this has anything to do with jpct but with java's image loading mechanism or whatever :?:

by hang i mean a proper hang. it stops responding forever. this is particularly strange since i load such stuff in a background thread, not in awt thread.

furthermore if i try to kill program with control-c it continues at the point it hanged and then terminates.

i suspected a deadlock in awt thread so runned the program with debug option. here comes the most strange part: after a hang, program continues to run if i attach it with debugger :?: anyway, i use this as a local workaround and always start the program with debug option  :wink:

any ideas why this happens and how to solve it
r a f t

culli

Don't know what platform you're developing on, but check out the Eclipse debugging and profiling stuff:
http://www.eclipsezone.com/eclipse/forums/t44632.html
http://www.theserverside.com/tt/articles/article.tss?l=EclipseProfiler

or try JProbe (commercial product, but free trial with registration...) http://www.quest.com/jprobe/

Also try running your program from a console, then pressing ctrl+break after it hangs to get a thread dump.

Regards,
Jim

raft

thanks for the tips ;) i use netbeans 5 but will remember the eclipse tips for future reference

i've completely forgotten the ctrl+break sequence, but unfortunately it doesnt work on my system :shock: possibly because of the keyboard
r a f t