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

Too many ANRs, #3939

Closed
FitApps7 opened this issue Oct 22, 2019 · 1 comment
Closed

Too many ANRs, #3939

FitApps7 opened this issue Oct 22, 2019 · 1 comment
Labels

Comments

@FitApps7
Copy link

FitApps7 commented Oct 22, 2019

Glide Version:
implementation 'com.github.bumptech.glide:glide:4.10.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'

Integration libraries:
no

Device/Android Version:
Oppo realme C2 (RMX1945), Android 9
Xiaomi Redmi Note 7 Pro (violet), Android 9
Samsung Galaxy A10s (a10s), Android 9
Samsung Galaxy M10 (m10lte), Android 9
Motorola moto g(6) play (aljeter), Android 9
Samsung Galaxy J6 (j6lte), Android 9
Motorola moto g(6) play (aljeter), Android 9
Samsung Galaxy S9+ (star2lte), Android 9
Samsung Galaxy S8 (dreamlte), Android 9

Issue details / Repro steps / Use case background:
on firebase crashlytics there ANRs found

outputBitmap = TransformationUtils.rotateImageExif(bitmapPool, toTransformBitmap, exifOrientationDegrees);



outputBitmap = TransformationUtils.fitCenter(bitmapPool, toTransformBitmap, outWidth, outHeight);



 Glide.with(ivThumb)
                .asBitmap()
                .override(150)
                .transform(new CenterCrop(), new RoundedCorners(20), new FilterTransformation(thumb.getFilter()))
                .load(thumb.getImage())
                .into(ivThumb);



public void recycled() {Glide.with(ivThumb).clear(ivThumb); }



Glide.with(ImgPopupActivity.this).load(imgPath).into(imageView);



Glide.with(mContext)
                    .asBitmap()
                    .override(-1)
                    .load(PicturePreviewActivity.temp)
                    .transform(new RotateFlipTransformation(orientation))
                    .listener(new RequestListener<Bitmap>() {
                        @Override
                        public boolean onLoadFailed(@Nullable GlideException e, Object model, Target<Bitmap> target, boolean isFirstResource) {
                            return false;
                        }




                        @Override
                        public boolean onResourceReady(Bitmap resource, Object model, Target<Bitmap> target, DataSource dataSource, boolean isFirstResource) {
                            PicturePreviewActivity.temp = resource;
                            ArrayList<Thumb> thumbs = new ArrayList<>();
                            List<Filter> filters = FilterUtilsNew.getFilterPack(getApplicationContext());
                            for (Filter filter : filters) {
                                thumbs.add(new Thumb(PicturePreviewActivity.temp, filter));
                            }
                            mRecyclerView.setAdapter(new ThumbAdapter(thumbs, FiltersActivity.this));
                            return false;
                        }
                    })
                    .into(ivMain);
        } catch (Exception e) {
            Timber.e("%s%s", TAG, e.getMessage());
        }

Layout XML:

<FrameLayout xmlns:android="...

Stack trace / LogCat:

#12 pc 00000000003027dc /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.resource.bitmap.TransformationUtils.applyMatrix+24)

#18 pc 0000000000301f26 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.resource.bitmap.TransformationUtils.centerCrop+194)

#24 pc 00000000002fe1f4 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.resource.bitmap.CenterCrop.transform)

#30 pc 00000000002fde78 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.resource.bitmap.BitmapTransformation.transform+68)

#36 pc 00000000002ed65a /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.MultiTransformation.transform+38)

#42 pc 00000000002f0d2e /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodeJob.onResourceDecoded+50)

#48 pc 00000000002f0504 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodeJob$DecodeCallback.onResourceDecoded+8)

#54 pc 00000000002f1764 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodePath.decode+8)

#60 pc 00000000002f4010 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.LoadPath.loadWithExceptionList+60)

#66 pc 00000000002f3f96 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.LoadPath.load+38)

#72 pc 00000000002f0ea6 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodeJob.runLoadPath+50)

#78 pc 00000000002f0ce0 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodeJob.decodeFromFetcher+20)

#84 pc 00000000002f0c5a /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodeJob.decodeFromData+22)

#90 pc 00000000002f1070 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodeJob.decodeFromRetrievedData+124)

#96 pc 00000000002f134a /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodeJob.onDataFetcherReady+66)

#102 pc 00000000002f4e76 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.SourceGenerator.onDataReady+102)

#108 pc 00000000002fc5e8 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.model.UnitModelLoader$UnitFetcher.loadData+4)

#114 pc 00000000002f4c16 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.SourceGenerator.startNext+210)

#120 pc 00000000002f15ea /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodeJob.runGenerators+46)

#126 pc 00000000002f16dc /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodeJob.runWrapped+132)

#132 pc 00000000002f14e2 /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.DecodeJob.run+54)

#145 pc 00000000002f855e /data/app/my.app.package.name-CPKfq7N4A855UhvgFAowHA==/oat/arm64/base.vdex (com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run+62)



@stale
Copy link

stale bot commented Oct 29, 2019

This issue has been automatically marked as stale because it has not had activity in the last seven days. It will be closed if no further activity occurs within the next seven days. Thank you for your contributions.

@stale stale bot added the stale label Oct 29, 2019
@stale stale bot closed this as completed Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant