after searching, clicking anywhere deletes file contents
Bug #1299240 reported by
Danielle Foré
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Scratch |
Fix Released
|
High
|
Niclas Lockner |
Bug Description
Running the latest daily on Isis
after performing a search, clicking anywhere in the sourceview clears the contents of the document.
This is very bad.
Related branches
lp://staging/~niclasl/scratch/fix-1299240
- Mario Guerriero (community): Approve
-
Diff: 59 lines (+11/-4)1 file modifiedsrc/Services/Document.vala (+11/-4)
Changed in scratch: | |
status: | Incomplete → Confirmed |
Changed in scratch: | |
assignee: | nobody → Niclas Lockner (niclasl) |
status: | Confirmed → In Progress |
Changed in scratch: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Can confirm this happens, but for me it doesn't require searching for something.
The content seems to get deleted either when clicking the source view or when switching tabs.
Worst thing is that the files are autosaved and sometimes it's impossible to undo/revert.
Some sample terminal output when switching tabs:
[_LOG_LEVEL_FATAL 16:41:48.429255] [GLib] g_string_erase: assertion 'pos >= 0' failed install. cmake" saved succesfully
[_LOG_LEVEL_FATAL 16:41:48.429291] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:49.850369] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:49.850423] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:49.850494] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:49.850529] Scratch will not function properly.
[_LOG_LEVEL_INFO 16:41:51.496965] Document.vala:278: File "cmake_
[_LOG_LEVEL_FATAL 16:41:51.500007] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:51.500073] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:51.500171] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:51.500221] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:51.500506] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:51.500558] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:51.500649] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:51.500695] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:53.818643] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:53.818715] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:53.818812] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:53.818860] Scratch will not function properly.
[_LOG_LEVEL_INFO 16:41:54.223175] Document.vala:278: File "CMakeLists.txt" saved succesfully
[_LOG_LEVEL_FATAL 16:41:54.226267] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:54.226328] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:54.226381] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:54.226402] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:54.226528] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:54.226554] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:54.226612] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:54.226632] Scratch will not function properly.
[_LOG_LEVEL_INFO 16:41:54.650283] Document.vala:278: File "CMakeLists.txt" saved succesfully
[_LOG_LEVEL_FATAL 16:41:54.653378] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:54.653434] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:54.653513] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:54.653552] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:54.653754] [GLib] g_string_erase: assertion 'pos >= 0' failed
[_LOG_LEVEL_FATAL 16:41:54.653797] Scratch will not function properly.
[_LOG_LEVEL_FATAL 16:41:54.653881] [GLib] g_string_erase: assertion 'pos >= 0' failed
...