Code Monkey home page Code Monkey logo

Comments (17)

seven332 avatar seven332 commented on July 19, 2024

Crash every time ?

from ehviewer.

RadarNyan avatar RadarNyan commented on July 19, 2024

Double-checked, yes it crashes every time (it loads title and other things fine but crashes right before any thumbnail shows up)

from ehviewer.

seven332 avatar seven332 commented on July 19, 2024

I checked the code. It should not happen. But I do some warning thing about generic type in the code of cache. Maybe the code is error for the platform.

from ehviewer.

seven332 avatar seven332 commented on July 19, 2024

0.6.11.2 work fine and 0.6.12 does not ? I only add web login in 0.6.12. Could you please show the error log in 0.6.12 ?

from ehviewer.

RadarNyan avatar RadarNyan commented on July 19, 2024

Sorry, my bad... I don't know how it happened but the apk I had with the name of 0.6.12 acturally was 0.6.13, so there was nothing unaccountable.

from ehviewer.

seven332 avatar seven332 commented on July 19, 2024

It's OK. I will fix the warning.

from ehviewer.

Laforeta avatar Laforeta commented on July 19, 2024

I'm having the same issue here - program crashing on physical device with android 4.4 since 0.6.13, logs are exactly the same as above.

from ehviewer.

seven332 avatar seven332 commented on July 19, 2024

@Laforeta Could you please tell me your phone model ?

from ehviewer.

Laforeta avatar Laforeta commented on July 19, 2024

@seven332 Motorola Droid Maxx (XT-1080M). I can install and run all pre-0.6.13 versions without crash so this seems to be a specific issue.

from ehviewer.

seven332 avatar seven332 commented on July 19, 2024

@Laforeta Did you phone use ART as runtime environmen ?

from ehviewer.

Laforeta avatar Laforeta commented on July 19, 2024

@seven332 No, it was on Dalvik the whole time. I tried switching to ART and it did not help.

from ehviewer.

seven332 avatar seven332 commented on July 19, 2024

@RadarNyan @Laforeta I hope it work now.
Please download the apk here https://mega.co.nz/#!BtEXWBAS!HxibUXmfTZSkWq3h8dewEtabGq7m3VLTbJ8zWOy9zWM

from ehviewer.

Laforeta avatar Laforeta commented on July 19, 2024

@seven332 Thank you very much for your time. I tried the linked build and it still crashes the same way as before. If this only affects a few devices then perhaps you should not worry about it - I will try to do some debugging on my end. Thanks again for your help.

from ehviewer.

RadarNyan avatar RadarNyan commented on July 19, 2024

Recent Chrome Update breaks ARChon (I can't even run the 2048 sample app) and the app worked fine on my phone, so there's nothing I can do... will check once ARChon back to work though.

from ehviewer.

seven332 avatar seven332 commented on July 19, 2024

It is my mistake, I didn't check the log carefully. I should have gotten the reason earlier.
Actually it is a bug of kitkat. I checked the source code of Android.
In kitkat-release branch, it will throw NullPointerException if mBuffer is null

1169    public final int getAllocationByteCount() {
1170        return mBuffer.length;
1171    }

In kitkat-mr1-release branch, they fixed the bug

1169    public final int getAllocationByteCount() {
1170        if (mBuffer == null) {
1171            // native backed bitmaps don't support reconfiguration,
1172            // so alloc size is always content size
1173            return getByteCount();
1174        }
1175        return mBuffer.length;
1176    }

So just avoid invoking this method.

It should work this time.
https://mega.co.nz/#!kpFVhZJI!mn6e2sK2IMl1sSKqh8KpT_3XVoVmhyKoevnAiOsHsns

from ehviewer.

seven332 avatar seven332 commented on July 19, 2024

@Laforeta Please check the apk above.

from ehviewer.

Laforeta avatar Laforeta commented on July 19, 2024

@seven332 that did the magic - it is fully stable now. Thanks heaps! This explains why people on 4.4.1 and later versions of Android never had the issue to begin with.

from ehviewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.