2.1.2 bug/issues editing/updating document

Updated to 2.1.2 today— rendered my main daily file impossible to work with. Haven’t been able to fix this myself yet. Warning: long post, with a few FT specific console dumps.

  • Installed update, reopened main doc in FT.
  • Highlighted a list of 14 items/tasks under a level 2 header in a document of 10,050 words. Pressed delete key. Window cleared (no text visible), although the highlight remained. Saved, closed document and reopened. Text reappeared, including the text I’d attempted to delete
  • When document was reopened, it displayed foldings in strange places (mid-sentence/mid-word, folding large blocks of text that don’t correspond to headers or other document hierarchy). Selected all, unfolded everything with universal fold command (command-/), and folded again, restores folded list of top level headings.
  • Opened console, searched for Folding Text:
    26/02/2016 12:30:26.121 FoldingText[54270]: CONFIG ERROR: The request timed out.
  • Quit and restarted Folding Text.
  • Highlighted one item/task from the list I wanted to delete.
  • Pressed delete: no response.
  • Pressed delete again: item seems to be deleted.
  • Saved document, closed document, reopened document: deleted item is restored (changes weren’t saved).
  • Repeated same process three times. Deleting and saving edits fails two out of three times.
  • Reopen document. Highlight an item/task by placing cursor at the end of the line and using command-shift + arrow keys to extend highlighted selection fails when the cursor reaches the start of the line (highlight disappears, cursor is no longer visible). This appears to be a UI issue— pressing delete still appears to remove the selected text (even if the selection isn’t highlighted).
  • If document text extends off-screen, text disappears from screen if scrolled.
  • Copied text of document into a new document— same issues occur
  • Created new document, entered a single line of text preceded with a dash. None of the reported issues occurred. Highlighting line of text works as it should— no disappearing highlights, no disappearing cursor, no problem with deletion.
  • Checked Console again. Config error seems to have been fired every 10 minutes. Console output on search for Folding Text:

26/02/2016 12:30:26.121 FoldingText[54270]: CONFIG ERROR: The request timed out.
26/02/2016 12:40:47.087 FoldingText[54715]: CONFIG ERROR: The request timed out.
26/02/2016 12:50:05.173 FoldingText[55126]: CONFIG ERROR: The request timed out.
26/02/2016 12:53:32.398 FoldingText[55126]: BUG in libdispatch client: kevent[EVFILT_MEMORYSTATUS] add: “Operation not supported” - 0x2d
26/02/2016 12:53:33.080 FoldingText[55126]: assertion failed: 15E39d: libxpc.dylib + 78986 [F544964F-0017-32D4-BB38-F0DDCC693110]: 0x89

  • Copied first 1000 words (a few projects, sub-projects notes and individual tasks/items) into a new document (“2 do truncated”) and saved.
  • Deleted first task in a sub-project. Saved. Closed document. Reopened document. Edits were saved. Attempted to delete another task in same sub-project. More UI issues— navigating around a text item with arrow keys, the cursor skipped the last few letters of each line before jumping to the next line. Placing cursor over/within a markdown link sometimes revealed fragments of hidden text, or more than one markdown link sat on the same line, placing the cursor on one might reveal the text/link of the other. No consistent behaviour. Same delete issues as before— changes were not saved.
  • Checked console again:

26/02/2016 14:18:12.269 FoldingText[55126]: Communications error: <OS_xpc_error: <error: 0x7fff754a6b90> { count = 1, contents =
“XPCErrorDescription” => <string: 0x7fff754a6f40> { length = 22, contents = “Connection interrupted” }
}>
26/02/2016 14:55:29.562 WindowServer[177]: disable_update_timeout: UI updates were forcibly disabled by application “FoldingText” for over 1.00 seconds. Server has re-enabled them.
26/02/2016 14:55:29.608 WindowServer[177]: common_reenable_update: UI updates were finally reenabled by application “FoldingText” after 1.05 seconds [0.95fps] (server forcibly re-enabled them after 1.00 seconds [1.00fps])
26/02/2016 14:55:30.072 FoldingText[55126]: CGSReenableUpdate: unbalanced enable/disable update.
26/02/2016 14:55:30.075 FoldingText[55126]: Backtrace (at 177879):
26/02/2016 14:55:30.075 FoldingText[55126]: CGSReenableUpdate: 0 CoreGraphics 0x00007fff84f3c505 CGSReenableUpdate + 200
26/02/2016 14:55:30.075 FoldingText[55126]: CGSReenableUpdate: 1 AppKit 0x00007fff924930f4 NSCGSEnableUpdatesLegacy + 64
26/02/2016 14:55:30.076 FoldingText[55126]: CGSReenableUpdate: 2 QuickLook 0x00007fff8b5bc92b _Z18QLTryCatchAndCrashU13block_pointerFvvE + 17
26/02/2016 14:55:30.076 FoldingText[55126]: CGSReenableUpdate: 3 libdispatch.dylib 0x00007fff84016871 _dispatch_call_block_and_release + 12
26/02/2016 14:55:30.076 FoldingText[55126]: CGSReenableUpdate: 4 libdispatch.dylib 0x00007fff8400b33f _dispatch_client_callout + 8
26/02/2016 14:55:30.076 FoldingText[55126]: CGSReenableUpdate: 5 libdispatch.dylib 0x00007fff8400ff6f _dispatch_queue_drain + 754
26/02/2016 14:55:30.076 FoldingText[55126]: CGSReenableUpdate: 6 libdispatch.dylib 0x00007fff8401663b _dispatch_queue_invoke + 549
26/02/2016 14:55:30.076 FoldingText[55126]: CGSReenableUpdate: 7 libdispatch.dylib 0x00007fff8400b33f _dispatch_client_callout + 8
26/02/2016 14:55:30.076 FoldingText[55126]: CGSReenableUpdate: 8 libdispatch.dylib 0x00007fff8400f1cf _dispatch_root_queue_drain + 1890
26/02/2016 14:55:30.076 FoldingText[55126]: CGSReenableUpdate: 9 libdispatch.dylib 0x00007fff8400ea34 _dispatch_worker_thread3 + 91
26/02/2016 14:55:30.076 FoldingText[55126]: CGSReenableUpdate: 10 libsystem_pthread.dylib 0x00007fff8b4d94de _pthread_wqthread + 1129
26/02/2016 14:55:30.076 FoldingText[55126]: CGSReenableUpdate: 11 libsystem_pthread.dylib 0x00007fff8b4d7341 start_wqthread + 13
26/02/2016 14:57:48.347 FoldingText[55126]: CGSReenableUpdate: unbalanced enable/disable update.
26/02/2016 14:57:48.348 FoldingText[55126]: Backtrace (at 178017):
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 0 CoreGraphics 0x00007fff84f3c505 CGSReenableUpdate + 200
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 1 AppKit 0x00007fff924930f4 NSCGSEnableUpdatesLegacy + 64
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 2 QuickLook 0x00007fff8b5bc92b _Z18QLTryCatchAndCrashU13block_pointerFvvE + 17
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 3 libdispatch.dylib 0x00007fff84016871 _dispatch_call_block_and_release + 12
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 4 libdispatch.dylib 0x00007fff8400b33f _dispatch_client_callout + 8
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 5 libdispatch.dylib 0x00007fff8400ff6f _dispatch_queue_drain + 754
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 6 libdispatch.dylib 0x00007fff8401663b _dispatch_queue_invoke + 549
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 7 libdispatch.dylib 0x00007fff8400b33f _dispatch_client_callout + 8
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 8 libdispatch.dylib 0x00007fff8400f1cf _dispatch_root_queue_drain + 1890
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 9 libdispatch.dylib 0x00007fff8400ea34 _dispatch_worker_thread3 + 91
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 10 libsystem_pthread.dylib 0x00007fff8b4d94de _pthread_wqthread + 1129
26/02/2016 14:57:48.348 FoldingText[55126]: CGSReenableUpdate: 11 libsystem_pthread.dylib 0x00007fff8b4d7341 start_wqthread + 13
26/02/2016 15:03:01.447 FoldingText[55126]: CGSReenableUpdate: unbalanced enable/disable update.
26/02/2016 15:03:01.448 FoldingText[55126]: Backtrace (at 178330):
26/02/2016 15:03:01.448 FoldingText[55126]: CGSReenableUpdate: 0 CoreGraphics 0x00007fff84f3c505 CGSReenableUpdate + 200
26/02/2016 15:03:01.448 FoldingText[55126]: CGSReenableUpdate: 1 AppKit 0x00007fff924930f4 NSCGSEnableUpdatesLegacy + 64
26/02/2016 15:03:01.448 FoldingText[55126]: CGSReenableUpdate: 2 QuickLook 0x00007fff8b5bc92b _Z18QLTryCatchAndCrashU13block_pointerFvvE + 17
26/02/2016 15:03:01.449 FoldingText[55126]: CGSReenableUpdate: 3 libdispatch.dylib 0x00007fff84016871 _dispatch_call_block_and_release + 12
26/02/2016 15:03:01.449 FoldingText[55126]: CGSReenableUpdate: 4 libdispatch.dylib 0x00007fff8400b33f _dispatch_client_callout + 8
26/02/2016 15:03:01.449 FoldingText[55126]: CGSReenableUpdate: 5 libdispatch.dylib 0x00007fff8400ff6f _dispatch_queue_drain + 754
26/02/2016 15:03:01.449 FoldingText[55126]: CGSReenableUpdate: 6 libdispatch.dylib 0x00007fff8401663b _dispatch_queue_invoke + 549
26/02/2016 15:03:01.449 FoldingText[55126]: CGSReenableUpdate: 7 libdispatch.dylib 0x00007fff8400b33f _dispatch_client_callout + 8
26/02/2016 15:03:01.449 FoldingText[55126]: CGSReenableUpdate: 8 libdispatch.dylib 0x00007fff8400f1cf _dispatch_root_queue_drain + 1890
26/02/2016 15:03:01.449 FoldingText[55126]: CGSReenableUpdate: 9 libdispatch.dylib 0x00007fff8400ea34 _dispatch_worker_thread3 + 91
26/02/2016 15:03:01.449 FoldingText[55126]: CGSReenableUpdate: 10 libsystem_pthread.dylib 0x00007fff8b4d94de _pthread_wqthread + 1129
26/02/2016 15:03:01.450 FoldingText[55126]: CGSReenableUpdate: 11 libsystem_pthread.dylib 0x00007fff8b4d7341 start_wqthread + 13

  • Restarted computer.
  • Opened “2 do truncated” file. Same issues remain.
  • Console output:

26/02/2016 15:14:54.679 com.apple.xpc.launchd[1]: (com.foldingtext.paddle.FoldingText.271712[55126]) Service exited due to signal: Killed: 9
26/02/2016 15:18:31.750 FoldingText[274]: tcp_connection_destination_get_proxy called with null dst, dumping backtrace:
[x86_64] libnetcore-583.40.17
0 libsystem_network.dylib 0x00007fff826c4e09 __nw_create_backtrace_string + 123
1 libsystem_network.dylib 0x00007fff826d006a tcp_connection_destination_get_proxy + 25
2 libsystem_network.dylib 0x00007fff826a5846 __tcp_connection_copy_proxy_block_invoke + 25
3 libdispatch.dylib 0x00007fff83c6933f _dispatch_client_callout + 8
4 libdispatch.dylib 0x00007fff83c6a926 _dispatch_barrier_sync_f_invoke + 74
5 libsystem_network.dylib 0x00007fff826a580d tcp_connection_copy_proxy + 128
6 CFNetwork 0x00007fff962e897d _ZN12NetworkProxy28ProxyConnectionEstablishment32postProxyConnectionConfigurationEPK13__CFAllocatorP16tcp_connection_sP15__CFHTTPMessageP22HTTPConnectionCacheKeyU13block_pointerFvPS_PK14__CFDictionaryE + 63
7 CFNetwork 0x00007fff96117932 _ZN5STube33_onqueue_postConnectConfigurationEP16tcp_connection_sU13block_pointerFvP15dispatch_data_sPK14__CFDictionaryhE + 284
8 CFNetwork 0x00007fff963054b3 ___ZN5STube26ssPostConnectConfigurationEP16tcp_connection_sU13block_pointerFvP15dispatch_data_sPK14__CFDictionaryhE_block_invoke + 30
9 libdispatch.dylib 0x00007fff83c6933f _dispatch_client_callout + 8
10 libdispatch.dylib 0x00007fff83c7703a _dispatch_block_invoke + 474
11 CFNetwork 0x00007fff96103a74 _ZN19RunloopBlockContext13_invoke_blockEPKvPv + 24
12 CoreFoundation 0x00007fff896f34d4 CFArrayApplyFunction + 68
13 CFNetwork 0x00007fff9610396d _ZN19RunloopBlockContext7performEv + 137
14 CFNetwork 0x00007fff9610380e _ZN17MultiplexerSource7performEv + 282
15 CFNetwork 0x00007fff96103630 _ZN17MultiplexerSource8_performEPv + 72
16 CoreFoundation 0x00007fff89750fe1 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
17 CoreFoundation 0x00007fff8973071c __CFRunLoopDoSources0 + 556
18 CoreFoundation 0x00007fff8972fc3f __CFRunLoopRun + 927
19 CoreFoundation 0x00007fff8972f638 CFRunLoopRunSpecific + 296
20 CFNetwork 0x00007fff960de35d +[NSURLConnection(Loader) _resourceLoadLoop:] + 412
21 Foundation 0x00007fff96401d64 NSThread__start + 1351
22 libsystem_pthread.dylib 0x00007fff8b13799d _pthread_body + 131
23 libsystem_pthread.dylib 0x00007fff8b13791a _pthread_body + 0
24 libsystem_pthread.dylib 0x00007fff8b135351 thread_start + 13
26/02/2016 15:18:32.172 FoldingText[274]: CONFIG ERROR: The Internet connection appears to be offline.
26/02/2016 15:18:38.246 FoldingText[274]: Failed to load Javascript on start
26/02/2016 15:19:45.750 FoldingText[493]: CONFIG ERROR: The request timed out.
26/02/2016 15:21:28.528 FoldingText[493]: BUG in libdispatch client: kevent[EVFILT_MEMORYSTATUS] add: “Operation not supported” - 0x2d
26/02/2016 15:21:29.456 FoldingText[493]: assertion failed: 15E39d: libxpc.dylib + 78986 [F544964F-0017-32D4-BB38-F0DDCC693110]: 0x89
26/02/2016 15:21:34.822 FoldingText[493]: CGSReenableUpdate: unbalanced enable/disable update.
26/02/2016 15:21:34.829 FoldingText[493]: Backtrace (at 213.035):
26/02/2016 15:21:34.829 FoldingText[493]: CGSReenableUpdate: 0 CoreGraphics 0x00007fff84b9a505 CGSReenableUpdate + 200
26/02/2016 15:21:34.829 FoldingText[493]: CGSReenableUpdate: 1 AppKit 0x00007fff920f10f4 NSCGSEnableUpdatesLegacy + 64
26/02/2016 15:21:34.829 FoldingText[493]: CGSReenableUpdate: 2 QuickLook 0x00007fff8b21a92b _Z18QLTryCatchAndCrashU13block_pointerFvvE + 17
26/02/2016 15:21:34.829 FoldingText[493]: CGSReenableUpdate: 3 libdispatch.dylib 0x00007fff83c74871 _dispatch_call_block_and_release + 12
26/02/2016 15:21:34.829 FoldingText[493]: CGSReenableUpdate: 4 libdispatch.dylib 0x00007fff83c6933f _dispatch_client_callout + 8
26/02/2016 15:21:34.829 FoldingText[493]: CGSReenableUpdate: 5 libdispatch.dylib 0x00007fff83c6df6f _dispatch_queue_drain + 754
26/02/2016 15:21:34.830 FoldingText[493]: CGSReenableUpdate: 6 libdispatch.dylib 0x00007fff83c7463b _dispatch_queue_invoke + 549
26/02/2016 15:21:34.830 FoldingText[493]: CGSReenableUpdate: 7 libdispatch.dylib 0x00007fff83c6933f _dispatch_client_callout + 8
26/02/2016 15:21:34.830 FoldingText[493]: CGSReenableUpdate: 8 libdispatch.dylib 0x00007fff83c6d1cf _dispatch_root_queue_drain + 1890
26/02/2016 15:21:34.830 FoldingText[493]: CGSReenableUpdate: 9 libdispatch.dylib 0x00007fff83c6ca34 _dispatch_worker_thread3 + 91
26/02/2016 15:21:34.830 FoldingText[493]: CGSReenableUpdate: 10 libsystem_pthread.dylib 0x00007fff8b1374de _pthread_wqthread + 1129
26/02/2016 15:21:34.830 FoldingText[493]: CGSReenableUpdate: 11 libsystem_pthread.dylib 0x00007fff8b135341 start_wqthread + 13
26/02/2016 15:21:48.122 FoldingText[493]: plugin com.getdropbox.dropbox.garcon invalidated
26/02/2016 15:21:51.977 FoldingText[493]: Hub connection error Error Domain=NSCocoaErrorDomain Code=4099 “The connection to service named com.getdropbox.dropbox.garcon was invalidated.” UserInfo={NSDebugDescription=The connection to service named com.getdropbox.dropbox.garcon was invalidated.}
26/02/2016 15:21:51.977 FoldingText[493]: plugin com.getdropbox.dropbox.garcon invalidated
26/02/2016 15:21:51.977 FoldingText[493]: Could not signal service com.getdropbox.dropbox.garcon: 113: Could not find specified service
26/02/2016 15:21:53.421 FoldingText[493]: Hub connection error Error Domain=NSCocoaErrorDomain Code=4099 “The connection to service named com.getdropbox.dropbox.garcon was invalidated.” UserInfo={NSDebugDescription=The connection to service named com.getdropbox.dropbox.garcon was invalidated.}
26/02/2016 15:21:53.422 FoldingText[493]: plugin com.getdropbox.dropbox.garcon invalidated
26/02/2016 15:21:53.423 FoldingText[493]: Could not signal service com.getdropbox.dropbox.garcon: 113: Could not find specified service
26/02/2016 15:22:02.277 FoldingText[493]: Hub connection error Error Domain=NSCocoaErrorDomain Code=4099 “The connection to service named com.getdropbox.dropbox.garcon was invalidated.” UserInfo={NSDebugDescription=The connection to service named com.getdropbox.dropbox.garcon was invalidated.}
26/02/2016 15:22:02.277 FoldingText[493]: Could not signal service com.getdropbox.dropbox.garcon: 113: Could not find specified service
26/02/2016 15:22:02.278 FoldingText[493]: plugin com.getdropbox.dropbox.garcon invalidated
26/02/2016 15:23:39.296 FoldingText[493]: Communications error: <OS_xpc_error: <error: 0x7fff75104b90> { count = 1, contents =
“XPCErrorDescription” => <string: 0x7fff75104f40> { length = 22, contents = “Connection interrupted” }
}>

Despite the references to Dropbox above, syncing seems to be working without issue. I’m going to try to roll back to the last version (if it’s available online— I’m on the road with no access to a back up…) Hope this is useful for debugging.

Rolling back to 2.1.1 doesn’t seem to solve the issue for me (retrieved my copy from trash), although I was able to work on my documents without issue on 2.1.1 before. Any suggestions for fixes/workarounds, even if only short-term for now, would be appreciated!

UPDATE (3 HRS LATER): Tried a few different things, none of which seemed to have an impact, but somehow my file’s operational again. Go figure.

Hi JSLR,

I notice messages of Dropbox there, and some internet connectivity issues. I wonder, could it be a sync issue?

Regards,
Mutahhir

Hey Mutahir— thanks for checking in. Yep, I noticed the Dropbox references too. However:

a) other files did sync around the time that the Dropbox errors are listed here
b) the Dropbox/network flags appeared later in the afternoon. At 12:30, when I started to try to work with my main file, I was on a train with no wifi connection.
c) are config errors and the libdispatch client flags network related (I ask this question sincerely— I’m still not 100% sure what libdispatch does although I did a quick bit of research)? These are flagged before any of the other network issues or Dropbox errors later in the afternoon…

Also, are these kinds of UI issues possible as a result of laggy or problematic file syncing?

