Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux: ActivityLog2 freezes #83

Open
idealist1508 opened this issue Nov 14, 2021 · 6 comments
Open

Linux: ActivityLog2 freezes #83

idealist1508 opened this issue Nov 14, 2021 · 6 comments

Comments

@idealist1508
Copy link
Contributor

Steps to reproduce:

  • Import activities from usb
  • Disconnect watch
  • Try to import activities from other folder
    => ActivityLog2 freezes and it is impossible to change dir.
    grafik
@alex-hhh
Copy link
Owner

On windows, it can handle non-existent directories by just showing a message. Can you try the following Racket program and see if it also hangs (you can try using the "/media/GARMIN/..." directory):

#lang racket
(require racket/gui)
(get-directory "Select directory for import..."
               #f
               "C:/Users/non/existent" ;; use a non-existent directory here
               '(common))

@idealist1508
Copy link
Contributor Author

This sample does not hangs. With a click on /media part, I can change a directory.

@alex-hhh
Copy link
Owner

This is where that dialog is created in ActivityLog2, but the get-directory call is implemented inside Racket...

(dir (get-directory "Select directory for import..."

@idealist1508
Copy link
Contributor Author

After click on a /media part on linux in ActivityLog2, i got an error

invalid memory reference.  Some debugging context lost
  context...:
   .../private/sort.rkt:204:14: loop
   .../private/sort.rkt:369:3
   .../private/path-dialog.rkt:259:10: loop
   .../private/path-dialog.rkt:306:6: set-dir
   .../private/path-dialog.rkt:443:6: do-enter
   .../wxme/text.rkt:536:2: on-default-event method in text%
   .../wxme/editor-canvas.rkt:412:2: on-event method in editor-canvas%
   .../private/more-scheme.rkt:148:2: call-with-break-parameterization
   .../unsafe/atomic.rkt:73:13
   .../gtk/window.rkt:823:4: dispatch-on-event method in window%
   .../common/queue.rkt:435:6
   .../common/queue.rkt:486:32
   .../common/dialog.rkt:58:4: show method in dialog-mixin
   .../private/more-scheme.rkt:148:2: call-with-break-parameterization
   .../unsafe/atomic.rkt:73:13
   .../private/path-dialog.rkt:801:6: run method in path-dialog%

Strange, why it works without an error in a sample?

@alex-hhh
Copy link
Owner

alex-hhh commented Nov 15, 2021

the invalid memory reference indicates some internal memory corruption, which might not happen in the simple sample. In any case, it indicates an error inside Racket. I think we might need to ask the Racket developers about this, but before we do that, can you please make sure you run the latest Racket version (which should be 8.3) and see if it happens on that version as well...

@idealist1508
Copy link
Contributor Author

idealist1508 commented Nov 15, 2021

It happens on 8.3 as well as on 8.2. The callstack is the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants