christianselig / apollo-bugs

A public bug tracker for Apollo, an iOS Reddit app
227 stars 15 forks source link

Sharing to iMessage 1.8.6 #950

Open sagesundae opened 4 years ago

sagesundae commented 4 years ago

When attempting to share an image on Apollo through the share menu to iMessage does not actually share through. To Reproduce Steps to reproduce the behavior:

  1. Open image post
  2. Long press on image
  3. Choose share to iMessage
  4. Select message thread you want to share to
  5. Image that was intended to shared does not appear in the iMessage message field.

iOS version: 13.6 ( also in 13.5 and 13.4) Apollo version: 1.8.6 iOS device: iPhone XS Jailbroken: No Reproducible: every time

Expected behavior That it shares.

Screenshots 628E496C-32E6-4C54-979B-2E05330328DF 6ED305BC-FC02-4982-8380-B4EF63DACF74 583E22CC-425B-4BCD-BB49-4F44920BA51E 30CA3C2B-1EAA-4693-BD08-2ADEB19F78AD

MadCannedTuna commented 4 years ago

Adding additional context

Issue with sharing images is not just with iMessage, but through any app linked through the share feature.

Issue occurs either through use of the long press on image context menu or the ... icon context menu.

iOS version: 13.6 (updated today), and before update on 13.5 Apollo version: 1.8.6 iOS device: iPhone 7 Jailbroken: No Reproducible: every time

Expected behavior Image loads mini preview and shares to other app

Post to share image

Click image to view full image image

Long press image to share. Note preview image in top left corner doesn't load even after extended time. image

Share to new message, old message, other app, same result image

Same result through ... context menu image

Same result if sharing post as an image image

Again no preview of image image

Sharing to messages and no image is pasted into messages image

Same result if sharing post with comments as image image

Again no preview image

Sharing to discord has same result image

magnusbae commented 4 years ago

I'd like to note that I'm also experiencing this issue with the "share as image" function. Verified for both Messages, Discord and Slack.

Seems to have broken a lot of flows, but download image works, as well as copy link to post when sharing a link.

["iosversion": "13.6", "id": "8FC251E6-8E10-4869-8143-B8E75FAE1E3E", "jailbroken": "no", "version": "1.8.6", "build": "64", "testFlight": "no", "device": "iPhone"] iPhone Xs, iOS 13.6.

When I shared logs to myself by e-mail the latest logfile I got was August 13th, I only got files for 11th through 13th.

I'm seeing a lot of these in the logs, not sure if related.

    Remove
), NSFilePath=/private/var/mobile/Containers/Data/Application/80CC6BF3-BE85-4C4D-91A3-F23F65E303D5/tmp/Image.jpeg, NSUnderlyingError=0x2836883c0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

🦀 [Aug 12, 19:48:13.250] : [ReadPostsTracker.swift/markPostRead(withID:title:neverHide:)/156]: 🟦 Marked post read! Title: The developers of [Assetto Corsa Competizione] thought that they had found a bug in their game's simulation, when in reality the simulation was replicating a real-life problem they were not aware of.

🐞 [Aug 12, 19:49:05.977] : [ShareMediaManager.swift/shareImage(_:url:title:albumURL:shareType:viewController:)/193]: Error removing saved image file from temp directory: Error Domain=NSCocoaErrorDomain Code=4 "“Image.jpeg” couldn’t be removed." UserInfo={NSUserStringVariant=(
    Remove
), NSFilePath=/private/var/mobile/Containers/Data/Application/80CC6BF3-BE85-4C4D-91A3-F23F65E303D5/tmp/Image.jpeg, NSUnderlyingError=0x28351c300 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}

🦀 [Aug 12, 19:49:12.912] : [PostsViewController.swift/setBarButtonItems(animated:)/1564]: Wrapper: <UIBarButtonItem: 0x1033c8790> view=0x1033c65e0 Wrapper view frame: (0.0, 0.0, 78.0, 32.0), sortButton frame: (0.0, 0.0, 34.0, 32.0) moreOptions frame: (34.0, 0.0, 44.0, 32.0)

🦀 [Aug 13, 00:23:39.588] : [MediaPageViewController.swift/viewDidAppear(_:)/265]: Media Viewer opened

🐞 [Aug 13, 00:23:49.698] : [ShareMediaManager.swift/shareImage(_:url:title:albumURL:shareType:viewController:)/193]: Error removing saved image file from temp directory: Error Domain=NSCocoaErrorDomain Code=4 "“Image.jpeg” couldn’t be removed." UserInfo={NSUserStringVariant=(
    Remove
), NSFilePath=/private/var/mobile/Containers/Data/Application/80CC6BF3-BE85-4C4D-91A3-F23F65E303D5/tmp/Image.jpeg, NSUnderlyingError=0x2834769a0 {Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}}
MadCannedTuna commented 4 years ago

Solution: in Apollo go to Settings > General > Clear Cache

Possibility that this is caused by the image exceeding the cache size maximum?

imageimageimage

magnusbae commented 4 years ago

Solution: in Apollo go to Settings > General > Clear Cache

Possibility that this is caused by the image exceeding the cache size maximum?

Can confirm that clear cache also resolved it for me, but upon running clear cache it said my cache was 63MB out of 200 max.

Seems like a poisoned cache or another bug causing it.

Good to know there's a workaround. Thanks :)