Hey,

Hmm, I’m not actually sure here. This seems to be a very weird bug, and as you say, the visual issues shouldn’t show up even if the file is out of sync. My best bet would be to reliably replicate this issue. If I can’t, I’m not sure if I have enough technical context on how to resolve this. :crying_cat_face:

Regards,
Mutahhir

I am confronting a similar CGReenableUpdate error in my application. I was wondering if you figured out how to fix or work around this error:

9/30/16 9:26:22.042 PM MyApplication[1956]: CGSReenableUpdate: unbalanced enable/disable update.
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 0 CoreGraphics 0x00007fff97c7be17 CGSReenableUpdate + 200
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 1 AppKit 0x00007fff90d01008 NSCGSEnableUpdatesLegacy + 64
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 2 QuickLook 0x00007fff9684291d _Z18QLTryCatchAndCrashU13block_pointerFvvE + 17
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 3 libdispatch.dylib 0x00007fff8d6a593d _dispatch_call_block_and_release + 12
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 4 libdispatch.dylib 0x00007fff8d69a40b _dispatch_client_callout + 8
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 5 libdispatch.dylib 0x00007fff8d69f03b _dispatch_queue_drain + 754
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 6 libdispatch.dylib 0x00007fff8d6a5707 _dispatch_queue_invoke + 549
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 7 libdispatch.dylib 0x00007fff8d69a40b _dispatch_client_callout + 8
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 8 libdispatch.dylib 0x00007fff8d69e29b _dispatch_root_queue_drain + 1890
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 9 libdispatch.dylib 0x00007fff8d69db00 _dispatch_worker_thread3 + 91
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 10 libsystem_pthread.dylib 0x00007fff978ca4de _pthread_wqthread + 1129
9/30/16 9:26:22.043 PM MyApplication[1956]: CGSReenableUpdate: 11 libsystem_pthread.dylib 0x00007fff978c8341 start_wqthread + 13

When you say “your application” do you mean you’re coding something yourself and seeing similar errors? If so, there isn’t much advice I can offer, seeing as I’m just an end-user (Mutahir might be able to offer you something, but I’m guessing he has all hands full right now).

FWIW, I never did track down the precise source of the problem. My last working theory is that there may have been a character or characters in my text that broke things (I did see some similar issues with line-endings copied over from other text editors…)