5 Star 6 Fork 0

HarmonyOS-TPC / picasso

 / 详情

Picasso.get() throws exception (java.lang.RuntimeException: Stub!)

待办的
缺陷
创建于  
2021-05-02 01:44

Hi,

When using the library, the app crashes throwing RuntimeException "stub!" !?

  • code:
                        Picasso.get()
                        .load(user.getPicture())
                        .placeholder(ResourceTable.Media_profile_normal)
                        .fit()
                        .into(userImage);
  • library version: 1.0.4

  • entry/main/config.json:

 "apiVersion": {
      "compatible": 3,
      "target": 4,
      "releaseType": "Beta1"
    }
  • DEVICE: smart watch (Galileo), build: 10.1.0.38

  • Stacktrace:

05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: FATAL EXCEPTION: main
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: Process: com.steppi.watch, PID: 5390
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: java.lang.RuntimeException: Stub!
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at ohos.data.usage.StatVfs.<init>(StatVfs.java:25)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.squareup.picasso.Utils.calculateDiskCacheSize(Unknown Source:6)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.squareup.picasso.OkHttp3Downloader.<init>(Unknown Source:0)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.squareup.picasso.OkHttp3Downloader.<init>(Unknown Source:4)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.squareup.picasso.Picasso$Builder.build(Unknown Source:8)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.squareup.picasso.Picasso.get(Unknown Source:22)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.steppi.watch.ui.abilities.profile.ProfileAbilitySlice.setUserDataValues(ProfileAbilitySlice.java:122)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.steppi.watch.ui.abilities.profile.ProfileAbilitySlice.access$000(ProfileAbilitySlice.java:20)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.steppi.watch.ui.abilities.profile.ProfileAbilitySlice$1.onValueChanged(ProfileAbilitySlice.java:101)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.steppi.watch.ui.abilities.profile.ProfileAbilitySlice$1.onValueChanged(ProfileAbilitySlice.java:89)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.steppi.watch.utils.SObserver.lambda$onChanged$0$SObserver(SObserver.java:24)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.steppi.watch.utils.-$$Lambda$SObserver$O3PpFVkNp-NivtS_XA3fEx3JPbk.run(Unknown Source:4)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at ohos.app.dispatcher.task.Task.run(Task.java:71)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at android.os.Handler.handleCallback(Handler.java:900)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at android.os.Handler.dispatchMessage(Handler.java:103)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at android.os.Looper.loop(Looper.java:219)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at android.app.ActivityThread.main(ActivityThread.java:8437)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at java.lang.reflect.Method.invoke(Native Method)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513)
05-01 11:43:02.273 5390-5390/com.steppi.watch E AndroidRuntime: 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1088)

评论 (2)

Younes 创建了缺陷
Younes 关联仓库设置为OpenHarmony-TPC/picasso
展开全部操作日志

Similar issue on following version.

"apiVersion": {
      "compatible": 4,
      "target": 4,
      "releaseType": "Beta1"
    }

There are several issues here:

  1. The Picasso library code is compatible with SDK5. Please modify the config.json referring the sample application in this project code. Please run the project again with this change and check the result.
  2. 390/com.steppi.watch E AndroidRuntime: at ohos.data.usage.StatVfs.(StatVfs.java:25) based on this stack trace, may be this platform API is having issue, this we are verifying now.

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(3)
9061947 megaacheyounes 1619893727
1
https://gitee.com/HarmonyOS-tpc/picasso.git
git@gitee.com:HarmonyOS-tpc/picasso.git
HarmonyOS-tpc
picasso
picasso

搜索帮助

344bd9b3 5694891 D2dac590 5694891