Comments (6)
Is this happening with all tweets, or just some?
Message with type 32 on stream [username]: null
isn't a promising start! We could probably do better handling it.
If you're running a custom build, can you make sure that you've passed --buildtype=debug
to meson and run it again. You should get all of the JSON for each tweet dumped (so it might get a bit long!). There should also be some lines about POST requests so we know where it was in the process of sending the message to the Twitter API.
from cawbird.
I tried rerunning meson build
with --buildtype=debug
before --reconfigure
and it printed some output, and then I reran ninja -C build
and it printed some output ending ninja: no work to do.
Is that correct?
I haven't been exhaustive but I haven't been able to successfully "heart" a tweet, whether a real tweet posted by a friend or a retweet that made its way into my timeline. I have a bunch of output, as before, but as it includes stuff from my Twitter account I'm hesitant to post it here. (I could send it to you privately if you like.) However, I note that when I right-click on the tweet to bring up the four tweet actions, the log ends at Focus widget now: DoubleTapButton 0x561ca4446d40
. When I choose the action to take, that's when the rest of the output happens and triggers the crash. I suspect no POST request is happening because when I log in to Twitter's web interface and check "Likes", no tweets newer than Mar 4th are visible.
I can also reproduce the crash by clicking on the tweet to bring it up by itself (TweetListEntry
?) and clicking the heart in the lower right corner. In this case, the last line in the log before I click the heart is MainWindow.vala:60: Focus widget now: GtkMenuButton 0x55a5de05e410
, and once I click on the heart, the same GtkToggleButton
lines happen.
I was concerned about the lines saying Focus widget now: (null) (nil)
but I can produce those just by right clicking on a tweet to bring up its menu and then right clicking on it again to bring the contents of the tweet back. In that case I get logs like:
(cawbird:1345142): cawbird-DEBUG: 16:33:24.068: MainWindow.vala:60: Focus widget now: DoubleTapButton 0x564b5c7c0d60
(cawbird:1345142): cawbird-DEBUG: 16:33:25.037: MainWindow.vala:60: Focus widget now: (null) (nil)
(cawbird:1345142): cawbird-DEBUG: 16:33:25.038: MainWindow.vala:60: Focus widget now: TweetListEntry 0x564b5c709300
from cawbird.
ninja: no work to do
means that it hasn't recompiled anything. So it either didn't enable debug builds, or it did and you're not getting the output. What does meson configure <build-dir>
show? I've got a buildtype debug
line.
I've just checked and it seems like we don't do debug for Like/RT. Which is annoying. There must be something bad in the JSON, though. I'll make a quick branch with some extra logging in.
from cawbird.
There, I've added some debugging. If you can build that branch then it might give a bit more info.
The other thing that you can try is running it in gdb
:
gdb path/to/cawbird
run
- Recreate crash and segfault
bt
andinfo locals
That should tell us exactly where it crashed and what the local variables were.
from cawbird.
Thanks! The failure seems to have to do with the application credentials I created. From the log:
(cawbird:1454731): cawbird-DEBUG: 16:39:05.364: TweetUtils.vala:356: Liking 1506369197311512583
(cawbird:1454731): cawbird-DEBUG: 16:39:05.475: TweetUtils.vala:371: invoke_async returned
(cawbird:1454731): cawbird-DEBUG: 16:39:05.475: TweetUtils.vala:33: Failed request code: 401
(cawbird:1454731): cawbird-DEBUG: 16:39:05.475: TweetUtils.vala:42: Failed request payload: {"request":"\/1.1\/favorites\/create.json","error":"Read-only application cannot POST."}
Indeed, the token I've been using was generated for a Twitter app that I created some ten years ago and only has read permissions. I guess Twitter must have added authorization at some point, or maybe I was inadvertently using a different Twitter app. Either way this also answers why I can't successfully post from Cawbird any more. Thanks for once again helping me debug an idiosyncratic self-inflicted bug!
from cawbird.
I'll keep this open because we shouldn't crash on that. But yeah, if you're using bespoke keys that are read-only (which they might be for a while until Twitter activate them) then you will be able to retrieve tweets but not like/RT/post 😁
from cawbird.
Related Issues (20)
- Can't play videos - Cawbird 15 on Zorin 16 Based off Ubuntu 20.04 LTS HOT 8
- sometimes, url's/content simply dont show (screenshots) HOT 1
- Making the app default for Twitter related URLs system-wide HOT 3
- Add more metadata for GNOME Software HOT 2
- Cawbird spams stderr with assertion failure warnings when no monitor is connected
- Request for ARM64/ARMhf OBS releases on Ubuntu 18.04 HOT 5
- Cawbird loads briefly, then dies HOT 1
- problems using on Venom Linux with SSL??? HOT 4
- YA problem with cawbird on venom linux ... HOT 2
- Switch to libsoup3 HOT 4
- Please update hungarian language file HOT 8
- Ability to click on the app when it is not in focus, without opening a tweet HOT 1
- Saving picture from private message does not work HOT 1
- REQ: Minimize to tray HOT 1
- Repo Change: Don't build new packages when there is no upstream release HOT 6
- Flatpak gnome 41 info/warning HOT 2
- "cawbird: error while loading shared libraries: librest-0.7.so.0: cannot open shared object file: No such file or directory" HOT 7
- Can't delete messages in my inbox HOT 5
- Twitter has banned Third Party clients HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cawbird.