mate-desktop / pluma

A powerful text editor for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
154 stars 66 forks source link

long json or txt file freezes pluma #673

Open EvilrootNix opened 1 year ago

EvilrootNix commented 1 year ago

Expected behaviour

The file is displayed by pluma

Actual behaviour

pluma freezes

Steps to reproduce the behaviour

try to open foo.json 1.3mb

MATE general version

MATE 1.26.0

Package version

pluma 1.26.0-2

Linux Distribution

Manjaro mate Version 22.1.0-1

Link to bugreport of your Distribution (requirement)

Manjaro reports bug to upstream directly, like Arch Linux (the package of Manjaro is the same of the arch)

With a 1.3 mb .json file, puma pluma freezes up completely. It's not an inherited issue or GTK related since with gedit using MATE it doesn't occur.

I'm attaching an example file foo.json, renamed to foo2.txt

But crash too with .txt extension.

Maybe related with https://github.com/mate-desktop/pluma/issues/671 ?

Edit - Preferences - Editor - check "Show Spaces" and not "Show trailing spaces only", then freezes.

When I enable "show spaces" + "show trailing spaces only" does not freezes, otherwise yes

In the terminal says: Could not init tracker3 search engine: The name org.freedesktop.Tracker3.Miner.Files was not provided by any .service files

Vim, Nano, Kate and Geany works fine with this file. Kate show an advertisement about line have more than 10.000 chars, enable temporaly the limit.

Maybe the large line more than 300k chars? But in the mentioned editors works.

foo2.txt

zhuyaliang commented 1 year ago

I can't reproduce this problem

[mate@mouse tmp]$ pluma -V
pluma - Version 1.26.0
[mate@mouse tmp]$ cat /etc/os-release 
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://bugs.archlinux.org/"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
[mate@mouse tmp]$ du -shb foo.txt 
5157928 foo.txt
[mate@mouse tmp]$ 
EvilrootNix commented 1 year ago

Please, delete the file foo.txt, was my mistake, the file have sensitive information.

I am editing replacing names with xxxx, foo2.txt

@zhuyaliang zhuyaliang Edit - Preferences - Editor - check "Show Spaces" and not "Show trailing spaces only", then freezes.

When I enable "show spaces" + "show trailing spaces only" does not freezes, otherwise yes