Opened 3 years ago

Closed 2 years ago

#120 closed defect (fixed)

aven hangs on macos is started without a file

Reported by: Enrico Fratnik Owned by: Olly Betts
Priority: blocker Milestone: 1.4.3
Component: aven Version: 1.2.43
Keywords: Cc:

Description

Dear all,

I am able to compile survex on OSX 11.2.3 with i7 processor [survex 1.2.44], unfortunately aven crash each time I try to star it (log attached)

Do you have any idea

Thank you

enrico

Attachments (2)

aven_log.txt (121.7 KB) - added by Enrico Fratnik 3 years ago.
crash log
aven-system-log.txt (16.8 KB) - added by Enrico Fratnik 3 years ago.

Download all attachments as: .zip

Change History (18)

Changed 3 years ago by Enrico Fratnik

Attachment: aven_log.txt added

crash log

comment:1 Changed 3 years ago by Olly Betts

Looks like it's got into an infinite recursion trying to create a font (or something font related), and the crash is probably when it runs out of stack space, but I don't have a good idea why.

Were you successfully running an older version of Survex before trying this one?

Are you building Survex via homebrew?

Also, you say 1.2.44 above, but the log seems to indicate 1.2.43 - is that just a typo above?

comment:2 Changed 3 years ago by Enrico Fratnik

OPS, sorry, I have checked and the version is 1.2.43 (see log file).

The installation was done with homebrew but with the previous OS (Catalina 10.15.x) and everything works fine but after the update survex works fine except for aven.

comment:3 Changed 3 years ago by Olly Betts

I'd suggest trying reinstalling the homebrew packages wxmac and then survex. Ideally a build with one OS version should continue to work with a later one, but I can see it might not always in practice.

comment:4 Changed 3 years ago by Olly Betts

Milestone: 1.2.44
Version: 1.2.441.2.43

comment:5 Changed 3 years ago by Enrico Fratnik

I have tried to reinstall homebrew and upgrade survex to the last distribution but nothing change...

enricof@icts-enrico bin % cavern --version cavern - Survex 1.2.43

enricof@icts-enrico bin % brew tap survex/survex https://git.survex.com/homebrew-survex

enricof@icts-enrico bin % brew update

Updated 1 tap (homebrew/core).

==> Updated Formulae

clojure-lsp goreleaser

openh264

enricof@icts-enrico bin % brew upgrade

enricof@icts-enrico bin % cavern --version

cavern - Survex 1.2.43

enricof@icts-enrico bin % brew install survex

Warning: survex/survex/survex 1.2.43 is already installed and up-to-date.

To reinstall 1.2.43, run:

brew reinstall survex

enricof@icts-enrico bin %

comment:6 Changed 3 years ago by Enrico Fratnik

If can be useful, attached (aven-system-log.txt) you can find the line on system.log when I try to start aven

Changed 3 years ago by Enrico Fratnik

Attachment: aven-system-log.txt added

comment:7 Changed 3 years ago by Olly Betts

	Apr 16 16:32:18 icts-enrico aven[9476]: objc[9476]: Class wxNSAppController is implemented in both /usr/local/Cellar/wxmac/3.0.5.1_1/lib/libwx_osx_cocoau_core-3.0.0.5.0.dylib (0x107de8c50) and /usr/local/opt/wxmac/lib/libwx_osx_cocoau_core-3.0.dylib (0x105854c50). One of the two will be used. Which one is undefined.

It looks like you have two different wxmac installs, and both are getting pulled in. Perhaps try deleting the one which isn't from homebrew? I'd guess the Cellar one if probably from homebrew, but not certain.

comment:8 Changed 3 years ago by Olly Betts

Did you manage to resolve this?

comment:9 Changed 2 years ago by Pawczak

I think the same scenario is on MacOS Monterey 12.1 (21C52).

After successful installation i cannot open the app. It's opening without any windows showing and status is "App is not responding".

Does your case indicates App crash or it's 'freezing' like i have?

comment:10 Changed 2 years ago by Pawczak

Ok, this is funny one... When i try to Open Aven by opening App. It doesn't respond: can't click on any menus at the top bar, no window is shown.

I accidentally double clicked on .svx file which i process in my app (I work on Android app for presenting data and Data from Survex is one of the Data Formats which i work on).

Guess what... double clicking on .svx file is opening file and everything seems to be correct.

Maybe it will help resolving the issue.

Last edited 2 years ago by Pawczak (previous) (diff)

comment:11 Changed 2 years ago by Olly Betts

I don't have a Mac so it's hard for me to debug. I used to be able to borrow one for the weekend, but I don't think that's possible now.

So it really needs a developer on macos to poke at it.

comment:12 Changed 2 years ago by Pawczak

I understand. I will try to get my logs from the App opening, but now (without having much time) i could not find anything.

comment:13 Changed 2 years ago by Olly Betts

There's now a new Survex release and an updated homebrew package (notably it uses the newer homebrew wxwidgets package instead of the old wxmac package). Can you see if this helps?

comment:14 Changed 2 years ago by Olly Betts

Enrico reported on the list that in 1.4.2 aven still hangs when starting without a file (but works when started with a file).

comment:15 Changed 2 years ago by Olly Betts

Summary: aven crash on OSX 11.2.3aven hangs on macos is started without a file

I've retitled to make this specifically about the current hang on startup with a file.

The workaround seems to be to load a file to start aven (I guess by dragging it onto the aven icon, or by double clicking in the filer).

comment:16 Changed 2 years ago by Olly Betts

Milestone: 1.4.3
Resolution: fixed
Status: newclosed

Should be fixed in homebrew package 1.4.2_6.

If you're building from source and not using homebrew, it's fixed in git and the fix should be in 1.4.3.

Note: See TracTickets for help on using tickets.