Time Nick Message 01:32 AntumDeluge I'm looking for a way to override the function that handles bouncing or landing on a node, but I don't see anything in the API. What I want to do is play a sound when the player "bounces". sounds.footsteps isn't what I want as I don't want the sound to play if player just walking over node. Could someone maybe point me to the right documentation? 03:03 guest123141 Anyone ever see:  src/tcmalloc.cc:333] Attempt to free invalid pointer 0x7fe991608d80 03:03 guest123141 Abort trap: 6 03:03 guest123141 on a pull today trying to compile on osx 03:10 guest123141 Or should I say:   I pulled and built on OSX today and on run I get the Error.   Here is it in context of execution with --verbose: 03:10 guest123141 2021-04-28 13:47:01: INFO[Main]: Audio: Global Initialized: OpenAL 1.1, using Built-in Output 03:10 guest123141 2021-04-28 13:47:01: INFO[Main]: Irrlicht: Irrlicht Engine version 1.9.0mt2 03:10 guest123141 src/tcmalloc.cc:333] Attempt to free invalid pointer 0x7fe991608d80 03:14 MTDiscord seems tuxfan also had a issue with audio today, not sure if its related or what platform 03:14 MTDiscord [ALSOFT] (EE) Failed to set real-time priority for thread: Operation not permitted (1) 2021-04-28 14:36:23: ERROR[Main]: Audio: Global Initialization: Failed to create context 03:22 guest123141 I am new here of course.  The release is unplayable for me on OSX.   sfan5 pushed a test 5.5-dev a few weeks back  in the MT forum for OSX that works but did not have audio enabled.  So I decided to pull and build Dev for OSX today.  It compiles, and the server run.  But the client chokes at start with this trap 6.  I am not sure if it is 03:22 guest123141 Audio IrrlichMT or something else Mac Specific. 03:24 MTDiscord what os are you on? 03:24 guest123141 Also, there are some errors or ommisions on the GIT readme.md Big Sur 03:24 MTDiscord jordach has dev builds somewhere around here for macos 03:24 guest123141 BigSur. 03:24 MTDiscord ah yes https://www.dropbox.com/sh/jt3el1tn6s1yc82/AADHR74Y1tEQDb9NKQh5Csu-a 03:25 guest123141 I think I used his build page forum post for insturcitons 03:26 guest123141 https://forum.minetest.net/viewtopic.php?f=42&t=26521&sid=832a4c2e03d1d4cae85457e19e224eb2 03:26 MTDiscord yes 03:26 MTDiscord do you want head or stable 03:27 guest123141 Head 03:27 guest123141 Are you able to execute the current client 03:28 MTDiscord yes 03:28 MTDiscord if it doesn't open 03:28 MTDiscord right click the app then click open 03:28 MTDiscord gatekeeper usually causes fun problems 03:32 guest123141 Which one for x86_64 BigSur? 03:32 MTDiscord both are 03:32 MTDiscord Universal-Lua are M1 specific due to JIT being restricted to developer signed apps 03:32 MTDiscord however, x64 JIT is fine under rosetta and Intel machines 03:37 guest123141 the Apr27 works fine it s 03:37 MTDiscord lemme grab my mac and hit the build 03:37 MTDiscord it auto updates irrlichtmt and minetest as a whole 03:38 guest123141 Mind sharing your build script so I can see where I went wrong? 03:38 MTDiscord despisingly evil 03:38 MTDiscord as it doesn't use homebrew at all 03:38 MTDiscord instead i manually built every dependancy 03:39 MTDiscord Will build IrrlichtMT 1.9-dev-04bc02f. 03:40 guest123141 I used your post and got cmake et all from homebrew.  Built IrrlichtMT and minetest fresh.   But got the pointer error.  Wonder if it is just a passing thing in the MT code or homebrew dependencies. 03:40 MTDiscord it's building fine on my M1 03:41 MTDiscord these builds target minimum macOS Big Sur 11.0 03:41 guest123141 Hmmm..   Are you getting warnings about PACK (which shouldnt matter). 03:41 guest123141 Yea I am 11.3 03:41 MTDiscord Will build Minetest 5.5.0-dev-83a7b48bb-x64-JIT, with minetest_game-79e63a8. 03:44 MTDiscord builds updated 03:45 guest123141 Build of everything went fine with a few warnings that look harmless.   Just after execution of ./minetest.app/Contents/MacOS/minetest  is where the Trap6 hits.    Also running ./minetest.app/Contents/MacOS/minetest --server --terminal  Worked on my build as well. 03:45 MTDiscord afaik homebrew sometimes ships the wrong versions of things 03:48 guest123141 also is this good enough to tell someone that the Readme.md on minetest seems to have an error  with saying IRRLICHT_INCLUDE_DIR  and IRRLICHT_LIBRARY     When it seem they really have a DIR in front? 03:49 MTDiscord ? 03:49 MTDiscord fwiw the irrlicht on brew is not the minetest one 03:49 MTDiscord you should probably uninstallk that 03:49 MTDiscord the gist of the commands are 03:50 guest123141 I did. 03:50 MTDiscord cmake . -DBUILD_SHARED_LIBS=FALSE 03:50 MTDiscord for irrlichtMT 03:50 MTDiscord ie, git clone it 03:50 MTDiscord then run that 03:50 guest123141 got that 03:50 MTDiscord for minetest you'll notice that i'm manually specifying the directories where the headers for irrMT is 03:50 MTDiscord cmake . -DRUN_IN_PLACE=FALSE -DIRRLICHT_INCLUDE_DIR=/Users/jordach/Development/irrMT/include -DIRRLICHT_LIBRARY=/Users/jordach/Development/irrMT/lib/OSX/libIrrlichtMt.a 03:51 MTDiscord while the library (.a) is manually specified 03:51 MTDiscord and yes i keep them in my home directory in their own folder to keep things clean 03:52 guest123141 :)   I followed your post in the forum  https://forum.minetest.net/viewtopic.php?f=42&t=26521&sid=832a4c2e03d1d4cae85457e19e224eb2 03:52 MTDiscord the brew instructions are a bit more outdated 03:53 MTDiscord however, my builds do run perfectly fine under rosetta 03:53 MTDiscord these are designed to be a straight drop in replacement to neoascetic's builds 03:53 MTDiscord since he went MIA 03:53 MTDiscord however, i won't support anything pre big sur as i don't own a mac old enough to try building it for earlier 03:53 guest123141 I was hoping to get a clean build. 03:54 MTDiscord ah, these are clean release builds 03:54 MTDiscord if you just holler my name in IRC i can print fresh builds 03:54 guest123141 :)  No I was hoping to make a build.   If you pulled just now and can execute client then it must be homebrew. 03:55 MTDiscord hmm 03:55 guest123141 I will keep digging.  Do you get any compile warnings? 03:55 MTDiscord yeah it's homebrew dependancies 03:55 MTDiscord other than clang specifics 03:55 MTDiscord irrMT builds fine 03:55 MTDiscord as does MT 03:56 guest123141 OK I will start yanking them from git and see what breaks. 03:56 MTDiscord i basically built everything dependancy wise, including LuaJIT 03:56 MTDiscord yeah i did write manual commands 03:56 MTDiscord they're "supported" in that they should work on older macs 03:56 MTDiscord brew remove irrlicht 03:56 MTDiscord since CMake will sometimes ignore your specified directories 03:57 guest123141 Will try with it removed.  (I had unlinked it only). 03:57 MTDiscord ah that would do it 03:57 MTDiscord i did spend like a day or two with sfan5 trying to figure out why brew was being useless 03:57 MTDiscord end result: i uninstalled brew 03:58 MTDiscord like completely including it's configuration files 03:58 MTDiscord brew doesn't want to support M1 macs 03:58 guest123141 :)    That may be the only key.  but it was in your post so I followed it. 03:58 MTDiscord brew also doesn't want to support universal binaries which support both intel and M1 03:58 MTDiscord ye 03:58 MTDiscord not much i can do otherwise 03:58 MTDiscord for M1 users they have to use the regular lua interpreter 03:59 MTDiscord but that's not really a curse considering how much raw grunt it has under the hood 04:01 MTDiscord it's why i provide a standalone x64 build with JIT and x64+arm64 with regular PUC Lua 04:02 guest123141 I usually run mt/mcl on an rpi4 so I know a thing or two about raw grunt under the hood. 04:03 guest123141 Do you know which one is better jit or puc? 04:03 MTDiscord more specifically, i had to heavily modify libPNG to disable the ARM NEON 04:03 MTDiscord JIT is better 04:03 MTDiscord far better 04:03 MTDiscord but it only works on intel macs 04:03 MTDiscord and under rosetta, but afaik it probably loses the efficiency of JIT when translating it for arm instructions 04:03 MTDiscord i run arm64 native for this reason 04:04 guest123141 native always better. 04:04 MTDiscord mm 04:04 MTDiscord libPNG for me was a right pain to deal with due to arm neon 04:04 MTDiscord as Apple's chips do and don't support it 04:04 MTDiscord it's a chicken and egg problem that still persists even in current versions 04:05 guest123141 Does the Error for not having Mine Test Game when compiling cause any problems? 04:05 MTDiscord also yes 04:05 MTDiscord it won't cause problems 04:05 MTDiscord i get that on my windows machine where i've compiled it for MSVC without _game 04:05 MTDiscord it really fucking annoys me 04:05 MTDiscord why is _game default and not devtest 04:05 guest123141 (yea!) 04:06 guest123141 But it would not throw this trap error? 04:06 guest123141 Compile is done and I am about to fail the execute again. 04:06 guest123141 And I know I forgot to add the game. 04:06 MTDiscord ignoring game is fine 04:06 MTDiscord it'll default to another 04:08 MTDiscord but yes, usually most compile errors that throw something like that is due to head using irrlichtMT and not the original irrlicht 04:08 guest123141 (base) me$ ./minetest.app/Contents/MacOS/minetest 04:08 guest123141 2021-04-29 00:07:26: ERROR[Main]: Game specified in default_game [minetest] is invalid. 04:08 guest123141 src/tcmalloc.cc:333] Attempt to free invalid pointer 0x7fb3fe5093c0 04:08 guest123141 Abort trap: 6 04:09 MTDiscord works on my machine wtf 04:09 guest123141 Nope...:(      Oh well thanks for your help.  I have your executable that works. 04:10 MTDiscord just hop on IRC and prod me if you want a fresh one 04:10 MTDiscord since i'm almost always reachable via the official community discord server 04:10 MTDiscord just holler and i'll print em 04:10 MTDiscord https://cdn.discordapp.com/attachments/749727888659447960/837179126028173342/Screenshot_2021-04-29_at_05.10.10.png 04:11 guest123141 I want to build my own so there is more than one person who can make them... But then maybe we are the only two using macs. 04:11 MTDiscord this community has one M1 mac user and that's me 04:11 MTDiscord so having to deal with all the arm specific fun is my kind of fun 04:11 MTDiscord the one where you push your face into a belt sander 04:11 MTDiscord and then feel glorious when it's polished 04:15 MTDiscord AH 04:15 MTDiscord I JUST REALISED 04:15 MTDiscord you need to ensure the app is not built as a run in place 04:16 MTDiscord well is DRUN_IN_PLACE=false 04:16 MTDiscord that's the critical bit 04:16 MTDiscord i should point out it needs accessibility and input monitoring otherwise the camera speeeeeeeeens 04:24 guest123141 Yes in place is false.  Using 04:24 guest123141 git clone https://github.com/minetest/minetest.git 04:24 guest123141 cd minetest 04:24 guest123141 cmake . -DRUN_IN_PLACE=FALSE -DIRRLICHT_INCLUDE_DIR="../irrlicht/include" -DIRRLICHT_LIBRARY="../irrlicht/lib/OSX/libIrrlichtMt.a" 04:24 guest123141 make package -j8 04:25 MTDiscord oh 04:25 MTDiscord i usually prefer the full path to irrlicht 04:25 MTDiscord rather than relative 04:26 MTDiscord it's usually that tiny bit safer 04:42 guest123141 still no go...   Looks like the error is at the init or irrlichtmt. 04:42 guest123141 (base) machine:jordach me$ ./minetest.app/Contents/MacOS/minetest --verbose 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: Using system-wide paths (NOT RUN_IN_PLACE) 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: Detected share path: /Users/me/game/jordach/minetest.app/Contents/Resources 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: Detected user path: /Users/me/Library/Application Support/minetest 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: Detected cache path: /Users/me/.cache/minetest 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: minetest with SER_FMT_VER_HIGHEST_READ=28, BUILD_TYPE=Release 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: RUN_IN_PLACE=0 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: USE_CURL=1 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: USE_GETTEXT=0 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: USE_SOUND=1 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: USE_FREETYPE=1 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: STATIC_SHAREDIR="minetest.app/Contents/Resources" 04:42 guest123141 2021-04-29 00:35:13: VERBOSE[Main]: httpfetch_init: parallel_limit=8 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: Message locale is now set to: en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: Searching worlds... 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: In /Users/me/Library/Application Support/minetest/worlds: world1 Junkey5 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: 2 found. 04:42 guest123141 2021-04-29 00:35:13: INFO[Main]: Using default world at [/Users/me/Library/Application Support/minetest/worlds/world] 04:43 guest123141 this is yours executing.   the pointer error stops before Irrlichtmt prints the machine. 04:47 MTDiscord weird 04:49 guest123141 I was going to yank a fresh luajit but I do not think irrlichtmt depends on that.  I build it with: 04:49 guest123141 git clone https://github.com/minetest/irrlicht.git 04:49 guest123141 cd irrlicht 04:49 guest123141 cmake . -DBUILD_SHARED_LIBS=FALSE 04:49 guest123141 make -j8 04:49 MTDiscord ye you don't need to compile luajit 04:49 MTDiscord it's already in homebrew 04:51 MTDiscord uh 04:51 guest123141 Yea I, I was going to just start building all dependencies outside brew like to see if any would fix it.  I dont build on mac (not my usual tool base)  Xcode is fresh. 04:51 MTDiscord you forgot the irrlicht libraries 04:51 guest123141 ? 04:51 MTDiscord in the commands you just listed 04:52 guest123141 That is for irrlicht? 04:52 MTDiscord apologies 04:52 MTDiscord it's about to turn 6am 04:52 MTDiscord irrlichtMT compiles nicely for me 04:52 MTDiscord but i'm not sure why it doesn't for you 04:54 guest123141 It compiles fine and quick as does MT.    Just wont run. 04:55 guest123141 This probably will not get done tonight..  would you mind dropping your build logs on dropbox?  I could go through and see if I have any warnings that you don't 05:01 MTDiscord https://gist.github.com/Jordach/b75350dcd010ccbe1a3e405a1f883520 05:02 guest123141 thx. 05:03 MTDiscord https://gist.github.com/Jordach/46a825dcf71cdd0b608b923b0dbbe3ff 05:03 MTDiscord and irrlicht 05:03 MTDiscord ignore the library, as it's compiling for both x64 and arm64 05:03 MTDiscord right at the end 05:38 guest123141 could not diff but Eyeball says they are the same.... You have lua in MT which I do not.  But I assume that is because I am using jit.    Time to give up for now.    Could use CMAKE settings to check my dependency versions against yours but... Its bedtime. 06:21 guest123141 Just a quick update the problem w my osx build does look to crop up in IrrlichtMT.   I broke down and built the examples with debug symbols and get the Abort Trap: 6  below. 06:22 guest123141 ./01.HelloWorld 06:22 guest123141 Irrlicht Engine version 1.9.0mt2 06:22 guest123141 2021-04-29 02:14:42.828 01.HelloWorld[43041:442216] *** Assertion failure in -[NSMenu initWithTitle:], NSMenu.m:361 06:22 guest123141 2021-04-29 02:14:42.829 01.HelloWorld[43041:442216] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: aTitle != nil' 06:22 guest123141 *** First throw call stack: 06:22 guest123141 ( 06:22 guest123141 0 CoreFoundation 0x00007fff2085998b __exceptionPreprocess + 242 06:22 guest123141 1 libobjc.A.dylib 0x00007fff20591d92 objc_exception_throw + 48 06:22 guest123141 2 CoreFoundation 0x00007fff20882af2 +[NSException raise:format:arguments:] + 88 06:22 guest123141 3 Foundation 0x00007fff2163aa12 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 191 06:22 guest123141 4 AppKit 0x00007fff22fd1426 -[NSMenu initWithTitle:] + 196 06:22 guest123141 5 01.HelloWorld 0x000000010cd6235b _ZN3irr16CIrrDeviceMacOSXC1ERKNS_27SIrrlichtCreationParametersE + 555 06:22 guest123141 6 01.HelloWorld 0x000000010cd57a03 createDeviceEx + 51 06:22 guest123141 7 01.HelloWorld 0x000000010cd5797c createDevice + 268 06:22 guest123141 8 01.HelloWorld 0x000000010cb45835 main + 69 06:22 guest123141 9 libdyld.dylib 0x00007fff20701f3d start + 1 06:22 guest123141 10 ??? 0x0000000000000001 0x0 + 1 06:22 guest123141 ) 06:30 sfan5 currently irrlicht applications only work when ran inside app bundles 06:31 sfan5 it looks like you already tried that with MT but it crashed for unclear reasons 06:32 guest123141 Yea same crash.... Worked with Jordache for a bit but no luck.  Interesting that it is the same fail on the example. 06:32 sfan5 what's the crash when you run MT from inside the app bundle? can't be the same 06:32 guest123141 (Or at least the same trap 6 06:34 guest123141 Both irr..MT and MT build fine.  But the MT client crashes a few seconds in with (will paste below). 06:37 guest123141 ./minetest.app/Contents/MacOS/minetest --verbose 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: Using system-wide paths (NOT RUN_IN_PLACE) 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: Detected share path: /Users/me/game/dev/minetest/minetest.app/Contents/Resources 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: Detected user path: /Users/me/Library/Application Support/minetest 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: Detected cache path: /Users/me/.cache/minetest 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: minetest with SER_FMT_VER_HIGHEST_READ=28, BUILD_TYPE=Release 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: RUN_IN_PLACE=0 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: USE_CURL=1 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: USE_GETTEXT=0 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: USE_SOUND=1 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: USE_FREETYPE=1 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: STATIC_SHAREDIR="minetest.app/Contents/Resources" 06:37 guest123141 2021-04-29 02:35:20: VERBOSE[Main]: httpfetch_init: parallel_limit=8 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: Message locale is now set to: en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: Searching worlds... 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: In /Users/me/Library/Application Support/minetest/worlds: Borgle Junkey5 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: 2 found. 06:37 guest123141 2021-04-29 02:35:20: INFO[Main]: Using default world at [/Users/me/Library/Application Support/minetest/worlds/world] 06:37 guest123141 running --server --terminal seems to work fine. 06:37 sfan5 I don't see a crash reason, rather it just stops 06:38 sfan5 (also a tip: normally people don't paste more than ~4 lines into IRC and instead use a pastebin service) 06:39 sfan5 can you run that under lldb or similar to get a backtrace? 06:39 guest123141 Sorry:( 06:47 guest123141 15 lines of output for lldb but I don't have a pastebin. 06:50 sfan5 https://paste.debian.net/ 06:52 guest123141 :)   Was just about to use ubuntu 06:54 guest123141 https://paste.debian.net/1195618/ 06:58 sfan5 sounds like either macos is doing some weird entitlement stuff or it's tcmalloc crashing 07:00 sfan5 and that reminds me: try disabling leveldb in your build 07:03 guest123141 Will try to set ENABLE_LEVELDB=OFF on MT and recompile. 07:22 guest123141 may have still had old irrlich in /usr/local from homebrew (or perhaps from a previous shared irrlichmt compile?).    rm -Rf  and trying again. 07:24 sfan5 grep IRRLICHT CMakeCache.txt to check 07:25 guest123141 that is how I found that it was still linking to a dyld in usr/local 07:58 guest123141 sfan?  Not sure if this is how to use pastebin...  (but I am learning)  https://paste.debian.net/1195620/   TLDR   is it expected that the cmakecashe show  IRRLICHT_INCLUDE_DIR:PATH=IRRLICHT_INCLUDE_DIR-NOTFOUND   when the path correct in the cmake -D? 08:00 sfan5 no it's not supposed to say that 08:00 sfan5 try -DIRRLICHT_INCLUDE_DIR="$PWD/../irrlicht/include" instead (absolute path)= 08:13 guest123141 Same result. 08:15 guest123141 It may be down to cmake from homebrew or ?   I will try again tomorrow with clean clones. 08:15 guest123141 Thanks for the help,  I am a fan! 17:18 ghoti Greetings. I'm trying to figure out logging. When I host a local server, I get reams of activity data going to debug.txt. Is that the data stored with the --logfile option too? How is it supposed to be rotated? Can the option be a pipe? 17:20 ghoti That is, can the filename I specify be a pipe through cronolog? Or would a bash process substitution be a better bet? 17:23 sfan5 you can probably log to a pipe 17:23 sfan5 but minetestserver also prints everything interesting to stdout/stderr 18:02 swift110 hello all 18:02 swift110 whos playing today> 21:09 entuland hello there everyone, been away for a while, hope you're all doing great 21:10 entuland been messing with some minetest again recently and noticed that set_rotation() on entities seems to have a whole degree resolution - doesn't matter what fraction of a radian I give to it, it snaps in place to whole degrees 21:10 entuland is that normal or am I missing any setting / configuration to have a finer resolution? 21:19 MTDiscord Rotation is a v3f - I see no reason why there should be whole degree resolution 21:22 swift110 is anyone on here playing minetest on android?> 21:23 entuland sorry - got disconnected - can't really tell why it's doing that either, I can visibly see the mesh of my entity snapping during the orientation despite different values provided to set_rotation() 22:04 swift110 oh ok 22:20 entuland argh... updated to 5.4.1, created a new world with some of the mods I need, the game crashes with "/tmp/minetest/src/network/connection.cpp:3f9: processReliableSendCommand: An engine assumption 'c.data.getSize() < 0x8000*512' failed." - narrowed down the problem to my own wesh mod (https://github.com/entuland/wesh) but no idea what could be causing the engine to freak out 22:21 entuland version 5.3.0 had no problems with it