deckerst / aves

Aves is a gallery and metadata explorer app, built for Android with Flutter.
BSD 3-Clause "New" or "Revised" License
2.79k stars 106 forks source link

Printing .jpeg gets stuck at 50% #1280

Closed Braeunig closed 1 week ago

Braeunig commented 2 weeks ago

Describe the bug When exporting a .jpeg with mainly handwriting on it, the progress bar goes to 50% very quickly and then stays there for at least a few minutes. I managed to convert one image a few days ago, but ever since it gets stuck.

To Reproduce Steps to reproduce the behavior:

  1. Go to any .jpeg file with handwriting on it
  2. Click on the 3 dots
  3. Click on Export
  4. Click on Print
  5. Get stuck at 50%

Expected behavior Progress bar going up or other indication that it hasn't frozen

Screenshots Example of the bug: Screenshot_20241108-163041.png

The jpeg in question: IMG_20241108_163019737.jpg

System information and logs: Package: deckers.thibault.aves.libre Installer: org.fdroid.fdroid Aves version: 1.11.17-libre, build 13602 Flutter: stable 3.24.4 Android version: 14, API 34 Android build: U2.6-240828-1906 Device: Nothing A142 Support: dynamic colors=true, geocoder=true, HDR=true Mobile services: not available Connectivity: wifi System locales: en_GB, en_CA, de_DE Storage volumes: /storage/emulated/0/ Storage grants: /storage/emulated/0/Movies/, /storage/emulated/0/Pictures/, /storage/emulated/0/DCIM/, /storage/emulated/0/Android/media/ Error reporting: false

Additional context The return button doesn't work and to use the app again, it has to be closed and reopened

deckerst commented 2 weeks ago

Related:

Braeunig commented 2 weeks ago

And the Logs I had forgotten:

--------- beginning of main
11-08 16:21:18.481  1116  1116 I ScrollIdentify: on fling
11-08 16:21:19.767  1116  1290 I flutter : Report log with message=Lifecycle inactive
11-08 16:21:20.604  1116  1116 I d.t.a.MainActivity: onStop
11-08 16:21:20.611  1116  1116 I d.t.a.MainActivity: onDestroy
11-08 16:21:20.611  1116  1116 I t.t     : stop listening to Media Store
11-08 16:21:20.612  1116  1116 I t.y     : stop listening to system settings
11-08 16:21:20.643  1116  1116 I media_kit: package:media_kit_libs_android_video detached.
11-08 16:21:20.693  1116  1290 I flutter : Report log with message=Lifecycle hidden
11-08 16:21:20.693  1116  1290 I flutter : Report log with message=Lifecycle paused
11-08 16:21:20.694  1116  1290 I flutter : Report log with message=Lifecycle detached
11-08 16:21:20.705  1116  1303 E libEGL  : call to OpenGL ES API with no current context (logged once per thread)
11-08 16:21:20.729  1116  1116 W WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda17@920df7d
11-08 16:21:20.754  1116  1116 W FlutterJNI: Tried to send a platform message response, but FlutterJNI was detached from native C++. Could not send. Response ID: 38130
11-08 16:21:23.562  2303  2303 I ault.aves.libre: Using CollectorTypeCMC GC.
11-08 16:21:23.564  2303  2303 E ault.aves.libre: Not starting debugger since process cannot load the jdwp agent.
11-08 16:21:23.620  2303  2371 W QT      : qt_process_init() called
11-08 16:21:23.620  2303  2371 E QT      : [QT]file does not exist
11-08 16:21:23.620  2303  2371 W QT      : Support!!
11-08 16:21:23.622  2303  2371 E QT      : [QT]file does not exist
11-08 16:21:23.625  2303  2303 I d.t.a.MainActivity: onCreate intent=Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=deckers.thibault.aves.libre/deckers.thibault.aves.MainActivity bnds=[844,1368][1045,1615] }
11-08 16:21:23.639  2303  2303 I d.t.a.MainActivity: onStart
11-08 16:21:23.650  2303  2303 W ault.aves.libre: type=1400 audit(0.0:47156): avc:  denied  { read } for  name="max_map_count" dev="proc" ino=37458171 scontext=u:r:untrusted_app:s0:c52,c257,c512,c768 tcontext=u:object_r:proc_max_map_count:s0 tclass=file permissive=0 app=deckers.thibault.aves.libre
11-08 16:21:23.699  2303  2303 I ffmpeg-kit: Loading ffmpeg-kit.
11-08 16:21:23.704  2303  2303 I ffmpeg-kit: Loaded ffmpeg-kit-video-arm64-v8a-6.0-lts-20230913.
11-08 16:21:23.707  2303  2303 I media_kit: package:media_kit_libs_android_video attached.
11-08 16:21:23.709  2303  2303 I media_kit: Saved application context.
11-08 16:21:23.724  2303  2303 I t.t     : start listening to Media Store
11-08 16:21:23.732  2303  2303 I t.y     : start listening to system settings
11-08 16:21:23.736  2303  2303 I SurfaceFactory: [static] sSurfaceFactory = com.mediatek.view.impl.SurfaceFactoryImpl@ef37962
11-08 16:21:23.744  2303  2397 I d.t.a.MainActivity: set shortcuts: videos, search, map
11-08 16:21:23.752  2303  2380 I flutter : Report log with message=Lifecycle resumed
11-08 16:21:23.753  2303  2303 I M-ProMotion: M-ProMotion is disabled
11-08 16:21:23.762  2303  2401 I PowerHalWrapper: PowerHalWrapper.getInstance 
11-08 16:21:23.792  2303  2303 E FBI     : Can't load library: dlopen failed: library "libmagtsync.so" not found
11-08 16:21:23.801  2303  2303 I SurfaceView: surfaceview vote min fps
11-08 16:21:23.802  2303  2361 E OpenGLRenderer: Unable to match the desired swap behavior.
11-08 16:21:23.809  2303  2380 I flutter : dynamic_color: Core palette detected.
11-08 16:21:23.840  2303  2380 I flutter : Device is connected=true
11-08 16:21:23.867  2303  2380 I flutter : Report set keys build_mode=release, has_mobile_services=false, is_television=false, locales=en_GB, en_CA, de_DE, time_zone=CET (1:00:00.000000)
11-08 16:21:23.867  2303  2380 I flutter : App setup in 125ms
11-08 16:21:23.867  2303  2380 I flutter : Report log with message=Launch
11-08 16:21:23.872  2303  2380 I flutter : Apply display refresh rate: auto
11-08 16:21:23.896  2303  2380 I flutter : Device is locked=false
11-08 16:21:23.900  2303  2380 I flutter : App mode set to AppMode.main
11-08 16:21:23.900  2303  2380 I flutter : Report set key app_mode=AppMode.main
11-08 16:21:23.901  2303  2380 I flutter : Report log with message=Initialize source to start app with mode=AppMode.main, loaded scope=null
11-08 16:21:23.901  2303  2380 I flutter : Report log with message=MediaStoreSource init target scope={}
11-08 16:21:23.913  2303  2380 I flutter : MediaStoreSource load essentials complete in 12ms
11-08 16:21:23.915  2303  2380 I flutter : Report log with message=MediaStoreSource load (known) start
11-08 16:21:23.915  2303  2380 I flutter : MediaStoreSource load 0:00:00.000040 load 36 top entries
11-08 16:21:23.916  2303  2380 I flutter : Home setup complete in 45ms
11-08 16:21:23.916  2303  2380 I flutter : Report log with message=Nav push to /collection
11-08 16:21:23.916  2303  2380 I flutter : Report log with message=Nav remove to unnamed null
11-08 16:21:23.930  2303  2303 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application.
11-08 16:21:23.930  2303  2303 W WindowOnBackDispatcher: Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
11-08 16:21:23.930  2303  2303 W WindowOnBackDispatcher: OnBackInvokedCallback is not enabled for the application.
11-08 16:21:23.930  2303  2303 W WindowOnBackDispatcher: Set 'android:enableOnBackInvokedCallback="true"' in the application manifest.
11-08 16:21:23.935  2303  2380 I flutter : MediaStoreSource load 0:00:00.019534 fetch known entries
11-08 16:21:23.981  2303  2380 I flutter : MediaStoreSource load 0:00:00.065896 check obsolete entries
11-08 16:21:24.011  2303  2380 I flutter : MediaStoreSource load 0:00:00.095455 add known entries
11-08 16:21:24.015  2303  2380 I flutter : MediaStoreSource load 0:00:00.099258 load metadata
11-08 16:21:24.034  2303  2380 I flutter : Evict cached images for uri=content://media/external/images/media/1000003449, mimeType=image/png, dateModifiedSecs=1726825515, rotationDegrees=0, isFlipped=false
11-08 16:21:24.034  2303  2380 I flutter : Evict cached images for uri=content://media/external/images/media/1000003588, mimeType=image/png, dateModifiedSecs=1728330907, rotationDegrees=0, isFlipped=false
11-08 16:21:24.047  2303  2380 I flutter : Report log with message=MediaStoreSource load (known) done in 0s for 500 known, 0 removed
11-08 16:21:24.047  2303  2380 I flutter : Report log with message=MediaStoreSource load (new) start
11-08 16:21:24.047  2303  2380 I flutter : MediaStoreSource load 0:00:00.000000 recover untracked entries
11-08 16:21:24.065  2303  2380 I flutter : MediaStoreSource load 0:00:00.017401 check obsolete paths
11-08 16:21:24.105  2303  2380 I flutter : MediaStoreSource load 0:00:00.057659 fetch new entries
11-08 16:21:24.159  2303  2380 I flutter : MediaStoreSource load 0:00:00.112107 analyze
11-08 16:21:24.175  2303  2303 I ault.aves.libre: Explicit concurrent mark compact GC freed 7427KB AllocSpace bytes, 88(3836KB) LOS objects, 82% free, 5127KB/29MB, paused 176us,760us total 14.317ms
11-08 16:21:24.205  2303  2380 I flutter : Report log with message=MediaStoreSource load (new) done in 0s for 0 new entries
11-08 16:21:25.093  2303  2380 I flutter : Report log with message=Nav push to unnamed _PopupMenuRoute<EntrySetAction?>
11-08 16:21:28.325  2303  2380 I flutter : Report log with message=Nav pop to /collection
11-08 16:21:31.577  2303  2380 I flutter : Report log with message=Nav push to /settings
11-08 16:21:59.640  2303  2303 I ScrollIdentify: on fling
11-08 16:22:04.794  2303  2380 I flutter : Report log with message=Nav pop to /collection
11-08 16:22:07.361  2303  2380 I flutter : Report log with message=Nav push to /about
11-08 16:22:18.067  2303  2303 I ScrollIdentify: on fling
11-08 16:22:18.679  2303  2303 I ScrollIdentify: on fling
11-08 16:22:22.164  2303  2303 I ScrollIdentify: on fling
11-08 16:22:29.970  2303  2303 I ScrollIdentify: on fling
11-08 16:22:30.339  2303  2303 I ScrollIdentify: on fling
11-08 16:22:32.292  2303  2303 I ScrollIdentify: on fling
11-08 16:22:32.747  2303  2303 I ScrollIdentify: on fling
11-08 16:22:34.237  2303  2303 I ScrollIdentify: on fling
11-08 16:22:35.437  2303  2303 I ScrollIdentify: on fling
11-08 16:22:37.928  2303  2303 I ScrollIdentify: on fling