Author Topic: hang during texture load  (Read 3572 times)

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
hang during texture load
« on: May 17, 2006, 12:05:15 am »
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
Code: [Select]
r a f t

Offline culli

  • byte
  • *
  • Posts: 13
    • View Profile
hang during texture load
« Reply #1 on: May 17, 2006, 02:55:18 am »
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

Offline raft

  • quad
  • ******
  • Posts: 1993
    • View Profile
    • http://www.aptalkarga.com
hang during texture load
« Reply #2 on: May 17, 2006, 03:34:02 am »
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
Code: [Select]
r a f t