jiangtian616 / JHenTai

A cross-platform manga app made for e-hentai & exhentai by Flutter
Apache License 2.0
2.84k stars 75 forks source link

IOS阅读时下载单一图像原图失败 #346

Closed wydy closed 9 months ago

wydy commented 9 months ago

复现步骤 / Step to reproduce

任意画廊在浏览时,长按保存某一张图片的原图,只显示下载中,但没有下载到相册或者download文件夹里。同时图片配额已经扣除 单下载压缩版可以正常保存在相册里

预期行为 / Expected behaviour

应当与保存压缩版图片效果相同,将图片保存进相册

实际行为 / Actual Behaviour

显示“下载中”后就没有反应乐

应用日志 / App logs

🐛 init LogUtil success
🐛 init UserSetting success
🐛 init TabBarSetting success: default
🐛 init SiteSetting success
🐛 init FavoriteSetting success
🐛 init MyTagsSetting success
🐛 init EHSetting success, site: EX
🐛 init EHCookieManager success, cookies length:8
🐛 init EHCacheInterceptor success
🐛 init ReLoginService success
🐛 init DownloadSetting success
💡 System Proxy Address: 127.0.0.1:1082
🐛 init EHRequest success
🐛 init PreferenceSetting success
💡 Refresh Tag translation data
🐛 init TagTranslationService success
🐛 init MouseSetting success: default
🐛 init QuickSearchService success
🐛 init SuperResolutionSetting success
🐛 init SuperResolutionService success
🐛 init ReadSetting success
🐛 init HistoryService success
🐛 init Gallery groups: []
🐛 init Archive groups: []
🐛 init DownloadService success, download task count: 0
🐛 start download executor
🐛 init ArchiveDownloadService success. Tasks count: 0
🐛 init SearchHistoryService success
💡 refresh FavoriteSetting
💡 refresh SiteSetting
💡 refresh EHSetting
💡 refresh MyTagsSetting
🐛 init VolumeService success
💡 DashboardPageLogic get data, prevGid:null, nextGid:null
💡 Get ranklist data
💡 Get popular list data
💡 Refresh local gallerys, preCount:0, newCount: 0, timeCost: 109ms
🐛 App state change: -> AppLifecycleState.resumed
💡 refresh EHSetting success
💡 Latest version:[v7.4.10], current version: [v7.4.10]
💡 refresh SiteSetting success
💡 refresh FavoriteSetting success
💡 Get gallery details:https://exhentai.org/g/2790092/1910d244ef/
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
✔ Record history: Gallery{gid: 2790092, token: 1910d244ef, title: [Pixiv] くりから (24176), category: Image Set, cover: GalleryImage{url: https://s.exhentai.org/t/fa/46/fa4667342adc7e8e711644dd1476d05addb35be4-754989-800-1119-png_250.jpg, height: 350.0, width: 250.0, originalImageUrl: null, originalImageHeight: null, originalImageWidth: null, path: null, imageHash: null, downloadStatus: DownloadStatus.none}, pageCount: 921, rating: 4.0, hasRated: false, isFavorite: false, favoriteTagIndex: null, favoriteTagName: null, galleryUrl: https://e-hentai.org/g/2790092/1910d244ef/, tags: {}, language: null, uploader: 114514beastman, publishTime: 2024-01-06 06:11, isExpunged: false, isFilteredByLocalTag: false}
💡 refresh MyTagsSetting success, length: 7
✔ Begin to load Thumbnail 0 with page size: 40
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
✔ hit cache: https://e-hentai.org/s/fa4667342a/2790092-1
✔ Begin to load Thumbnail 3 with page size: 20
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
✔ hit cache: https://e-hentai.org/s/12e1ddc482/2790092-4
✔ Begin to load Thumbnail 7 with page size: 20
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
✔ Begin to load Thumbnail 1 with page size: 20
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
✔ hit cache: https://e-hentai.org/s/28cf96779a/2790092-2
✔ Begin to load Thumbnail 6 with page size: 20
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
✔ Begin to load Thumbnail 2 with page size: 20
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
✔ hit cache: https://e-hentai.org/s/31f06fe989/2790092-3
✔ Begin to load Thumbnail 4 with page size: 20
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
✔ hit cache: https://e-hentai.org/s/01132ee08d/2790092-5
✔ Begin to load Thumbnail 8 with page size: 20
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
✔ Begin to load Thumbnail 5 with page size: 20
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
✔ Begin to load Thumbnail 9 with page size: 20
✔ hit cache: https://e-hentai.org/g/2790092/1910d244ef/?p=0&hc=1
💡 Tag translation data downloaded
💡 Tag translation data is up to date, timestamp: 2024-01-05T12:57:34.000Z
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ PathAccessException: Creation failed, path = '/var/mobile/Containers/Data/Application/997C6A4B-CC49-4BC6-A421-5987421CC758' (OS Error: Operation not permitted, errno = 1)
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ #0   _Directory.createSync (dart:io/directory_impl.dart:124)
│ #1   _Directory.createSync (dart:io/directory_impl.dart:124)
│ #2   _File.createSync (dart:io/file_impl.dart:303)
│ #3   DioForNative.download (package:dio/src/entry/dio_for_native.dart:125)
│ #4   <asynchronous suspension>
│ #5   EHRequest.download (package:jhentai/src/network/eh_request.dart:534)
│ #6   <asynchronous suspension>
│ #7   BaseLayoutLogic.saveOriginalOnlineImage (package:jhentai/src/pages/read/layout/base/base_layout_logic.dart:265)
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ 14:16:05.690 (+0:00:17.243063)
├┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄
│ ⛔ Global Error
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
🐛 saveEnableVerboseLogging:false
🐛 saveEnableLogging:false
🐛 App state change: -> AppLifecycleState.inactive
🐛 App state change: -> AppLifecycleState.hidden

备注 / Addition details

No response

JHenTai 版本号 / JHenTai version

7.4.10+149

操作系统版本 / operating system version

IOS17.2.1

设备型号 / Device model

No response

自查步骤 / Verify steps

jiangtian616 commented 9 months ago

下载设置里,看下你的下载路径呢?看下目前容器的标识号是多少,如果和你日志中的/var/mobile/Containers/Data/Application/997C6A4B-CC49-4BC6-A421-5987421CC758不一致,那有可能是因为一个老bug导致保存路径失效了。

jiangtian616 commented 9 months ago

最新CI版本已修复,下个发布版本集成。