bugGNU Octave - Bugs: bug #58109, Editor: highlighted/selected text...

 
 

bug #58109: Editor: highlighted/selected text removed on focus change

Submitter:  None
Submitted:  Fri 03 Apr 2020 04:23:43 PM UTC
   
 
Category:  GUI Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Need Info Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 5.2.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Mon 11 Apr 2022 08:57:47 PM UTC, comment #11: 

I am using Fedora 34, and Plasma Wayland, Octave v5.2.0, and have this issue. If i switch to Plasma X11, then the bug does not appear.

Richard Shadbolt <shadders>
Fri 30 Apr 2021 11:32:47 PM UTC, comment #10: 

I no longer have the environment with the issue.

I built 435fc29162c0 on Ubuntu 20.04 with Qt 5.12.8 and QSci 11.2.
With this config the text is not disappearing.

MB <huppyflup>
Wed 30 Dec 2020 05:45:45 PM UTC, comment #9: 

what are the Qt and QScintilla versions on the systems where the issue occurs? I have tested on my Debian system with

  • Qt 5.11.3 and QSci 10.4
  • Qt 5.15.1 and QSci 11.5


without seeing selected text disappearing in the editor when re-focusing Octave.

Torsten Lilge <ttl>
Group Member
Fri 03 Jul 2020 05:12:48 AM UTC, comment #8: 

Because of the (hopefully soon) upcoming release of Octave 6, I worked more with the GUI recently.

On openSUSE 15.1, cset 627da618dcc4 (01 Jul 2020) I still see this issue ☹️

(file #octave_editor_bug.png)


Kai Torben Ohlhus <siko1056>
Group Member
Thu 28 May 2020 11:21:21 PM UTC, comment #7: 

I built with the changeset you said. The issue is still the same.

MB <huppyflup>
Wed 27 May 2020 06:10:54 PM UTC, comment #6: 

Could you please test with a recent build from the stable branch. Changeset http://hg.savannah.gnu.org/hgweb/octave/rev/2b52e473b6ef fixed some other focus issues with the editor, maybe the one described here is also addressed by it.

Torsten Lilge <ttl>
Group Member
Thu 23 Apr 2020 02:36:18 PM UTC, comment #5: 

Same here on openSUSE Leap 15.1 with Octave 5.2.0 and dev.

Guillaume <gyom>
Thu 09 Apr 2020 10:12:24 AM UTC, comment #4: 

I can reproduce this issue.
I'm on Ubuntu 19.04 with Octave 6.0.0 build from commit 27910:543520386e1e.

After switching focus to Firefox and back to Octave pressing one of alt,shift,ctrl deletes the selected text.

MB <huppyflup>
Mon 06 Apr 2020 12:40:28 PM UTC, comment #3: 

Hello, submitter here. The patch would be much appreciated.

I can build a patched version on OBS [1], no problem. This would include all opensuse specific flags and patches as well.

For a vanilla build, I'd have to try, never did one before.

[1] build.opensuse.org

cn0 <cn0>
Mon 06 Apr 2020 03:19:12 AM UTC, comment #2: 

Torsten, I was interested in this patch.

I can reproduce the issue with Octave 5.2.0 / 6.0.1 / 7.0.0 build on an openSUSE 15.1 system.  This issue I noticed in older versions of Octave and openSUSE, too.

When using an Octave 5.2.0 build based on Ubuntu 18.04, this issue is not reproducible.

Kai Torben Ohlhus <siko1056>
Group Member
Sun 05 Apr 2020 10:55:48 AM UTC, comment #1: 

Thanks for the report. This issue is not reproducable on my system. Are you able to build octave yourself? If yes, I could prepare a patch for gathering information about what might be causing the issue.

Torsten Lilge <ttl>
Group Member
Fri 03 Apr 2020 04:23:43 PM UTC, original submission:  

Hello all,

we're running Octave 5.2 (but this problem has occurred since 5.1) on opensuse
Leap 15.1 with xfce 4.12. We tried reproducing on a plain window manager (DWM),
but it's working fine there.

The problem we're encountering is text selections in the editor being deleted
when switching focus with other programs (e.g. Firefox).

# How to reproduce:

This is the most reliable way to reproduce.

0) open some other program (e.g. Firefox)
1) open octave-gui
2) write something in the editor
3) select some text
4) focus other program (alt+tab or click with mouse)
5) switch focus back to octave
6) see selections is gone
7) click undo to bring text back

We tried some more variants, but they don't produce the issue all the time.
First one is somehow "timing" dependent.

3) select some text
4) immediately switch focus
5) text disappears on octave losing focus

When you switch to another tab (like Documentation) before switching to another
program, the issue doesn't seem to appear. But if you click the Editor tab to
regain focus, the selection is lost.

3) select some text
4) switch to Documentation tab
5) focus other program
6) switch focus back to octave by clicking the Editor tab
8) text removed

# Related reports:

This report is similar, but the problem occurred when switching between tabs in
the editor itself (e.g. simultaneously opened files).

https://savannah.gnu.org/bugs/?func=detailitem&item_id=43214

Cheers

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #49412:  octave_editor_bug.png added by siko1056 (111KiB - image/png)

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -email is unavailable- added by shadders (Posted a comment)
  • -email is unavailable- added by gyom (Posted a comment)
  • -email is unavailable- added by huppyflup (Posted a comment)
  • -email is unavailable- added by cn0 (Posted a comment)
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by ttl (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-03-06 ttl StatusConfirmed Need Info
    2020-12-29 ttl Dependencies- bugs #59777 is dependent
    2020-07-03 siko1056 Attached File- Added octave_editor_bug.png, #49412
    2020-04-06 siko1056 Item GroupNone Incorrect Result
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code