obsidian core dumped

Good day!
I use obsidian and very like this app. I have installed it about 1 year ago (I don't remember from ports or from packages).
Recently after big upgrade
Code:
pkg upgrade
obsidian was removed

now I can't find it in packages
Code:
pkg search -x obsidian
shows nothing

Then I went to ports /usr/ports/textproc/obsidian and tried to install
I'v got dependency electron33
I have tried to install this package but could find this version. I see only electron34
Code:
root@initr0 /usr/ports> pkg search -x electron
electron34-34.4.1   Build cross-platform desktop apps with JavaScript, HTML, and CSS

then I have tried to change in Obsidian Makefile electron33 to electron34
Code:
USES=        electronfix:33
to
Code:
USES=        electronfix:34
and obsidian was installed but after start I get core dumped

Code:
root@initr0> obsidian --no-sandbox

2025-04-05 06:06:37 Loading main app package /usr/local/share/obsidian/resources/obsidian.asar
Updates disabled.
Gtk-Message: 09:06:37.584: Failed to load module "window-decorations-gtk-module"
Gtk-Message: 09:06:37.584: Failed to load module "colorreload-gtk-module"
Trace/BPT trap (core dumped)

If I use origin electorn33 then I get dependency chromium130, but I see only chromium134 in packages.
Try to compile chromium130 is not very good idea I think... (I even haven't so much free space to do it)

Any ideas how to fix it?

Tech info:
OS: FreeBSD 13.4-RELEASE-p4
pkg -vv | grep url = pkg+http://pkg.freebsd.org/FreeBSD:13:amd64/latest
ports branch is up to date with 'origin/main'
 
I use obsidian and very like this app. I have installed it about 1 year ago (I don't remember from ports or from packages).
Recently after big upgrade
pkg upgradeobsidian was removed

now I can't find it in packages
You have installed obsidian from ports, there is no package because of license:

ports/textproc/obsidian/Makefile
Code:
1 # This port will not be packaged by the official FreeBSD build cluster, because
2 # its license doesn't permit redistribution.

Then I went to ports /usr/ports/textproc/obsidian and tried to install
I'v got dependency electron33
I have tried to install this package but could find this version. I see only electron34
There is no electron33 (or electron32 for the matter) package available either. The reason is they are blacklisted for building on the FreeBSD build clusters due to demanding resources (disk, cpu, ram), and there are not enough resources available to build three versions of electron (32, 33, 34). Only electron34 is build and distributed as package. See discussion Bug 270565 electron* ports are blacklisted from the build and screenshot of a recent build machines pkg-status (note "Reason" column).

. https://pkg-status.freebsd.org/beefy22/build.html?mastername=142amd64-default&build=4ff0a7ba4d1f

electron-blacklisted.png



If I use origin electorn33 then I get dependency chromium130,
Not sure what you mean by electron33 and chromium dependency. electron33 has no dependency on chromium, and chromium has no dependency on electron33.

Any ideas how to fix it?
Build obsidian33 from ports, install build dependencies from packages. But you mentioned limited resources for building, this might not be an option for you (unless you can find a beefier machine to build on).

Another options is to open a PR, ask the obsidian maintainer for help on the electron34 core dump issue, eventually ask to update port to use electron34 (if possible).
 
Thank you for reply and clarifications!

When I try to install electron33 from ports it's trying to download chromium-130.0.6723.191

I will try to write PR

Code:
root@initr0 /usr/ports/devel/electron33> make install

To build electron, you should have around 2GB of memory
and around 14 GB of free disk space.

/!\ WARNING /!\

You have security/openssl installed but do not have
DEFAULT_VERSIONS+=ssl=openssl set in your make.conf

===>  License BSD3CLAUSE LGPL21 MPL11 MIT accepted by the user
===>   electron33-33.4.8 depends on file: /usr/local/sbin/pkg - found
===>   electron33-33.4.8 depends on package: yarn-node20>0 - found
if [ ! -f /usr/ports/distfiles/electron/electron-yarn-cache-33.4.8.tar.xz ];  then /bin/mkdir -p /usr/ports/devel/electron33/work;  echo 'yarn-offline-mirror "./yarn-offline-cache"' >>  /usr/ports/devel/electron33/work/.yarnrc;  cp -f /usr/ports/devel/electron33/files/package.json /usr/ports/devel/electron33/files/yarn.lock /usr/ports/devel/electron33/work;  cd /usr/ports/devel/electron33/work && /usr/bin/env HOME=/usr/ports/devel/electron33/work XDG_CACHE_HOME=/usr/ports/devel/electron33/work/.cache  yarn --frozen-lockfile --ignore-scripts;  /usr/sbin/mtree -cbnSp yarn-offline-cache | /usr/sbin/mtree -C | /usr/bin/sed  -e 's:time=[0-9.]*:time=61171200.000000000:'  -e 's:\([gu]id\)=[0-9]*:\1=0:g'  -e 's:mode=\([0-9]\)7[0-9][0-9]:mode=\1755:'  -e 's:mode=\([0-9]\)6[0-9][0-9]:mode=\1644:'  -e 's:flags=.*:flags=none:'  -e 's:^\.:./yarn-offline-cache:' > yarn-offline-cache.mtree;  /usr/bin/tar cJf /usr/ports/distfiles/electron/electron-yarn-cache-33.4.8.tar.xz  @yarn-offline-cache.mtree;  /bin/rm -f -r /usr/ports/devel/electron33/work;  fi
=> chromium-130.0.6723.191.tar.xz.0 doesn't seem to exist in /usr/ports/distfiles/electron.
=> Attempting to fetch https://github.com/tagattie/FreeBSD-Electron/releases/download/v33.3.2/chromium-130.0.6723.191.tar.xz.0
chromium-130.0.6723.191.tar.xz.0                1% of 1907 MB   10 MBps 02m42s^C
fetch: transfer interrupted
*** Signal 2
*** Signal 2
 
When I try to install electron33 from ports it's trying to download chromium-130.0.6723.191
Code:
=> chromium-130.0.6723.191.tar.xz.0 doesn't seem to exist in /usr/ports/distfiles/electron.
=> Attempting to fetch https://github.com/tagattie/FreeBSD-Electron/releases/download/v33.3.2/chromium-130.0.6723.191.tar.xz.0
www/chromium isn't build as a dependency, apparently the download is the source file to build electron33 from.

ports/devel/electron33/distinfo
Code:
3 SIZE (electron/chromium-130.0.6723.191.tar.xz.0) = 2000000000
See also https://github.com/tagattie/FreeBSD-Electron/releases/tag/v33.3.2

There are pre-built, unofficial FreeBSD electron33 packages available for branches 13 and 14, ready to install (version 33.2.0, unfortunately no packages based on source version 33.3.2, see link above), but I can't tell how well they work with obsidian, if at all.
 
Back
Top