[BUG][CRASH]Browsing on external card on SGS3 - reason found

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
GhorX
Junior Member
Junior Member
Posts: 5
Joined: 2011-12-13, 12:18 UTC

[BUG][CRASH]Browsing on external card on SGS3 - reason found

Post by *GhorX »

Card is 16GB with no problem detected, taken from rooted SG Note, may be some with rights? I will try root tomorow.

EDIT: Crashes when attempting application list from home panel or internal extensions.

EDIT2: Not only on SD

EDIT3: ANY item, which length is over maximum lenght of one line (32 chars in default), crashes app... I beg for fast correction, TC is very importannt for me.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

It has nothing to do with external sd cards or long names - I'm getting a lot of crash reports from users with the Samsung Galaxy S III, and with only this model. The problem is that the crashes do not occur in my own code, but when the screen is redrawn! The Galaxy S III seems to be missing an icon within the listview. Here is a typical stack trace:

Code: Select all

java.lang.NullPointerException
at android.widget.ImageView.onDraw(ImageView.java:912)
at android.view.View.draw(View.java:11167)
at android.view.ViewGroup.drawChild(ViewGroup.java:2887)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.view.ViewGroup.drawChild(ViewGroup.java:2885)
at android.widget.ListView.drawChild(ListView.java:3244)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.widget.AbsListView.dispatchDraw(AbsListView.java:2482)
at android.widget.ListView.dispatchDraw(ListView.java:3239)
at android.view.View.draw(View.java:11170)
at android.widget.AbsListView.draw(AbsListView.java:4099)
at android.view.ViewGroup.drawChild(ViewGroup.java:2887)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.view.ViewGroup.drawChild(ViewGroup.java:2885)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.view.ViewGroup.drawChild(ViewGroup.java:2885)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.view.View.draw(View.java:11170)
at android.widget.FrameLayout.draw(FrameLayout.java:450)
at android.widget.HorizontalScrollView.draw(HorizontalScrollView.java:1759)
at android.view.ViewGroup.drawChild(ViewGroup.java:2887)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.view.ViewGroup.drawChild(ViewGroup.java:2885)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.view.ViewGroup.drawChild(ViewGroup.java:2885)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.view.ViewGroup.drawChild(ViewGroup.java:2885)
at android.view.ViewGroup.dispatchDraw(ViewGroup.java:2489)
at android.view.View.draw(View.java:11170)
at android.widget.FrameLayout.draw(FrameLayout.java:450)
at com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2298)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2260)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1866)
at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2678)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4514)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:993)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:760)
at dalvik.system.NativeStart.main(Native Method)
As you can see, there is no trace of "TotalCommander" or "ghisler" in the crash report. It happens in ImageView.onDraw(), where there is a null pointer exception, probably a missing image or so.

For the moment, I have removed the Samsung Galaxy S III from the list of compatible devices in the Google Play Store. I will re-add it when I find the reason for these strange crashes.
Author of Total Commander
https://www.ghisler.com
GhorX
Junior Member
Junior Member
Posts: 5
Joined: 2011-12-13, 12:18 UTC

Post by *GhorX »

Thank you for response, I will wait. Only one note, I'm absolutelly sure with 32 chars limit, its can be verified very easy with lan plugin, on PC do rename, on mobile TC do refresh... No matter, if you wont help with testing, you may count on me, i'm programmer (delphi).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC 1.02 is out now! There should be no more crashes, but unfortunately there may not be any icons when the crash would occur. I'm still trying to find out what's wrong with the Galaxy S III...
Author of Total Commander
https://www.ghisler.com
GhorX
Junior Member
Junior Member
Posts: 5
Joined: 2011-12-13, 12:18 UTC

Post by *GhorX »

Works, thank you very much. BTW - Similar problem in my application under Windows 7 was caused by shell, which requested bigger icon for bigger "line" (TListItem, you probably know it). It happens after MS update.
Post Reply