deltachat / deltachat-core-rust

Delta Chat Rust Core library, used by Android/iOS/desktop apps, bindings and bots 📧
https://delta.chat/en/contribute
Other
663 stars 85 forks source link

sent pictures in location-streaming-mode do not arrive #4749

Closed ghost closed 1 year ago

ghost commented 2 years ago

This log may contain sensitive information. If you want to post it publicly you may examine and edit it beforehand.

device=WIKO W-V745-EEA (W-V745-EEA) android=11 (1653633227, RP1A.200720.011 release-keys) sdk=30 memory=18M (6.33% free, 256M max) memoryClass=128, low-mem device host=ubuntu applicationId=chat.delta app=Delta Chat 1.32.0-gplay installer=com.google.android.packageinstaller ignoreBatteryOptimizations=true notifications=true reliableService=true lang=it_IT rtl=false

arch=32 bcc_self=0 blobdir=/data/user/0/chat.delta/files/accounts/dd91d624-a7f3-4cef-9c46-4f41c27779c3/dc.db-blobs bot=0 configured_mvbox_folder=DeltaChat configured_sentbox_folder=Sent database_dir=/data/user/0/chat.delta/files/accounts/dd91d624-a7f3-4cef-9c46-4f41c27779c3/dc.db database_encrypted=false database_version=91 delete_device_after=0 delete_server_after=0 deltachat_core_version=v1.90.0 display_name= download_limit=0 e2ee_enabled=1 entered_account_settings=@**. imap:unset:*:mail.infomaniak.com:0:cert_automatic:AUTH_NORMAL smtp:unset:0:mail.infomaniak.com:0:cert_automatic:AUTH_NORMAL fetch_existing_msgs=1 fetched_existing_msgs=true fingerprint=*** folders_configured=3 imap_server_id=Some({"name": "Dovecot"}) is_configured=1 journal_mode=wal key_gen_type=0 last_housekeeping=1661021464 level=awesome mdns_enabled=1 media_quality=0 messages_in_contact_requests=0 mvbox_move=0 num_cpus=8 number_of_chat_messages=301 number_of_chats=11 number_of_contacts=8 only_fetch_mvbox=0 private_key_count=1 public_key_count=6 quota_exceeding=0 scan_all_folders_debounce_secs=60 secondary_addrs= selfavatar=/data/user/0/chat.delta/files/accounts/dd91d624-a7f3-4cef-9c46-4f41c27779c3/dc.db-blobs/selfavatar4068024968740531537.jpg send_sync_msgs=0 sentbox_watch=0 show_emails=2 socks5_enabled=0 sqlite_version=3.37.2 uptime=38h 6m 9s used_account_settings=**@**. imap:@.::mail.infomaniak.com:143:cert_strict:AUTH_NORMAL smtp:**@**.::mail.infomaniak.com:587:cert_strict:AUTH_NORMAL webrtc_instance=https://meet.jit.si/$ROOM

--------- beginning of main 08-21 12:17:05.836 6696 6696 I ConversationFragment: ⏰ getChatMsgs(27): 25ms 08-21 12:18:05.813 6696 6696 I ConversationFragment: ⏰ getChatMsgs(27): 3ms 08-21 12:19:05.813 6696 6696 I ConversationFragment: ⏰ getChatMsgs(27): 2ms 08-21 12:20:05.813 6696 6696 I ConversationFragment: ⏰ getChatMsgs(27): 2ms 08-21 12:21:05.817 6696 6696 I ConversationFragment: ⏰ getChatMsgs(27): 6ms 08-21 12:21:22.561 6696 6696 I PassphraseRequiredActionBarActivity: onDestroy() 08-21 12:21:22.640 6696 6696 D View : [Warning] assignParent to null: this = DecorView@3afdcf4[ConversationActivity] 08-21 12:21:22.649 6696 6696 I InputTransport: Destroy ARC handle: 0x82cbef00 08-21 12:21:22.650 6696 6696 I PassphraseRequiredActionBarActivity: onDestroy() 08-21 12:21:22.668 6696 6696 D View : [Warning] assignParent to null: this = DecorView@e0293a6[ConversationListRelayingActivity] 08-21 12:21:22.695 6696 6696 I InputTransport: Destroy ARC handle: 0x84158450 08-21 12:21:22.720 6696 6696 W PassphraseRequiredActionBarActivity: onCreate(null) 08-21 12:21:22.835 6696 6696 I DeltaChat: ++++++++++++++++++ first ForegroundDetector.onActivityStarted() ++++++++++++++++++ 08-21 12:21:22.836 6696 6762 I DeltaChat: src/context.rs:218: starting IO 08-21 12:21:22.838 6696 22990 I DeltaChat: calling maybeNetwork() 08-21 12:21:22.840 6696 22990 I DeltaChat: maybeNetwork() returned 08-21 12:21:22.840 6696 6762 I DeltaChat: src/scheduler.rs:379: smtp fake idle - interrupted 08-21 12:21:22.841 6696 6762 I DeltaChat: src/imap/idle.rs:83: Idle wait was interrupted 08-21 12:21:22.843 6696 6762 I DeltaChat: src/smtp.rs:634: Sending MDNs 08-21 12:21:22.844 6696 6762 I DeltaChat: src/scheduler.rs:353: smtp fake idle - started 08-21 12:21:22.844 6696 6762 I DeltaChat: src/scheduler.rs:375: smtp has no messages to retry, waiting for interrupt 08-21 12:21:22.862 6696 22694 I ConversationListFragment: executing debounced chatlist loading 08-21 12:21:22.871 6696 6696 I PassphraseRequiredActionBarActivity: onResume() 08-21 12:21:22.874 6696 6696 V PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@7b39258[] 08-21 12:21:22.876 6696 6696 D ViewRootImpl[RoutingActivity]: hardware acceleration = true , fakeHwAccelerated = false, sRendererDisabled = false, forceHwAccelerated = false, sSystemRendererDisabled = false 08-21 12:21:22.889 6696 6696 I InputTransport: Create ARC handle: 0x971e8d30 08-21 12:21:22.890 6696 6696 V PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = android.view.ViewRootImpl@5f535ed, this = DecorView@7b39258[RoutingActivity] 08-21 12:21:23.028 6696 6762 I DeltaChat: src/job.rs:350: loading job 08-21 12:21:23.148 6696 6762 I DeltaChat: src/imap.rs:904: 0 mails read from "INBOX". 08-21 12:21:23.155 6696 6762 I DeltaChat: src/imap/scan_folders.rs:28: Starting full [...]

gerryfrancis commented 1 year ago

@adbenitez confirmed that no EXIF GPS data of JPEG images are processed for geolocation, so this seems to be a general location streaming issue.

adbenitez commented 1 year ago

I can reproduce, @link2xt isn't this a core issue?

link2xt commented 1 year ago

If you click on the photo sending area on the recipient's map, a Trash group opens for you.

It is not clear to me what is a "photo sending area". @adbenitez Did you reproduce getting to trash chat by clicking the "photo sending area" or only tested that the message does not arrive?

I suspect that the message gets both the photo and location.kml attached and receiver assigns the message to trash because it has no text and location.kml: https://github.com/deltachat/deltachat-core-rust/blob/c41687586caa45086648a84a0a0b279b79efb3d9/src/receive_imf.rs#L1184

Here is my attempt to fix: #4751

adbenitez commented 1 year ago

It is not clear to me what is a "photo sending area".

yeah I also didn't get it at first but while testing realized what is it: on the receiving side if you open the map, and click the POI of the message, a message bubble is shown but without the image, if you tap it you jump to the message but it was trashed so you are in the trash chat

on the sending side when you tap the POI you see a a bubble with a thumbnail of the image

image