teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | Website: http://www.openscad.org/ | FAQ: https://goo.gl/pcT7y3 | Request features / report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://bit.ly/32MfbH5
<kintel> Why does it segfault? because the renderer is null?
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
J24k12 has quit [Quit: Client closed]
J24k12 has joined #openscad
<gbruno> [github] kintel pushed 8 modifications (Another batch of green VBO cleanup (#5005) * Fix VBO memory leak
<gbruno> [github] kintel pushed 4 modifications (Some cleanup + better errors on shader issues) https://github.com/openscad/openscad/commit/54deb0362f58361224de7c2b30c01dcd866b71e3
<gbruno> [github] kintel opened pull request #5008 (Some cleanup + better errors on shader issues) https://github.com/openscad/openscad/pull/5008
snaked has joined #openscad
hyvoid has joined #openscad
kintel has joined #openscad
<gbruno> [github] kintel pushed 2 modifications (Update manifold to get TBB fix, print TBB version) https://github.com/openscad/openscad/commit/0dd0174e609fb5eba1ece5d71251b700d16b95ac
<gbruno> [github] kintel opened pull request #5009 (Update manifold to get TBB fix, print TBB version) https://github.com/openscad/openscad/pull/5009
J24k15 has joined #openscad
J24k12 has quit [Ping timeout: 250 seconds]
JordanBrown has joined #openscad
<JordanBrown> Would appreciate any comments on PR#5006 / issue #5004.
LordOfBikes has quit [Ping timeout: 256 seconds]
ebo has joined #openscad
ebo has quit [Client Quit]
ebo has joined #openscad
LordOfBikes has joined #openscad
<kintel> JordanBrown I tried to look at it, but I'm a bit out of touch with the logging stuff and I didn't quite catch the gist of it : /
<ebo> I am starting to focus on learning learning more than the basics of OpenSCAD.  Are there libraries around for, I guess they are called. "vitamins"?  If not, I will start one.
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #openscad
<ebo> As a note, I just stumbled onto NopSCADlib in the list archives.  This looks very licely put together.
LordOfBikes has quit [Ping timeout: 264 seconds]
LordOfBikes has joined #openscad
ebo has quit [Quit: Client closed]
<gbruno> [github] kintel pushed 1 modifications (Fall back to pkg-config if TBB wasn't found by find_package()) https://github.com/openscad/openscad/commit/518544d151d483a3854e7a71e268ebec456282f4
<gbruno> [github] kintel synchronize pull request #5009 (Update manifold to get TBB fix, print TBB version) https://github.com/openscad/openscad/pull/5009
<gbruno> [github] kintel edited pull request #5009 (Update manifold to get TBB fix, print TBB version) https://github.com/openscad/openscad/pull/5009
mmu_man has quit [Ping timeout: 256 seconds]
<kintel> pca006132 In terms of preserving manifoldness of user-provided polyhedrons(); Do you have an example/idea of a scenario where this is important, and what would happen if the manifold is "collapsed" by merging vertex positions into a single index?
<kintel> ^ I'm interested in building some end-to-end use-cases/tests to better understand the opportunity
GNUmoon has quit [Remote host closed the connection]
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
J24k15 has quit [Quit: Client closed]
J24k15 has joined #openscad
TheCoffeMaker has quit [Ping timeout: 256 seconds]
TheCoffeMaker has joined #openscad
drkow has joined #openscad
drfff has quit [Ping timeout: 240 seconds]
peeps[work] has quit [Remote host closed the connection]
peeps[work] has joined #openscad
jonasbits has quit [Quit: No Ping reply in 180 seconds.]
jonasbits has joined #openscad
J24k15 has quit [Quit: Client closed]
J24k15 has joined #openscad
pca006132 has joined #openscad
<pca006132> kintel: just consider the two cubes example, the one with exactly one vertex touching
guso78k has joined #openscad
arebil has joined #openscad
<guso78k> kintel you are right: the Renderes are redone on each render.
<guso78k> But now it appears to me that when I do preview, not only the OpenCSGRenderer is initialized, but also the ThrownTogetherRenderer afterwards. This is not only little waste of resources but also means, that OpenCSG is used with GL-Engine setup for ThrownTogether Renderer.
<guso78k> This works in most of the cases as their GL setup is identical, but I believe my textutre setup has spot a difference. Generally I feel we should only initialize those renderers which are actually being displayed and used. what do you think ?
<guso78k> at least my segfault is gone when i comment ThrownTogether intizlization in MainWindow.cc
guso78k has quit [Quit: Client closed]
guso78k has joined #openscad
<guso78k> the segfault of this->opencsgRenderer->getShaderInfo() made me  crazy because opencsgRenderer was not null!
<guso78k> appears that the beeing-managed ptr had an issue ?
hyvoid has quit [Quit: WeeChat 4.2.1]
adigitoleo has quit [Remote host closed the connection]
adigitoleo has joined #openscad
mmu_man has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
mmu_man has quit [Ping timeout: 272 seconds]
mmu_man has joined #openscad
mmu_man has quit [Ping timeout: 264 seconds]
mmu_man has joined #openscad
JamesLightsword has joined #openscad
snaked has quit [Quit: Leaving]
Aussie has joined #openscad
<Aussie> Hallo this is my first use of this medium. Can someone show me how to store a variable c in an If condition. Like a=2; b=3;  if (a>b) c=b; else c=a;  this is to ensure that if a dimension is given to an object this can be used in the object.
mmu_man has quit [Ping timeout: 268 seconds]
<guso78k> every if statement is an enclosure and after if your changes is lost again. maybe you want someting like : c=(a>b)?b:a ;
<guso78k> ternal operator
<Aussie> shall try, thanks guso78k
J24k15 has quit [Quit: Client closed]
J24k15 has joined #openscad
Aussie has quit [Ping timeout: 250 seconds]
moonlight has joined #openscad
Aussie has joined #openscad
mmu_man has joined #openscad
kintel has joined #openscad
<kintel> guso78 I'm not sure why we initialize the two renderers together. Ideally, they shouldn't influence each other though, but there may be bugs/weaknesses there.
guso78k has quit [Quit: Client closed]
Aussie has quit [Quit: Client closed]
<kintel> One day I will find time to clean up renderers, still have work to do with the VBO mess..
guso78k has joined #openscad
mmu_man has quit [Ping timeout: 252 seconds]
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<guso78k> propably a historical artefact. At the time when ThrownTogetherRenderer was added, nobody noticed as it just worked ;)
<pca006132> btw, curious why we still have GLX instead of just relying on EGL?
mmu_man has joined #openscad
kintel has joined #openscad
<kintel> pca006132 Not every system has EGL
<kintel> ..and especially GLEW doesn't work with EGL on most systems, and OpenCSG uses GLEW
<pca006132> ah
<pca006132> this is why I don't usually touch graphics :/
<pca006132> wish wgpu can make these things simpler, iirc wgpu is cross platform?
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cart_ has joined #openscad
guso78k has quit [Ping timeout: 250 seconds]
rawgreaze has quit [Quit: ZNC 1.8.2 - https://znc.in]
rawgreaze has joined #openscad
rawgreaze has quit [Quit: ZNC 1.8.2 - https://znc.in]
rawgreaze has joined #openscad
L29Ah has quit [Excess Flood]
rawgreaze has quit [Client Quit]
L29Ah has joined #openscad
rawgreaze has joined #openscad
rawgreaze has quit [Client Quit]
mmu_man has quit [Ping timeout: 264 seconds]
rawgreaze has joined #openscad
kintel has joined #openscad
<kintel> pca006132 Heh, let's see who wins the native WebGPU API war. I haven't started looking at that yet; waiting for things to mature a bit first..
mmu_man has joined #openscad
<kintel> ..and Qt integration will be fun :/
<pca006132> I wonder if it makes sense at some point to just ditch Qt...
<pca006132> I feel like native GUI doesn't worth that much of trouble
<pca006132> though I only have very limited GUI programming experience
<pca006132> probably 6 years ago when I was writing simple C# programs
<kintel> No great alternatives to Qt for native apps though. Something Electron-like could work, but there are probably enough missing features that it would be significant work to deal with that across platforms.
arebil has quit [Quit: arebil]
guso78k has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<othx> guso78k linked to YouTube video "A Tesseract overtaking me in time" => 1 IRC mentions
<guso78k> it has 8 Faces and 16 Corners
pbsds has quit [Ping timeout: 264 seconds]
teepee_ has joined #openscad
pbsds has joined #openscad
teepee has quit [Ping timeout: 255 seconds]
teepee_ is now known as teepee
cart_ has quit [Quit: Konversation terminated!]
Guest63 has joined #openscad
Guest63 has left #openscad [#openscad]
science400 has joined #openscad
guso78k has quit [Quit: Client closed]
<science400> Hi. I don't know the etiquette here, but I can't get OpenSCAD to run. I'm using a development snapshot and it crashes every time I open a file. Eventually I got it to load a new Untitled.scad and the window is completely blank, but I can click on the file menu and open open preferences etc. Then as soon as I open a file it just crashes with no
<science400> error message.
<teepee> which OS is it?
<science400> Windows 10. I've tried on both my work computer and personal laptop with the exact same problems.
<teepee> any graphics drivers installed?
<teepee> maybe try on command line with: openscad.com --info
<science400> On my work computer I updated the Nvidia drivers this morning working on the issue. My laptop has whatever integrated Intel drivers, but it said they were up to date.
<science400> OpenSCAD Version: 2024.02.22 (git 2eb528b27)
<science400> System information: Microsoft Windows 10 (10.0.19045) x86_64 12 CPUs 127.92 GB RAM
<science400> User Agent: OpenSCAD/2024.02.22 (git 2eb528b27) (Microsoft Windows 10 (10.0.19045) x86_64)
<science400> Compiler: GCC "13.2.0" 64bit
<science400> MinGW build: MingW64
<science400> Debug build: No
<science400> Boost version: 1_81
<science400> Eigen version: 3.4.0
<science400> CGAL version, kernels: 5.5, Cartesian<Gmpq>, Extended_cartesian<Gmpq>, Epeck
<science400> OpenCSG version: OpenCSG 1.5.0
<science400> Qt version: 5.15.11
<science400> QScintilla version: 2.11.2
<science400> InputDrivers:
<science400> GLib version: 2.70.2
<science400> lodepng version: 20210627
<science400> libzip version: 1.5.2
<science400> fontconfig version: 2.14.2
<science400> freetype version: 2.13.2
<InPhase> science400: https://bpa.st for pasted content.
<science400>   C:/usr/X11/lib/X11/fonts
<science400>   C:/System/Library/Fonts
<science400>   C:/Library/Fonts
<science400>   C:/Users/isaiah.young/Library/Fonts
<science400>   C:/WINDOWS/fonts/Deleted
<science400>   C:/Users/isaiah.young/AppData/Local/Microsoft/Windows/Fonts/Deleted
<science400> GL context creator: WGL (old)
<science400> PNG generator: lodepng
<science400> GLEW version: 2.1.0
<science400> OpenGL Version: 4.6.0 NVIDIA 551.61
<science400> GL Renderer: Quadro M4000/PCIe/SSE2
<science400> GL Vendor: NVIDIA Corporation
<science400> RGBA(8888), depth(24), stencil(8)
<science400> GL_ARB_framebuffer_object: yes
<science400> GL_EXT_framebuffer_object: yes
<science400> GL_EXT_packed_depth_stencil: yes
<science400> Fontconfig error: Cannot load default config file: No such file: (null)
<InPhase> science400: Can you verify that the last stable release runs for you?
<InPhase> science400: Since you report this on two computers, there might be an issue with last night's nightly build under Windows.
<teepee> yeah, there's some bigger graphics changes going on, so maybe there's some fresh issue
<InPhase> Although I don't see an issue report on it yet, last night was not long ago yet. :)
<teepee> not sure about the "(old)" in WGL
<InPhase> teepee: Do we have a link to the older nightlies somewhere?
<teepee> also those "Deleted" folders look a bit odd, but it's not very likely related
<InPhase> teepee: The next logical thing to check is like one from last week.
<InPhase> Oh right, down there at the bottom.
<teepee> mayybe I should make that cleanup process a bit nicer
<InPhase> science400: Another thing to try then, is use that link teepee just gave, and grab a nightly release from a week or a month ago, and see if that fixes it. If you can figure out exactly where the line is between which it works and doesn't work, then it can probably be fixed rapidly.
<science400> The stable buiild 2021.001 seems to work. I also tested the snapshot 2024.01.14
<science400> That was the oldest Windows zip I could find unless I missed something.
<InPhase> OpenSCAD-2024.02.20-x86-64-Installer.exe Like this, and on down.
<InPhase> I bet it's a recent change, or else someone would have complained if it's affecting all Windows.
<teepee> I think J24k15 usually runs a recent windows snapshot
<J24k15> i do
<InPhase> J24k15: Can you check 02-22's official build?
<J24k15> 02-19 works
<science400> 2024.02.22 is what I spent most of my time today trying to get working
<science400> Same problem with 2024.02.20
<InPhase> My suspicion is 02-20's VBO work.
<InPhase> We just need science400 to conclude 02-19 works, or J24k15 to conclude 02-20 fails. :)
<InPhase> science400: And if so, then you can just stick with 02-19 for a few days. It probably wouldn't take long to resolve if this is the issue.
<science400> 02-19 doesn't seem to be working either. I'm guessing the problem is on my side, but I have no idea what the problem would be.
<teepee> did you reboot after installing GPU drivers?
<science400> A couple times.
<InPhase> science400: So your exact failure steps are: Create a blank Untitled.scad, then go to file, open and load that Untitled.scad, and it crashes?
<InPhase> science400: Or are there other steps?
<InPhase> science400: Are you putting something in the Untitled.scad? We need to make sure the same triggering conditions are used between systems.
guso78k has joined #openscad
<teepee> the viewport going black usually means the OpenGL context creation did fail which then probably crashes on any attempt of displaying things
<science400> Initially it would start with a splash screen with the create new file or open recent option. Trying to open any file from that would result in a crash.
<InPhase> science400: Does the problem only happen with the splash screen? Or does it also happen from file/open?
<guso78k> teepee do you believe its crashing from an assert or an nullptr ?
<J24k15> InPhase 02-22  works fine
<teepee> that should not be debug builds, so asserts should be disabled
<science400> Then I ticked the box that says don't show again and the next time it opened up a window titled Untitled.scad. That window is completely blank white. But I can click on File->Save and I saved it as a test.scad. I was able to close and reopen that file.
<science400> I then opened test.scad in a separate text editor and saved cube(10) and it immediately crashed the OpenSCAD window.
<science400> The menu bar doesn'
<science400> t even show up, but it is clickable and the preferences window can even open mostly normally.
<J24k15> When opening the windows are white for some seconds but should be filled with color and code soon after
<science400> Nope, nothing ever loads. But if I hover in the right place I get drag handles for the different sections that are supposed to be there.
<J24k15> science400 can you try to rename openscad.exe  to  openscad1.exe and then click and try again?
<teepee> oh, I remember that trick
<J24k15> I had some strange experience that windows keeps information even if the process is killed ( but reboot should also help)
<science400> That didn't seem to do anything.
<J24k15> you can try to use the command line without the gui to see if the gui is what causes the problem
<J24k15> openscad -o test.stl existing.scad
<J24k15> openscad.com
TheCoffeMaker has quit [Ping timeout: 264 seconds]
<science400> That looks like it made an stl file
<J24k15> so probably something with the gpu then
<J24k15> and display related
<science400> That seems to be it. But I'm not sure why it would be the same on my two different computers. Any suggestions on how to go about narrowing it down? Google hasn't been very helpful with this specific problem.
<guso78k> are your computers up-to-date ? did you install all the updates which microsoft offers you ?
<science400> As far as I can tell everything is updated.
science400 has quit [Quit: Connection closed]
<guso78k> can you try to view your generated STL file in online via e.g. https://www.viewstl.com/ ?
<guso78k> does this work ?
<J24k15> probably something is installed on both computers that is causing it
<guso78k> an anti-gl-bot :)
<teepee> truth... https://mastodon.social/@kplx/111982292668585236 (sorry, in german ;-)
TheCoffeMaker has joined #openscad
guso78k has quit [Quit: Client closed]
guso78k has joined #openscad
<guso78k> teepee.,  your advice for the 3mf  iterator just works for 3mf resources and objects , nothing else. i raised an issue in the 3mf consortium .
<gbruno> [github] kintel pushed 1 modifications (Renderer debug output) https://github.com/openscad/openscad/commit/6ff0042c7e4dbac4c6ac21e3f099f084cff04601
<gbruno> [github] kintel synchronize pull request #5008 (Some cleanup + better errors on shader issues) https://github.com/openscad/openscad/pull/5008
<guso78k> great move! <3
<teepee> yep, I saw the notification mail :)
<teepee> I would have thought they all implement that resource thingy, very strange API they have
<teepee> I guess it's designed after OLE which I know nothing about
<guso78k> OLE ?
<teepee> crazy windows stuff. object-linking-and-embedding? the means that made you embed excel diagrams in word documents in win3.1 (or so)
<guso78k> Yeahh ,Just windows style
<teepee> ping pca006132 - gsoc seems to be confirmed now
<guso78k> KiCad before OpenSCAD ?
<guso78k> have to learn KiCad, Too :')
<teepee> kicad is nice, and Aisler supports it natively, very useful
kintel has joined #openscad
<guso78k> yeah, my collegue use it too for pcb design.
<kintel> Windows: GL context creator: WGL (old)
<teepee> is there a new one?
<kintel> ^this is because the new WGL class isn't yet enabled as I haven't been able to test it properly
<kintel> It's fully implemented, someone just needs to be able to build under Windows and give it a spin :)
<guso78k> tried to use the converter, but my collegues did not want to provide a sample :')
<teepee> ah, it's working for other people, so it might still be as J24k15 suggested that there's some separate software messing things up, it's curious crashing on both intel and nvidia
<guso78k> (KiCad)
<teepee> of a kicad file?
<kintel> My Windows installation can still not do a hardware offscreen buffer without renaming the executable to "offscreen.exe". Very weird!
<guso78k> yeah, she only releases when she finally likes her design :')
<guso78k> wow - what does thi pcb do ?
<teepee> and it now also powers my Heng-Lamp
<teepee> which did not have any control and was waaaaaaaay too bright
<teepee> that pcb fits nicely into the base and the top side of the base got 2 touch pcbs so it now has 2 home-assistant buttons and can be dimmed :)
<guso78k> Why Do i have to enter an amazon captcha ?????
<teepee> I get that sometimes too when using links, no idea why
<guso78k> but nice idea ! XD
<teepee> I started making a fully printed case where you just need to put in the led strip, but it's far from finished
<guso78k> tried to redo the sdf of the klein bottle, but could not find anymore ;(
<guso78k> teepee keep me updated on the progress
<InPhase> guso78k: Would you use abs to make a Klein bottle, so that both sides are on the outside?
mmu_man has quit [Ping timeout: 264 seconds]
<guso78k> yes, this is the only option to display a 4d object in 3d space .
<guso78k> InPhase BTW i am  heavily working on improving offset3d but not yet finished
<InPhase> guso78k: Excellent. I hope you succeed. :)
<InPhase> guso78k: I think I previously offered to try to abuse it when you finish?
<guso78k> Inphase right now my bottleneck is doing convex decomposition towards offset. but *must* succeed
<guso78k> even manged to get a scratch in the  surface to become a real hole ! =*
<guso78k> i label it * "angry hole"
<guso78k> InPhase, do you have an sdf idea for me ?
<guso78k> InPhase yes, you did! And I believe i will pass your test!
mmu_man has joined #openscad
hisacro has quit [Ping timeout: 256 seconds]
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hisacro has joined #openscad
teepee_ has joined #openscad