Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Prusa from git fails:looking for wxGTK file in /tmp/[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
clytle374
Apprentice
Apprentice


Joined: 01 Aug 2006
Posts: 221

PostPosted: Sun May 02, 2021 8:26 am    Post subject: Prusa from git fails:looking for wxGTK file in /tmp/[solved] Reply with quote

I've been having this issue for a while. Been building Prusa slicer from get source for over a year now. Now I get a fault on start up, it builds fine.

Code:
/prusaslic3r/src $ ./prusa-slicer
/var/tmp/portage/portage/x11-libs/wxGTK-3.0.4-r2/work/wxWidgets-3.0.4/include/wx/dynarray.h(837): assert "uiIndex < m_nCount" failed in Item().
Segmentation fault


File doesn't exist obviously, at least not there anyway.

I thought I should ask here first as cmake and build from prusa should never know about this location. Strangely it is the correct location where the build happened. Anyone have any idea what is being configured wrong on my system? I'm sure Prusa people will have no idea.

Thanks
Cory
Code:
emerge -pv =x11-libs/wxGTK-3.0.4-r2 =x11-libs/wxGTK-3.0.4-r302
WARNING: One or more repositories have missing repo_name entries:

   /var/db/repos/localrepo/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.



These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] x11-libs/wxGTK-3.0.4-r2:3.0::gentoo  USE="X libnotify opengl sdl tiff -debug -doc -gstreamer" ABI_X86="(64) -32 (-x32)" 0 KiB
[ebuild   R    ] x11-libs/wxGTK-3.0.4-r302:3.0-gtk3::gentoo  USE="X gstreamer libnotify opengl sdl tiff -debug -doc -webkit" ABI_X86="(64) -32 (-x32)" 0 KiB

Total: 2 packages (2 reinstalls), Size of downloads: 0 KiB


Code:
emerge --info
WARNING: One or more repositories have missing repo_name entries:

   /var/db/repos/localrepo/profiles/repo_name

NOTE: Each repo_name entry should be a plain text file containing a
unique name for the repository on the first line.


Portage 3.0.18 (python 3.8.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-10.2.0, glibc-2.32-r7, 5.10.27-gentoo x86_64)
=================================================================
System uname: Linux-5.10.27-gentoo-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.2.5
KiB Mem:    32759116 total,  20237008 free
KiB Swap:   33554428 total,  33554428 free
Timestamp of repository gentoo: Sun, 02 May 2021 02:30:01 +0000
Head commit of repository gentoo: 82b1b477b2e5be70b61de877f85a1ca3c54cbcbf
Timestamp of repository raiagent: Sat, 01 May 2021 19:20:05 +0000
Head commit of repository raiagent: 054c5cba74356ec6067368956c87eb8e6c96193c

Timestamp of repository waebbl: Thu, 29 Apr 2021 18:05:49 +0000
Head commit of repository waebbl: 2357148aecb750bcfaa9a5551b87b7e0a34cf361

sh bash 5.0_p18
ld GNU ld (Gentoo 2.35.2 p1) 2.35.2
app-shells/bash:          5.0_p18::gentoo
dev-java/java-config:     2.3.1::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18_p8::gentoo, 3.6.13_p1::gentoo, 3.7.10_p1::gentoo, 3.8.8_p1::gentoo, 3.9.2_p1::gentoo
dev-lang/rust:            1.51.0-r2::gentoo
dev-util/cmake:           3.18.5::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.21::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2-r1::gentoo
sys-devel/binutils:       2.35.2::gentoo
sys-devel/gcc:            10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-max-age: 24
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts:
    sync-rsync-verify-jobs: 1

localrepo
    location: /usr/local/portage
    masters: gentoo

raiagent
    location: /var/db/repos/raiagent
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/raiagent.git
    masters: gentoo

waebbl
    location: /var/db/repos/waebbl
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/waebbl.git
    masters: gentoo

x-localrepo
    location: /var/db/repos/localrepo
    masters: gentoo
    priority: 0

crossdev
    location: /usr/local/portage-crossdev
    masters: gentoo
    priority: 10

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=skylake -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirrors.rit.edu/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ https://mirrors.rit.edu/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en_US"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp/portage"
USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli crypt cups dbus declarative dri dts dvd dvdr elogind emboss encode exif flac fortran gdbm gif gpm gtk gui iconv icu ipv6 jpeg kde kipi kwallet lcms libglvnd libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds pulseaudio qml qt5 readline sdl seccomp semantic-desktop spell split-usr ssl startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vorbis widgets wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev synaptics joystick" KERNEL="linux" L10N="en en-US en_US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python3_8" RUBY_TARGETS="ruby26" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS

_________________
NooB since RedHat 6.1


Last edited by clytle374 on Fri May 07, 2021 11:20 am; edited 1 time in total
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9820
Location: almost Mile High in the USA

PostPosted: Wed May 05, 2021 6:50 am    Post subject: Reply with quote

Well that location is expected behavior, assert() and such end up hardcoding paths to aid in debugging but since source code normally deleted after successful compile, it's gone. In any case, it seems prusaslicer is calling wxgtk weirdly for some reason that's still not clear. As far as I can tell, and I'm no C++ coder, it seems the assertion is indicating that the program is reading off the end of an array, which is kind of bad...

You should first try to purge all your old prusaslicer relatedconfig files that you can find if they don't appear to contain useful information (and maybe delete them anyway after saving them) -- that would be my first attempt at trying to get this working. I've never used prusaslicer so no idea what files it uses. Likely it's an upstream issue.

(I use cura at the moment...)
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
clytle374
Apprentice
Apprentice


Joined: 01 Aug 2006
Posts: 221

PostPosted: Fri May 07, 2021 5:06 am    Post subject: Reply with quote

eccerr0r wrote:
Well that location is expected behavior, assert() and such end up hardcoding paths to aid in debugging but since source code normally deleted after successful compile, it's gone. In any case, it seems prusaslicer is calling wxgtk weirdly for some reason that's still not clear. As far as I can tell, and I'm no C++ coder, it seems the assertion is indicating that the program is reading off the end of an array, which is kind of bad...

You should first try to purge all your old prusaslicer relatedconfig files that you can find if they don't appear to contain useful information (and maybe delete them anyway after saving them) -- that would be my first attempt at trying to get this working. I've never used prusaslicer so no idea what files it uses. Likely it's an upstream issue.

(I use cura at the moment...)


Thanks for help. I created a new build directory and and searched the config files. Everything in the configs is readable and nothing related to paths. Just filament, printer, and setup information.

I guess I will post to the prussa forums then. I didn't understand that such information could have been hardcoded in during the build, so the outcome was completely confusing to me.

Thanks
Cory
_________________
NooB since RedHat 6.1
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9820
Location: almost Mile High in the USA

PostPosted: Fri May 07, 2021 5:32 am    Post subject: Reply with quote

Actually I meant completely remove them, regardless of path information. This includes delete stuff like file history, printer profile, retraction length, overhang cooling, etc., etc. - don't know if any of this has corruption or file format change. The idea of inspecting them is so you can put the same data back...
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
clytle374
Apprentice
Apprentice


Joined: 01 Aug 2006
Posts: 221

PostPosted: Fri May 07, 2021 6:23 am    Post subject: Reply with quote

eccerr0r wrote:
Actually I meant completely remove them, regardless of path information. This includes delete stuff like file history, printer profile, retraction length, overhang cooling, etc., etc. - don't know if any of this has corruption or file format change. The idea of inspecting them is so you can put the same data back...


I removed the whole config dir and same failure. I did a hard reset of the git dir just to be sure and started with a fresh build folder. Guess I could delete the git dir and reclone it. But nothing should be in there as nothing is written to it in the build process.
Thanks
Cory
_________________
NooB since RedHat 6.1
Back to top
View user's profile Send private message
clytle374
Apprentice
Apprentice


Joined: 01 Aug 2006
Posts: 221

PostPosted: Fri May 07, 2021 11:18 am    Post subject: Reply with quote

After a more extensive search, I found that Prusa has a known problem that I believe to be the same issue.
Thanks
Cory
_________________
NooB since RedHat 6.1
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum