alibaba / alibaba/MNNKit

【严重Bug】实锤mPortraitSegmentor.inference方法内存泄漏

Open
#38 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
702
Forks
119
PR merge metrics
No merged PRs in 30d

Description

使用官网提供的MNNKit Demo for Android,进入到人像分割界面放着不动,几分钟后会因内存溢出导致App崩溃。

使用
Samsung A9 Star(Android 10) 约6分钟
Mi 8(Android10) 约7分半
Smartisan R1(Android 8.1) 约2分半钟
Google pixel4(Android 11) 约5分半钟
四台设备均会出现该问题,只是时间长短不同。

MNNKit版本为 com.alibaba.android.mnnkit:portraitsegmentation:0.0.6

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the portrait-segmentation screen behavior with MNNKit version 0.0.6 and inspect the mPortraitSegmentor.inference entry point. Use the listed Android devices or an equivalent sustained run to confirm memory growth; done means the app no longer exhausts memory during continued inference.

Written by the indexing model from the issue text.

Assessment

Tech stack
android
Domain
computer-vision, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.