Bug 468799 - Neochat file upload issue
Summary: Neochat file upload issue
Status: RESOLVED WORKSFORME
Alias: None
Product: NeoChat
Classification: Applications
Component: General (show other bugs)
Version: 23.04.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Tobias Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-22 09:13 UTC by Gergely HORVÁTH
Modified: 2023-04-28 13:05 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gergely HORVÁTH 2023-04-22 09:13:44 UTC
Hi!
I have some trouble with uploading files using neochat. This is in the logs:

```
quotient.events.messages: To client developers: using FileInfo(QUrl, qint64, ...) constructor for non-mxc resources is deprecated since Quotient 0.7; for local resources, use FileInfo(QFileInfo) instead
quotient.main: Couldn't open content source "20" for reading: "No such file or directory"
quotient.main: File transfer failed for id "GRZCQQZBHB16821546213441"
QObject::connect(NeoChatRoom, Unknown): invalid nullptr parameter
QObject::connect(NeoChatRoom, Unknown): invalid nullptr parameter
```

```sh
(0) horvathg@omnia : ~ (0) >> pacman -Qs neochat
local/neochat 23.04.0-1 (kde-applications kde-network)
    A client for matrix, the decentralized communication protocol
(0) horvathg@omnia : ~ (0) >> pacman -Qs quotient
local/libquotient 0.7.1-1
    A Qt library to write cross-platform clients for Matrix
```

Operating System: Arch Linux 
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.2.12-arch1-1 (64-bit)
Graphics Platform: X11
Processors: 8 × 11th Gen Intel® Core™ i7-11370H @ 3.30GHz
Memory: 31,1 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: TUXEDO
Product Name: TUXEDO InfinityBook Pro 14 Gen6

Thanks for looking into it!
Best regards,
Gergely
Comment 1 Tobias Fella 2023-04-28 12:42:19 UTC
How are you uploading the file, through the button in the message bar or by dragging it into the window?

Also, are you sure you're not running a flatpak?
Comment 2 Gergely HORVÁTH 2023-04-28 13:03:30 UTC
Okay, that is weird: I just tested both drag and dropping and using the button, and also hitting enter or clicking the Send button and all worked, so I cannot reproduce this anymore... When I experienced it I used drag and drop I think, but not 100% sure.

I'm sure I'm not using flatpak, see the output (repsonse means: "error: no package named 'flatpak'"):

```sh
(0) horvathg@omnia : ~ (0) >> pacman -Qi flatpak
hiba: a(z) 'flatpak' csomag nem található
```

Also, I haven't upgraded anything since this happened. So I'm not sure what happened. You can close it and if I experience it again I try to remember what were the actions carried out.

Best regards,
Gergely