Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

on some androids the app crashes on TiGallery #3

Open
azriel46d opened this issue May 22, 2014 · 0 comments
Open

on some androids the app crashes on TiGallery #3

azriel46d opened this issue May 22, 2014 · 0 comments

Comments

@azriel46d
Copy link

The array passed is :

["http://292fc373eb1b8428f75b-7f75e5eb51943043279413a54aaa858a.r38.cf3.rackcdn.com/8635b8afcecc53d22f558b677aa139cf3574086571-1400759881-537de649-620x348.jpg"]

Log gives the following

05-22 12:51:45.600: E/TiApplication(3304): (KrollRuntimeThread) [5255,5292] Sending event: exception on thread: KrollRuntimeThread msg:android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.; Titanium 3.2.2,2014/03/05 12:22,96e9a07
05-22 12:51:45.600: E/TiApplication(3304): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
05-22 12:51:45.600: E/TiApplication(3304):  at android.view.ViewRoot.checkThread(ViewRoot.java:2932)
05-22 12:51:45.600: E/TiApplication(3304):  at android.view.ViewRoot.requestLayout(ViewRoot.java:629)
05-22 12:51:45.600: E/TiApplication(3304):  at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.600: E/TiApplication(3304):  at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.600: E/TiApplication(3304):  at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.600: E/TiApplication(3304):  at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.600: E/TiApplication(3304):  at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.600: E/TiApplication(3304):  at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.600: E/TiApplication(3304):  at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.600: E/TiApplication(3304):  at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:257)
05-22 12:51:45.600: E/TiApplication(3304):  at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.600: E/TiApplication(3304):  at android.widget.ImageView.setImageDrawable(ImageView.java:322)
05-22 12:51:45.600: E/TiApplication(3304):  at android.widget.ImageView.setImageBitmap(ImageView.java:336)
05-22 12:51:45.600: E/TiApplication(3304):  at ru.truba.touchgallery.TouchView.TouchImageView.setImageBitmap(TouchImageView.java:372)
05-22 12:51:45.600: E/TiApplication(3304):  at ru.truba.touchgallery.TouchView.UrlTouchImageView$ImageLoadTask.onPostExecute(UrlTouchImageView.java:124)
05-22 12:51:45.600: E/TiApplication(3304):  at ru.truba.touchgallery.TouchView.UrlTouchImageView$ImageLoadTask.onPostExecute(UrlTouchImageView.java:82)
05-22 12:51:45.600: E/TiApplication(3304):  at android.os.AsyncTask.finish(AsyncTask.java:417)
05-22 12:51:45.600: E/TiApplication(3304):  at android.os.AsyncTask.access$300(AsyncTask.java:127)
05-22 12:51:45.600: E/TiApplication(3304):  at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
05-22 12:51:45.600: E/TiApplication(3304):  at android.os.Handler.dispatchMessage(Handler.java:99)
05-22 12:51:45.600: E/TiApplication(3304):  at android.os.Looper.loop(Looper.java:130)
05-22 12:51:45.600: E/TiApplication(3304):  at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
05-22 12:51:45.620: E/AndroidRuntime(3304): FATAL EXCEPTION: KrollRuntimeThread
05-22 12:51:45.620: E/AndroidRuntime(3304): android.view.ViewRoot$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.view.ViewRoot.checkThread(ViewRoot.java:2932)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.view.ViewRoot.requestLayout(ViewRoot.java:629)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.widget.RelativeLayout.requestLayout(RelativeLayout.java:257)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.view.View.requestLayout(View.java:8267)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.widget.ImageView.setImageDrawable(ImageView.java:322)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.widget.ImageView.setImageBitmap(ImageView.java:336)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at ru.truba.touchgallery.TouchView.TouchImageView.setImageBitmap(TouchImageView.java:372)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at ru.truba.touchgallery.TouchView.UrlTouchImageView$ImageLoadTask.onPostExecute(UrlTouchImageView.java:124)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at ru.truba.touchgallery.TouchView.UrlTouchImageView$ImageLoadTask.onPostExecute(UrlTouchImageView.java:82)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.os.AsyncTask.finish(AsyncTask.java:417)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.os.AsyncTask.access$300(AsyncTask.java:127)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:429)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.os.Handler.dispatchMessage(Handler.java:99)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at android.os.Looper.loop(Looper.java:130)
05-22 12:51:45.620: E/AndroidRuntime(3304):     at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:112)
~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant