LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-13-2018, 12:18 PM   #1
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu 14.04 & 16.04 LTS; Android; Fedora
Posts: 195

Rep: Reputation: Disabled
Kate closes unexpectedly


Hi:

I've used Kate for ages, but recently began experiencing some weird behavior. I'm currently using Linux Mint 18.3/Cinnamon 3.6.7/Kate 15.12.3.

Since I don't think any of these have been updated recently, I suspect I must have inadvertently changed some Kate setting, but can't figure out what.

Here are the symptoms:
1) If I have multiple tabs open, Kate will shut down completely when I close a single tab either from the [x] on the tab or the Ctrl+w command. The strange thing is that this only seems to happen with certain files.
2) If there is only 1 tab open and I close it as above, Kate shuts itself down a second or two after the tab closes. This is not as annoying as symptom #1, but up until a week or so ago, Kate didn't behave that way.

I found many references to Kate config files on the web, but (as usual) I had none of these files on my system. Using the find command, I did locate a reference to .local/share/kate/anonymous.katesession. I deleted that but it made no difference and Kate simply rebuilt that file, which seems to hold settings used for recently edited files.

I then tried a complete purge and reinstallation which didn't help either. I suspect there's some other file lurking in some dark corner that I need to alter or delete, but I can't find it.

My other suspicion is that I've somehow activated some Session set up, although there are no named sessions listed in the Kate menu, and I don't believe I've ever used this facility.

Does anyone have any ideas what I did (or maybe what Kate changed)?

Thanks for any help ...
 
Old 09-13-2018, 06:02 PM   #2
xode
Member
 
Registered: Aug 2003
Distribution: Mandrake 9.0; FC4; FC8; SUSE 10.3; SUSE 12.1; SUSE 13.2
Posts: 626
Blog Entries: 1

Rep: Reputation: 50
This is a completely wild guess on my part but possibly Kate is causing a SIGSEGV (memory segment) violation. If the configuration for your installation of Kate has settings for memory usage, setting those to not try to be "memory efficient" might get rid of your problem if SIGSEGV is the cause.

Last edited by xode; 09-14-2018 at 08:02 AM.
 
Old 09-13-2018, 09:18 PM   #3
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,879
Blog Entries: 27

Rep: Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668
I use Kate daily with Slackware, Debian, and Mageia and have not encountered any issues.

Whenever you need to use Kate, start it from the command line. Perhaps it will throw some useful error messages to the terminal if it crashes.

You might also check the log files. I'm not sure of Mint's log structure at the moment--I know that there are sometimes minor variations amongst distros. I think Mint is now using SystemD. This article, towards the end, explains how to use journalctl to narrow down a search of SystemD logs.
 
Old 09-14-2018, 09:13 AM   #4
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu 14.04 & 16.04 LTS; Android; Fedora
Posts: 195

Original Poster
Rep: Reputation: Disabled
Xode and frankbell: Thanks for the responses, but I guess I wasn't clear enough in my description, so let me give it another shot.

First, Kate does not seem to "crash" -- it just closes when I close the tab on a couple specific files, even when other tabs are still open. And by "specific files," I mean those known to me by name.

I have taken those particular files, opened them in other editors (one in Geany and the other in xed), made a few minor changes, and re-saved them. Because Kate still responds to them in the manner I described, I surmised that it must be remembering them by name, and perhaps in some config file that I could not locate. That's also why I suspected the "session" facility, since it was the only thing I found that seemed to be able to treat a selected group of files differently.

Renaming those files, however, didn't change the behavior, so unless Kate "knows" the identity of those files through some other mechanism than "name," my config file inference seems suspect. I tried looking at the files with less and even bless (hex editor), but didn't spot anything interesting (although, to be fair, had no idea what I would be looking for anyway).

But, again, thank you both for offering suggestions. I'm done with those particular files for the moment and Kate seems to be behaving normally with others, so it's not a killer problem - I just dislike it enormously when encountering "strange" behavior.
 
Old 09-14-2018, 09:55 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,879
Blog Entries: 27

Rep: Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668Reputation: 4668
Quote:
First, Kate does not seem to "crash" -- it just closes when I close the tab on a couple specific files, even when other tabs are still open. And by "specific files," I mean those known to me by name.
To make sure I understand clearly: The application stops completely when you close tabs containing certain specific files, but not when you close tabs containing other files and this behavior is limited only to those certain specific files. Is that a correct understanding?

Is there something about these files that makes them stand out from others?

What is their encoding?

When Kate closes, does it display its normal prompt to save or discard changes or does it just shut down? Have you checked whether it has left a residual process (I'm sure it has not, but I'd still check because, in troubleshooting, ruling out something is a step forward)?
 
Old 09-15-2018, 08:37 AM   #6
CVAlkan
Member
 
Registered: Nov 2012
Location: Northwest suburbs of Chicago
Distribution: Ubuntu 14.04 & 16.04 LTS; Android; Fedora
Posts: 195

Original Poster
Rep: Reputation: Disabled
Yes, your first paragraph is a correct understanding.

There is nothing special about the specific files that I can know of.

All files are UTF-8; since I often use multiple scripts/languages (although these particular files are all Latin/English), UTF-8 is the only encoding I use.

I'm a creature of habit and almost always explicitly save before exiting or even switching tabs, so the "save or discard" message isn't something I thought to check. I'll do that and see what happens.

I did a "ps -e" once and didn't spot anything, but I'll try that again as well.

Thanks again.
 
Old 09-15-2018, 02:38 PM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 19.1 MATE
Posts: 8,018
Blog Entries: 5

Rep: Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872Reputation: 2872
Quote:
Originally Posted by CVAlkan View Post
Yes, your first paragraph is a correct understanding.
If that is indeed a correct understanding then I would find a file which causes the issue, make a copy of it, then gradually strip out its contents, testing with Kate each time, in the hope that you can narrow down whether or not it is some particular content that's causing the problem.
 
Old 09-15-2018, 02:48 PM   #8
scasey
Senior Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.7.1908
Posts: 4,376

Rep: Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550Reputation: 1550
Just a SWAG
The files that cause the behavior contain a hidden control character, like EOF or the like.
hydrurga's suggestion might be a way to find such. Also, opening in vi/vim might reveal more detail...or in your favorite hex editor.
 
  


Reply

Tags
kate, shutdown


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Gnome Hearts 0.3 closes unexpectedly sequimbob Linux - Games 7 03-27-2016 12:20 PM
Expect spawn_id closes unexpectedly eliasson Programming 1 02-21-2014 02:45 PM
Kdenlive rendering stops, “melt”(MLT) closes unexpectedly williepabon Linux - Software 0 12-29-2012 04:45 AM
Ies4linux closes unexpectedly chris1379 Linux - Software 2 09-12-2009 02:10 PM
Firefox closes unexpectedly when viewing videos, games etc. asm06230 Linux - Software 1 01-28-2009 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration