BlackBerry - IllegalStateException ArticInterface::DocPosToCaret

by adrian vintu 11/24/2009 2:26:00 PM
A few days ago I found another rare BlackBerry bug. I was playing with some list elements and everything was working fine until I ran the code on a BlackBerry Curve 8300.

I was suddenly presented with this popup.



I have never seen this error so I googled for it. Unfortunately there was no reasonable explanation. So I decided to investigate it.
First thing I did was to take a peek at the event log. I did it by pressing ALT+L+G+L+G and I got this.



Taking a look at the exception trace showed this.



I needed to see the full log for details, so I used
javaloader -u eventlog
More...

Colored Logcat Script for Windows

by adrian vintu 11/2/2009 12:08:00 PM

I found a nice script from Jeff Sharkey that formats nicely and in color the adb logcat.
Unfortunately Jeffs script works only on *ix so I decided to make a port to Windows.

Here is a screenshot of the adb logcat without color

And here a screenshot of the the adb logcat with color

As you can see, the colored adb logcat is a huge improvement.

To easily use the code, copy the files color_console.py, coloredlogcat.py and logcat.bat to your Android SDK/platform-tools path like c:\android-sdk-windows\platform-tools\logcat.bat. Now, instead of running "adb logcat" just run "logcat".

Please be gentile with the code as I am not a Python programmer :)

You can download the files here colored_logcat.zip (3 KB)

Thanks go to
Jeff Sharkey
André Burgaud
ActiveState for ActivePython

EDIT: The version required for ActivePython is 2.6 not the newest one.


About Adrian Vintu

Adrian Vintu I am a computer software professional lately designing and programming .NET and Android applications.
Send mail

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008 - 2012

Sign in