taksan / skype-java-api

Skype API for Java, based on Skype4Java library
128 stars 60 forks source link

.send() appears to repeat infinitely #10

Open AJCStriker opened 12 years ago

AJCStriker commented 12 years ago

There doesn't seem to be anywhere for help requests on this project so i will post it here.

I have built a test program however it simply loops, forever repeating the send message command. The code does not progress further forward. On debugging, it appears line 861 of Connector.java repeats infinitely. I also noticed it was using more memory than normal during this period.

Any help is appreciated.

EDIT Further testing shows that after two cycles both the send and manual API command throw the following errors:

com.skype.connector.NotAttachedException at com.skype.connector.Connector.execute(Connector.java:871) at com.skype.connector.Connector.execute(Connector.java:827) at com.skype.connector.Connector.executeWithId(Connector.java:677) at net.countercraft.skype_bot.App.main(App.java:45) Caused by: com.skype.connector.NotAttachedException at com.skype.connector.Connector$11.call(Connector.java:935) at com.skype.connector.Connector$11.call(Connector.java:907) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:680)

taksan commented 12 years ago

I will investigate the problem. Thanks for reporting.

AJCStriker commented 12 years ago

Ok so what I have found in debug mode is that no response is received for a message, however I can see it has been sent and received.

Maybe an api glitch means certain commands have no return. From there the program executes its default try again then crash system.

Hope this helps.

AJCStriker commented 12 years ago

I'm also on Mac OS X Lion.

Any progress on this?

taksan commented 12 years ago

I noticed that the api is much less stable in mac than any other platform. It seems to be a specific problem with the native implementation. I'm investigating this issue and others related to Mac OS.

taksan commented 12 years ago

The problem you describe seems much like a problem I fixed in version 1.3. I also fixed other bugs and I'll release a new version this week with all these fixes.