irfan-arshad-arbisoft / mytracks

Automatically exported from code.google.com/p/mytracks
0 stars 0 forks source link

java.lang.IllegalStateException: Queue full #1480

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The problem happens when MyTracks Tasker/Locale Plug-in from Greenesse 
Technologies attempts to start or stop a MyTracks recording.
2. I can't tell whether this is a universal problem.
3.

What is the expected output? What do you see instead?
MyTracks recording should start or stop. Instead a crash is recorded for the 
plug-in:

03-20 16:09:17.869 E/ActivityManager(  986): App crashed! Process: 
com.greenesse.mytracksplugin
03-20 16:09:17.869 E/AndroidRuntime(15094): FATAL EXCEPTION: main
03-20 16:09:17.869 E/AndroidRuntime(15094): Process: 
com.greenesse.mytracksplugin, PID: 15094
03-20 16:09:17.869 E/AndroidRuntime(15094): java.lang.RuntimeException: Unable 
to start service 
com.greenesse.mytracksplugin.BroadcastExecutiveService@421bfad8 with Intent { 
act=start cmp=com.greenesse.mytracksplugin/.BroadcastExecutiveService }: 
java.lang.IllegalStateException: Queue full
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
android.app.ActivityThread.handleServiceArgs(ActivityThread.java)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
android.app.ActivityThread.access$2100(ActivityThread.java)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
android.app.ActivityThread$H.handleMessage(ActivityThread.java)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
android.os.Handler.dispatchMessage(Handler.java)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
android.os.Looper.loop(Looper.java)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
android.app.ActivityThread.main(ActivityThread.java)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
java.lang.reflect.Method.invokeNative(Native Method)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
java.lang.reflect.Method.invoke(Method.java:515)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
dalvik.system.NativeStart.main(Native Method)
03-20 16:09:17.869 E/AndroidRuntime(15094): Caused by: 
java.lang.IllegalStateException: Queue full
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
java.util.AbstractQueue.add(AbstractQueue.java:69)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
java.util.concurrent.ArrayBlockingQueue.add(ArrayBlockingQueue.java:282)
03-20 16:09:17.869 E/AndroidRuntime(15094): at 
com.greenesse.mytracksplugin.BroadcastExecutiveService.onStartCommand(BroadcastE
xecutiveService.java:84)
03-20 16:09:17.869 E/AndroidRuntime(15094): ... 11 more

Full log is attached.

My understanding is that 'put' should be used instead of 'add' to solve 
problems like this.

What version of MyTracks are you using? v2.0.6

On what version of Android? 4.4.2 

On what phone? HTC One

If possible please provide a log by uploading here.
Detailed instructions can be found here:
http://code.google.com/p/mytracks/wiki/HowToReportErrors

Please provide any additional information here:

Original issue reported on code.google.com by staffan....@gmail.com on 20 Mar 2014 at 7:12

Attachments:

GoogleCodeExporter commented 9 years ago
Can you report this issue to Greenesse Technologies? This is not something we 
can fix on the My Tracks side.

Original comment by jshih@google.com on 1 Apr 2014 at 10:40

GoogleCodeExporter commented 9 years ago
I've forwarded this to Greenesse T. In case they cannot fix or I get no 
feedback, is there any way that the starting and stopping of MyTracks recording 
can be controlled directly from Tasker using events without the need for the 
plugin? If not, can that function be added to MyTracks?

Original comment by staffan....@gmail.com on 1 Apr 2014 at 11:01