Open LianVyv opened 4 days ago
hi, thanks for reporting the issue. Lemme check and get back to you
is it possible for you to ask them for a screen recording/screenshot, and their testing video as well
@maitrungduc1410 for this particular crash it unfortunately did not have a screenshot. Here is what I see on the PlayStore.
This crash have been recorded on two different release now and both times that screenshot is not getting read.
hi @LianVyv please upgrade to 2.2.11, I added a fallback for this. Check here
Hi @maitrungduc1410
I was preparing my app on the PlayStore and then they reported this issue
Device Google Pixel 5 1080x2340 Android 11 (SDK 30) 8,192 MB arm64-v8a en_ZA
I had a quick look at the code and I can see on two places where you doing division in
mediaPrepared()
method1.
VideoTrimmerUtil.mThumbWidth = VideoTrimmerUtil.THUMB_HEIGHT * bitmap.getWidth() / bitmap.getHeight();
ANDVideoTrimmerUtil.MAX_COUNT_RANGE = Math.max((VIDEO_FRAMES_WIDTH / VideoTrimmerUtil.mThumbWidth), VideoTrimmerUtil.MAX_COUNT_RANGE);
I doubt that it will be number 2. I'm assuming it is number 1. Do you think there is a chance that
bitmap.getHeight()
might be 0?This is how I call the code
I have not personally seen this crash happen. I have only noticed that on old Huawei device I can't open the trimming but still need to investiage this one wondering if it might be related.
Let me know if you need anything else.