Start a new topic

Beorg crashing immediately on open

I couldn't get beorg to sync for some reason, so in an attempt to debug I uninstalled and reinstalled it (so, I know I have the most recent version). Now, opening it causes it to crash immediately. I've power cycled my phone, but no luck. I have plenty of storage available on the phone, so it's not that.


Any ideas? 


iOS 14.2, iPhone SE


Addendum: I reinstalled a second time and it seems to be ok again. No idea what happened there. 

And just for completism I should note that the sync failure turned out to be a dropbox issue, so ignore everything here :) 

Thanks for reporting this issue. The next beorg update will have updated versions of the Dropbox libraries so hopefully should resolve issues such as you've described. Glad to hear it is now working for you.

Sorry to re-open this issue, but it turns out that I was premature in thinking it solved. After doing some testing, I can confirm: beorg crashes every time I try to open it. At first I thought it was an issue with my init.org file, but I renamed that file and it still happens. If I reinstall the app, it works for a while (seems to be about a day) and then gets into a state where it cannot open at all. While it's working it syncs properly so I cannot figure out what is triggering the change. 


(also to clarify the other issue: the syncing problem I was having was Dropbox on my computer not uploading files, not an issue with beorg at all, though I appreciate the updated Dropbox libraries nonetheless.)



I haven't heard of a similar issue before - it sounds very frustrating!


I've taken a look to see if there are any recent crash logs and I can see one coming from an iPhone SE running iOS 14.2. The crash is happening when beorg is trying to get the value of the variable org-log-into-drawer. Have you modified the value of this in your init.org - and if so please let me know your modification.


If the above doesn't seem to fix your issue (and I'll be looking at preventing beorg from crashing on this once I get your org-log-into-drawer value) please send me:


+ The contents of your init.org (if you renamed it outside of beorg and beorg hadn't yet synced the changes to it, it could still play a part in the issue)

+ A file listing of everything the org folder in Dropbox (i.e. just the filenames) - including file sizes and hidden files.


Very Interesting! 


It turns out I have a blank init.org, not sure how that got there. The contents of init.bak, which used to be init.org, are as follows: 


 

#+TITLE: Init
* init stuff
#+BEGIN_SRC scheme

(define (insert-some-date-with-date-picker-from-selection)
    (let ((starting-date (if (string=? (region) "")
                         (current-date)
			 (parse-date (region)))))
         (date-picker starting-date
	               #f
		       (lambda (cancelled date includes-time)
		               (if (not cancelled)
			           (if (not includes-time)
			               (insert (date->string date "[~Y-~m-~d ~a]"))
			               (insert (date->string date "[~Y-~m-~d ~a ~H:~M]"))))))))


(setq org-repeat-update-show-banner nil)

(set! sync-subfolders #t)
#+END_SRC
* Test scheme 
#+BEGIN_SRC scheme
(filter-add "Top Priority" (lambda (item) (string=? (item-priority item) "A")))
#+END_SRC

 All stuff I copied and pasted from various places for testing. And org-log-into-drawer is not touched. FWIW, the value in emacs of org-log-into-drawer is t, but I doubt that's relevant.


I should note here, that no matter what I did I never saw any changes based on anything I did to init.org. I assumed this was user error on my part and hadn't gotten around to debugging it, but it might be relevant. 


My org directory structure: 


 

total 292736
-rw-r--r--@    1 mediapathic  staff       955 Nov 12 22:17 #notes.org#
drwxr-xr-x@   46 mediapathic  staff      1472 Jan  8 04:15 .
drwxr-xr-x@   71 mediapathic  staff      2272 Jan  4 23:45 ..
-rw-r--r--@    1 mediapathic  staff      6148 Jan  4 21:39 .DS_Store
-rw-r--r--@    1 mediapathic  staff      1046 May 23  2020 .Ulysses-Group.plist
drwxr-xr-x@   12 mediapathic  staff       384 Dec 20 01:02 .attach
drwxr-xr-x@    4 mediapathic  staff       128 Dec 20 01:16 .obsidian
-rw-r--r--@    1 mediapathic  staff     27406 Jan  4 16:39 .orgids
-rw-r--r--@    1 mediapathic  staff  73620530 Oct 24 00:41 2020-10-24-org-zettel.zip
-rw-r--r--@    1 mediapathic  staff  74309591 Nov 17 23:37 2020-11-17-org-zettel-bak.zip
-rw-r--r--@    1 mediapathic  staff     24946 Dec 14 17:13 BibTexLibrary.bib
-rw-r--r--@    1 mediapathic  staff     18051 Dec  2 19:41 CFP.org
-rw-r--r--@    1 mediapathic  staff     63807 Jan  4 18:58 Cooking.org
-rw-r--r--@    1 mediapathic  staff       173 Dec 12 20:03 Geography.org
-rw-r--r--@    1 mediapathic  staff      4679 Dec  3 17:16 Goals.md
-rw-r--r--@    1 mediapathic  staff     15638 Jan  4 21:42 Goals.org
-rw-r--r--@    1 mediapathic  staff      5410 Dec  3 17:06 Goals.tex
-rw-r--r--@    1 mediapathic  staff      1156 Nov 11 01:34 PAPERS_PLEASE.org.txt
-rw-r--r--@    1 mediapathic  staff       215 Nov 14 00:34 Projects.org
-rw-r--r--@    1 mediapathic  staff       127 Nov  9 23:55 Projects.org.organice-bak
-rw-r--r--@    1 mediapathic  staff       651 Nov 21 13:44 ROL.org
-rw-r--r--@    1 mediapathic  staff      2174 Nov 24 14:08 Subs.org
-rw-r--r--@    1 mediapathic  staff    154186 Dec 15 23:18 TODO.org_done
-rw-r--r--@    1 mediapathic  staff     97461 Jan  7 16:19 Todo.org
-rw-r--r--@    1 mediapathic  staff     44093 Nov  9 23:52 Todo.org.organice-bak
-rw-r--r--@    1 mediapathic  staff    380523 Oct 23 01:07 Todo.org_archive
-rw-r--r--@    1 mediapathic  staff    157643 Jan  7 15:36 bookmarks.org
-rw-r--r--@    1 mediapathic  staff    131703 Jan  2 17:25 clocks.org
-rw-r--r--@    1 mediapathic  staff      2953 Jan  5 14:41 diary.org
-rw-r--r--     1 mediapathic  staff         0 Jan  8 04:15 filelist.md
-rw-r--r--@    1 mediapathic  staff      7964 Jan  3 20:03 gcal.org
-rw-r--r--@    1 mediapathic  staff    199482 Jan  3 17:22 gcal.org_archive
-rw-r--r--@    1 mediapathic  staff       354 Jan  4 16:09 groceries.org
-rw-r--r--@    1 mediapathic  staff         8 Jan  7 15:27 inbox.org
-rw-r--r--@    1 mediapathic  staff       465 Oct 30 03:52 inbox.org_archive
-rw-r--r--@    1 mediapathic  staff       747 Jan  1 02:04 init.bak
-rw-r--r--@    1 mediapathic  staff        14 Jan  8 04:02 init.org
drwxr-xr-x@    4 mediapathic  staff       128 Dec 20 01:09 journal
-rw-r--r--@    1 mediapathic  staff    281187 Jan  7 14:49 journal.org
-rw-r--r--@    1 mediapathic  staff      2806 Dec 13 05:13 notes.org
-rw-r--r--@    1 mediapathic  staff      6786 Jun 22  2020 obsidian.css
-rw-r--r--@    1 mediapathic  staff    223207 Sep 13 18:09 org
drwxr-xr-x@  120 mediapathic  staff      3840 Dec 20 01:19 org-archive
drwxr-xr-x@ 4527 mediapathic  staff    144864 Jan  4 21:23 org-zettel
-rw-r--r--@    1 mediapathic  staff       205 Dec 14 17:53 refile.org
drwxr-xr-x@    4 mediapathic  staff       128 Dec 20 01:11 templates

 I'm glad to provide you with an interesting bug :) 

Brief bump to see if my reply to this is stuck in moderation or didn't actually go through. 

Ok, I guess my reply didn't go through, trying again:


I found that I have an empty init.org somehow, which I didn't intentionally create, not sure where that came from. The contents of my init.bak, which used to be initi.org, are as follows:


 

#+TITLE: Init
* init stuff
#+BEGIN_SRC scheme

(define (insert-some-date-with-date-picker-from-selection)
    (let ((starting-date (if (string=? (region) "")
                         (current-date)
			 (parse-date (region)))))
         (date-picker starting-date
	               #f
		       (lambda (cancelled date includes-time)
		               (if (not cancelled)
			           (if (not includes-time)
			               (insert (date->string date "[~Y-~m-~d ~a]"))
			               (insert (date->string date "[~Y-~m-~d ~a ~H:~M]"))))))))


(setq org-repeat-update-show-banner nil)

(set! sync-subfolders #t)
#+END_SRC
* Test scheme 
#+BEGIN_SRC scheme
(filter-add "Top Priority" (lambda (item) (string=? (item-priority item) "A")))
#+END_SRC

 it's all stuff I cut and pasted from elsewhere to test init.org, and I should note here that I never saw any evidence that init.org was having any effect on my beorg. I had always assumed this was user error on my part, and had not gotten around to debugging, but given the current issues that might be relevant.


Note that org-log-into-drawer is not touched by my init. FWIW, that is set to t within emacs. 


My org directory: 


 

total 292736
-rw-r--r--@    1 mediapathic  staff       955 Nov 12 22:17 #notes.org#
drwxr-xr-x@   46 mediapathic  staff      1472 Jan  8 04:15 .
drwxr-xr-x@   71 mediapathic  staff      2272 Jan  4 23:45 ..
-rw-r--r--@    1 mediapathic  staff      6148 Jan  4 21:39 .DS_Store
-rw-r--r--@    1 mediapathic  staff      1046 May 23  2020 .Ulysses-Group.plist
drwxr-xr-x@   12 mediapathic  staff       384 Dec 20 01:02 .attach
drwxr-xr-x@    4 mediapathic  staff       128 Dec 20 01:16 .obsidian
-rw-r--r--@    1 mediapathic  staff     27406 Jan  4 16:39 .orgids
-rw-r--r--@    1 mediapathic  staff  73620530 Oct 24 00:41 2020-10-24-org-zettel.zip
-rw-r--r--@    1 mediapathic  staff  74309591 Nov 17 23:37 2020-11-17-org-zettel-bak.zip
-rw-r--r--@    1 mediapathic  staff     24946 Dec 14 17:13 BibTexLibrary.bib
-rw-r--r--@    1 mediapathic  staff     18051 Dec  2 19:41 CFP.org
-rw-r--r--@    1 mediapathic  staff     63807 Jan  4 18:58 Cooking.org
-rw-r--r--@    1 mediapathic  staff       173 Dec 12 20:03 Geography.org
-rw-r--r--@    1 mediapathic  staff      4679 Dec  3 17:16 Goals.md
-rw-r--r--@    1 mediapathic  staff     15638 Jan  4 21:42 Goals.org
-rw-r--r--@    1 mediapathic  staff      5410 Dec  3 17:06 Goals.tex
-rw-r--r--@    1 mediapathic  staff      1156 Nov 11 01:34 PAPERS_PLEASE.org.txt
-rw-r--r--@    1 mediapathic  staff       215 Nov 14 00:34 Projects.org
-rw-r--r--@    1 mediapathic  staff       127 Nov  9 23:55 Projects.org.organice-bak
-rw-r--r--@    1 mediapathic  staff       651 Nov 21 13:44 ROL.org
-rw-r--r--@    1 mediapathic  staff      2174 Nov 24 14:08 Subs.org
-rw-r--r--@    1 mediapathic  staff    154186 Dec 15 23:18 TODO.org_done
-rw-r--r--@    1 mediapathic  staff     97461 Jan  7 16:19 Todo.org
-rw-r--r--@    1 mediapathic  staff     44093 Nov  9 23:52 Todo.org.organice-bak
-rw-r--r--@    1 mediapathic  staff    380523 Oct 23 01:07 Todo.org_archive
-rw-r--r--@    1 mediapathic  staff    157643 Jan  7 15:36 bookmarks.org
-rw-r--r--@    1 mediapathic  staff    131703 Jan  2 17:25 clocks.org
-rw-r--r--@    1 mediapathic  staff      2953 Jan  5 14:41 diary.org
-rw-r--r--     1 mediapathic  staff         0 Jan  8 04:15 filelist.md
-rw-r--r--@    1 mediapathic  staff      7964 Jan  3 20:03 gcal.org
-rw-r--r--@    1 mediapathic  staff    199482 Jan  3 17:22 gcal.org_archive
-rw-r--r--@    1 mediapathic  staff       354 Jan  4 16:09 groceries.org
-rw-r--r--@    1 mediapathic  staff         8 Jan  7 15:27 inbox.org
-rw-r--r--@    1 mediapathic  staff       465 Oct 30 03:52 inbox.org_archive
-rw-r--r--@    1 mediapathic  staff       747 Jan  1 02:04 init.bak
-rw-r--r--@    1 mediapathic  staff        14 Jan  8 04:02 init.org
drwxr-xr-x@    4 mediapathic  staff       128 Dec 20 01:09 journal
-rw-r--r--@    1 mediapathic  staff    281187 Jan  7 14:49 journal.org
-rw-r--r--@    1 mediapathic  staff      2806 Dec 13 05:13 notes.org
-rw-r--r--@    1 mediapathic  staff      6786 Jun 22  2020 obsidian.css
-rw-r--r--@    1 mediapathic  staff    223207 Sep 13 18:09 org
drwxr-xr-x@  120 mediapathic  staff      3840 Dec 20 01:19 org-archive
drwxr-xr-x@ 4527 mediapathic  staff    144864 Jan  4 21:23 org-zettel
-rw-r--r--@    1 mediapathic  staff       205 Dec 14 17:53 refile.org
drwxr-xr-x@    4 mediapathic  staff       128 Dec 20 01:11 templates

 There are, obviously, some directories that have a lot of files in them, but I don't know if that's relevant at all. Let me know if you need more information on those.  The contents of those are private, but I could send you an email with them or something. 


Thanks for working on this!

Please see my reply (Friday 8th) with some thoughts on how we can progress looking at this.

Hmm, there seems to be some issue with the forum. I've replied to this twice with the details you asked for, but apparently those posts are not going through. Perhaps it was trying to include large blocks of text as code snippets that is the problem. So, a brief summary:


- The contents of init.org never touched org-log-into-drawer. It was all just a bunch of stuff I had cut and pasted for testing purposes and that variable was not referenced.

- I never saw any results from anything I put into init.org. I had assumed this was user error on my part, but given the current issues, that might actually be relevant. 


I'm going to past my directory structure here and hope it doesn't hit the character limit or whatever is preventing these posts from going through. 


total 292736

-rw-r--r--@ 1 mediapathic staff 955 Nov 12 22:17 #notes.org#

drwxr-xr-x@ 46 mediapathic staff 1472 Jan 8 04:15 .

drwxr-xr-x@ 71 mediapathic staff 2272 Jan 4 23:45 ..

-rw-r--r--@ 1 mediapathic staff 6148 Jan 4 21:39 .DS_Store

-rw-r--r--@ 1 mediapathic staff 1046 May 23 2020 .Ulysses-Group.plist

drwxr-xr-x@ 12 mediapathic staff 384 Dec 20 01:02 .attach

drwxr-xr-x@ 4 mediapathic staff 128 Dec 20 01:16 .obsidian

-rw-r--r--@ 1 mediapathic staff 27406 Jan 4 16:39 .orgids

-rw-r--r--@ 1 mediapathic staff 73620530 Oct 24 00:41 2020-10-24-org-zettel.zip

-rw-r--r--@ 1 mediapathic staff 74309591 Nov 17 23:37 2020-11-17-org-zettel-bak.zip

-rw-r--r--@ 1 mediapathic staff 24946 Dec 14 17:13 BibTexLibrary.bib

-rw-r--r--@ 1 mediapathic staff 18051 Dec 2 19:41 CFP.org

-rw-r--r--@ 1 mediapathic staff 63807 Jan 4 18:58 Cooking.org

-rw-r--r--@ 1 mediapathic staff 173 Dec 12 20:03 Geography.org

-rw-r--r--@ 1 mediapathic staff 4679 Dec 3 17:16 Goals.md

-rw-r--r--@ 1 mediapathic staff 15638 Jan 4 21:42 Goals.org

-rw-r--r--@ 1 mediapathic staff 5410 Dec 3 17:06 Goals.tex

-rw-r--r--@ 1 mediapathic staff 1156 Nov 11 01:34 PAPERS_PLEASE.org.txt

-rw-r--r--@ 1 mediapathic staff 215 Nov 14 00:34 Projects.org

-rw-r--r--@ 1 mediapathic staff 127 Nov 9 23:55 Projects.org.organice-bak

-rw-r--r--@ 1 mediapathic staff 651 Nov 21 13:44 ROL.org

-rw-r--r--@ 1 mediapathic staff 2174 Nov 24 14:08 Subs.org

-rw-r--r--@ 1 mediapathic staff 154186 Dec 15 23:18 TODO.org_done

-rw-r--r--@ 1 mediapathic staff 97461 Jan 7 16:19 Todo.org

-rw-r--r--@ 1 mediapathic staff 44093 Nov 9 23:52 Todo.org.organice-bak

-rw-r--r--@ 1 mediapathic staff 380523 Oct 23 01:07 Todo.org_archive

-rw-r--r--@ 1 mediapathic staff 157643 Jan 7 15:36 bookmarks.org

-rw-r--r--@ 1 mediapathic staff 131703 Jan 2 17:25 clocks.org

-rw-r--r--@ 1 mediapathic staff 2953 Jan 5 14:41 diary.org

-rw-r--r-- 1 mediapathic staff 0 Jan 8 04:15 filelist.md

-rw-r--r--@ 1 mediapathic staff 7964 Jan 3 20:03 gcal.org

-rw-r--r--@ 1 mediapathic staff 199482 Jan 3 17:22 gcal.org_archive

-rw-r--r--@ 1 mediapathic staff 354 Jan 4 16:09 groceries.org

-rw-r--r--@ 1 mediapathic staff 8 Jan 7 15:27 inbox.org

-rw-r--r--@ 1 mediapathic staff 465 Oct 30 03:52 inbox.org_archive

-rw-r--r--@ 1 mediapathic staff 747 Jan 1 02:04 init.bak

-rw-r--r--@ 1 mediapathic staff 14 Jan 8 04:02 init.org

drwxr-xr-x@ 4 mediapathic staff 128 Dec 20 01:09 journal

-rw-r--r--@ 1 mediapathic staff 281187 Jan 7 14:49 journal.org

-rw-r--r--@ 1 mediapathic staff 2806 Dec 13 05:13 notes.org

-rw-r--r--@ 1 mediapathic staff 6786 Jun 22 2020 obsidian.css

-rw-r--r--@ 1 mediapathic staff 223207 Sep 13 18:09 org

drwxr-xr-x@ 120 mediapathic staff 3840 Dec 20 01:19 org-archive

drwxr-xr-x@ 4527 mediapathic staff 144864 Jan 4 21:23 org-zettel

-rw-r--r--@ 1 mediapathic staff 205 Dec 14 17:53 refile.org

drwxr-xr-x@ 4 mediapathic staff 128 Dec 20 01:11 templates


Let's see if that worked... 



I think there's some bug in the forums. I've responded three times giving the details you requested, and none of them have gone through. Is there perhaps somewhere else I can send you this information? 

Please email me directly - mgkennard AT appsonthemove DOT com. Sorry for the forum issues.

hey, all of my messages just showed up here. Alrighty then. 


I also mailed you, feel free to respond in either place, though my personal preference would be for mail, as it seems more reliable. 


I'm going to send you an email using the address you registered on the forum as I can't find an email from you. There is something strange going on with one side!

Login or Signup to post a comment