Skip to content

model seems like loaded but nothing on the screen after some bugs #65

Open
@Jaemani

Description

preinstall, bug fixed
run terminal at yolo-flutter-app/example.
required flutter create, ran it.

  1. win32 version caused error,
    clean cache&flutter get+ flutter pub upgrade win32 not worked,
    manually upgraded from 3.1.4 to 5.6.0. solved it.

  2. flutter minimum required kotlin > 1.7.0, but now 1.5.10 changed to "ext.kotlin_version = '1.7.10'".

  3. requierd compileSdkVersion 34, so changed compileSdkVersion 33 to 34

  4. transforms-3/...transformed/jetified-core-ktx-1.13.1-api.jar!/META-INF/core-ktx_release.kotlin_module
    metadata is 1.8.0, expected 1.5.1
    changed back to "ext.kotlin_version = '1.5.10'". and flutter required 1.7.10 again.
    so fix again to "ext.kotlin_version = '1.7.10'"

android
build successful.
uncomment the object detector, and choosed builted-in .tflite model.
Not working,
it was black when it is asking about permission, but
only white blank screen after request permission.
when click button just show 1,0,1,0 at terminal.

macOS & iOS simulator
build successful.
uncomment the object detector, and choosed builted-in .mlmodel model.
Not working,
only white screen after request permission.

also added loading placeholder code as github page, but no any letters shown, only blank white screen.

loadingPlaceholder: const Center(
                                    child: Wrap(
                                      direction: Axis.vertical,
                                      crossAxisAlignment:
                                          WrapCrossAlignment.center,
                                      children: [
                                        CircularProgressIndicator(
                                          color: Colors.white,
                                          strokeWidth: 2,
                                        ),
                                        SizedBox(height: 20),
                                        Text(
                                          'Loading model...',
                                          style: TextStyle(
                                            fontStyle: FontStyle.italic,
                                            fontSize: 14,
                                          ),
                                        ),
                                      ],
                                    ),
                                  )

Performing hot reload...
Reloaded 0 libraries in 333ms (compile: 21 ms, reload: 0 ms, reassemble: 77 ms).
I/ViewRootImpl@aba3422MainActivity: MSG_WINDOW_FOCUS_CHANGED 0 0
I/ViewRootImpl@aba3422MainActivity: stopped(false) old = false
I/DecorView(20421): notifyKeepScreenOnChanged: keepScreenOn=false
I/MSHandlerLifeCycle(20421): removeMultiSplitHandler: no exist. decor=DecorView@60f07b1[MainActivity]
I/ViewRootImpl@aba3422MainActivity: performTraversals params={(0,0)(fillxfill) sim={adjust=resize forwardNavigation} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030001
I/ViewRootImpl@aba3422MainActivity: fl=81810100
I/ViewRootImpl@aba3422MainActivity: pfl=12020040
I/ViewRootImpl@aba3422MainActivity: vsysui=500
I/ViewRootImpl@aba3422MainActivity: bhv=DEFAULT
I/ViewRootImpl@aba3422MainActivity: fitSides= naviIconColor=0
I/ViewRootImpl@aba3422MainActivity: sfl=100000}
I/ViewRootImpl@aba3422MainActivity: performTraversals mFirst=false windowShouldResize=false viewVisibilityChanged=false mForceNextWindowRelayout=false params={(0,0)(fillxfill) sim={adjust=resize forwardNavigation} ty=BASE_APPLICATION fmt=TRANSLUCENT wanim=0x1030001
I/ViewRootImpl@aba3422MainActivity: fl=81810100
I/ViewRootImpl@aba3422MainActivity: pfl=12020040
I/ViewRootImpl@aba3422MainActivity: vsysui=500
I/ViewRootImpl@aba3422MainActivity: bhv=DEFAULT
I/ViewRootImpl@aba3422MainActivity: fitSides= naviIconColor=0
I/ViewRootImpl@aba3422MainActivity: sfl=100000}
I/ViewRootImpl@aba3422MainActivity: updateBlastSurfaceIfNeeded mBlastBufferQueue=0xb4000076015deff0 isSameSurfaceControl=true
I/BLASTBufferQueue(20421): update, w= 1080 h= 2316 mName = ViewRootImpl@aba3422[MainActivity] mNativeObject= 0xb4000076015deff0 sc.mNativeObject= 0xb40000759161f950 format= -3 caller= android.view.ViewRootImpl.updateBlastSurfaceIfNeeded:2898 android.view.ViewRootImpl.relayoutWindow:9847 android.view.ViewRootImpl.performTraversals:3884 android.view.ViewRootImpl.doTraversal:3116 android.view.ViewRootImpl$TraversalRunnable.run:10885 android.view.Choreographer$CallbackRecord.run:1301
I/ViewRootImpl@aba3422MainActivity: Relayout returned: old=(0,0,1080,2316) new=(0,0,1080,2316) req=(1080,2316)0 dur=8 res=0x0 s={true 0xb400007691649b50} ch=false seqId=0
I/ViewRootImpl@aba3422MainActivity: updateBoundsLayer: t = android.view.SurfaceControl$Transaction@bf9e8da sc = Surface(name=Bounds for - com.ultralytics.ultralytics_yolo_example/com.ultralytics.ultralytics_yolo_example.MainActivity@0)/@0xf6c10b frame = 2
I/ViewRootImpl@aba3422MainActivity: mWNT: t=0xb4000075c15efdf0 mBlastBufferQueue=0xb4000076015deff0 fn= 2 caller= android.view.ViewRootImpl.prepareSurfaces:2985 android.view.ViewRootImpl.performTraversals:4233 android.view.ViewRootImpl.doTraversal:3116
I/ViewRootImpl@aba3422MainActivity: MSG_WINDOW_FOCUS_CHANGED 1 0
I/ViewRootImpl@aba3422MainActivity: mThreadedRenderer.initializeIfNeeded()#2 mSurface={isValid=true 0xb400007691649b50}
D/InputMethodManager(20421): startInputInner - Id : 0
I/InputMethodManager(20421): startInputInner - mService.startInputOrWindowGainedFocus

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions