Twidere-Android icon indicating copy to clipboard operation
Twidere-Android copied to clipboard

Error when sending tweet with two images

Open maroneze opened this issue 4 years ago • 1 comments

Expected behavior

Tweet should be sent normally.

Actual behavior

After uploading two images, but before successfully sending the tweet, Twidere emits an error message:

segment size must be >= 1
java.nio.HeapByteBuffer[pos=64 lim=64 cap=66].

Steps to reproduce

(Must be logged in to Twitter account)

  • Press "feather" button to compose new tweet
  • Press "paperclip" button to "Add media". Select first image.
  • Repeat to add second image.
  • Press "right arrow" (send) button.
  • Wait a minute while images and text are uploaded via mobile data.
  • The error message above briefly appears in Twidere (I had to screenshot it to be able to copy it); the unsent tweet is put in the Drafts folder, and a notification "Tweet not sent." appears. Trying to send it again results in the same error. Changing the text message and trying to send again results in the same error. Sending a tweet with a single image seems to work fine. Some googling seems to indicate the issue might be related to the Twitter API and not specifically to Twidere, but I don't know how to properly check it.

Extra info

Android version: 12

Network type:

  • [X] Cellular
  • [ ] Wi-Fi

App version: 4.1.8 Build variant:

  • [ ] Google
  • [X] F-Droid

Micro-blogging service:

  • [X] Twitter
  • [ ] Fanfou
  • [ ] GNU Social / StatusNet
  • [ ] Mastodon

App settings:

  • [ ] Custom API
  • [ ] Custom consumer key/secrets
  • [ ] Official keys
  • [ ] Using Thumbor
  • [ ] Connected through proxy
  • [ ] Media preview enabled

maroneze avatar Nov 18 '21 14:11 maroneze

It affects me too, Twidere is able to post to a Mastodon instance but not to Twitter.

4.1.8, Android 11, F-Droid, both WiFi and cellular.

SievaFliesAlone avatar Dec 20 '21 03:12 SievaFliesAlone