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
mmu_man has quit [Ping timeout: 245 seconds]
abff has joined #openscad
mmu_man has joined #openscad
J25k65 has joined #openscad
J25k27 has quit [Ping timeout: 240 seconds]
mwette has quit [Ping timeout: 252 seconds]
mmu_man has quit [Ping timeout: 252 seconds]
mmu_man has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
mmu_man has quit [Ping timeout: 272 seconds]
L29Ah has quit [Read error: Connection timed out]
snaked has joined #openscad
snakedGT has joined #openscad
snaked has quit [Ping timeout: 248 seconds]
sculptor has quit [Ping timeout: 252 seconds]
shellhopper has quit [Quit: Leaving]
hyperair has joined #openscad
guerd has joined #openscad
stealth_ has quit [Quit: Leaving]
guso48 has joined #openscad
<guso48> hi @kintel,
<guso48> this line here can actuall cause a segfault when this->ctx is null
<guso48> OffscreenContextFactory::create can return nullptr when no renderer found
guso48 has quit [Client Quit]
guso9 has joined #openscad
<InPhase> That makes more sense. I was staring at your first link going "how??" lol
<InPhase> guso9: I think it never leaves the if above L70 with that null.
<InPhase> That's if null, maybe try something else, if still null throw.
<InPhase> Not the most maintenance-robust structure to mix extra logic with the null guard, but it seems valid as a guard as-is.
<InPhase> It'd be cleaner to write that as: if (!this->ctx && !strcmp(provider, "egl")) { ... } if (!this->ctx) { throw... } if (!this->ctx->makeCurrent()) { throw... } But it's logically equivalent, and probably compiles to the same code.
<guso9> if this->ctx evaluates to null in line60,  61-69 is not executed, but line70 performs  null->makeCurrent
guso9 has quit [Quit: Client closed]
hyperair has quit [Remote host closed the connection]
guso14 has joined #openscad
howiemnt has quit [Read error: Connection reset by peer]
howiemnt1 has joined #openscad
hyperair has joined #openscad
howiemnt1 has quit [Remote host closed the connection]
howiemnt1 has joined #openscad
fling has joined #openscad
hyperair has quit [Ping timeout: 252 seconds]
L29Ah has joined #openscad
guso14 has quit [Quit: Client closed]
mmu_man has joined #openscad
snakedGT has quit [Quit: Leaving]
mwette has joined #openscad
guso78k has joined #openscad
kintel has joined #openscad
<kintel> guso I don't understand: "if this->ctx evaluates to null in line60, 61-69 is not executed, but line70 performs null->makeCurrent"
<kintel> if this->ctx evaluates to null in line60, line 61-69 should most definitely be executed
<kintel> ..or am I experiencing pre-coffee blindness?
<kintel> InPhase Yeah, the fallback logic is more convoluted than necessary. This code started diverging from my upstream offscreen GL testing repo. Is should fix that one day I'm bored ;)
kintel has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<InPhase> kintel: You just need to share your coffee with guso78k. :) He missed processing the "!"
<guso78k> I am awake now :) yes you are correct.
<guso78k> i am hunting a segfault, i was confident, that i found it.
<guso78k> return code -11 means segfault
<InPhase> Linux?
<guso78k> he reports he tried this witgh " GNU guix package"
<InPhase> guso78k: Are you able to reproduce it on Linux, I mean?
<guso78k> i could try this next. i never tried to intentionally disable GLX ';)
<InPhase> https://bpa.st/243Q I recommend running this on crazy segfaults. It tracks the maximum resident size of openscad in a log file, ~/.openscad_mem.log If you're getting surprise out of memory errors, this will make it clear from the amount of memory reported in the log file.
<InPhase> I actually always run openscad this way, for long term record keeping, so there's no performance hit.
<InPhase> Since memory outages will show up as segfaults, it can keep you from chasing the wrong tail.
<guso78k> i believe its a static error. he repors , that all his ctests have failed
<InPhase> Ah.
<InPhase> Well that's different.
<InPhase> guso78k: Note that this can occur from as simple as a compatibility mismatch in how two things were compiled. This will happen at runtime rather than at execution start if and only if something like dlopen is used.
<InPhase> And guess what I see when I grep -r for every case of dlopen in the codebase...
<InPhase> ext/glad/gl.h and ext/glad/glx.h
<InPhase> I will be unshocked if the segfault is found to be happening on one of those two lines with handle = dopen(...)
<InPhase> (Or promptly thereafter at usage.)
<guso78k> right now i try to reproduce that now in linux, but need to compile first
<guso78k> i can reproduce the bug in my linux with main openscad when i compile with -DENABLE_GLX=0
<guso78k> any ctests which uses -o to write a png will fail
<guso78k> and
<guso78k> is is some c++ magic beyond my scope: https://bpa.st/JJKA
<guso78k> i think GLView::teardownShader is not working correctly in case an exceptin is thrown
J25k65 has quit [Quit: Client closed]
J25k65 has joined #openscad
<guso78k> the error is most likely caused in  if (edge_shader->resource.shader_program)
<guso78k> but i cannot check the content uf the UniquePtr to nullptr, compiler does not let me
sculptor has joined #openscad
<pca006132> (just add a printf)
<sculptor> printf
<InPhase> printf and fflush
<InPhase> Forgetting the fflush on a segfault hunt can lead to serious injury from subsequent face palming.
<InPhase> For cout, std::endl forces the flush as a feature, as long as one uses that instead of \n.
<sculptor> always flush
<guso78> Yes i am located the Position with printf
<guso78> I am Not at the Computer anymore
guso78k has quit [Quit: Client closed]
GNUmoon has quit [Remote host closed the connection]
GNUmoon has joined #openscad
kintel has joined #openscad
<kintel> I don't think anyone has really built with -DENABLE_GLX=0 - so it's not surprising that it might trigger an issue
guso78k has joined #openscad
<guso78k> ENABLE_GLX is likely to be off, when its not recognized during configure ?
mwette has quit [Ping timeout: 248 seconds]
kintel has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kintel has joined #openscad
<kintel> guso78 Yeah, if GLX Isn't on the system, it will be off. Probably not very common, but we should ideally support it.
<kintel> In any case, this sounds completely separate from any Python work
fling has quit [Ping timeout: 264 seconds]
mmu_man has quit [Ping timeout: 252 seconds]
mmu_man has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 264 seconds]
teepee_ is now known as teepee
guso78k has quit [Quit: Client closed]
guso78k has joined #openscad
<guso78k> My python contribution is not 100% even though it appears so O:3
mmu_man has quit [Ping timeout: 252 seconds]
stealth_ has joined #openscad
kintel has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
bitbasher has joined #openscad
sculptor has quit [Ping timeout: 245 seconds]
guso78k has quit [Quit: Client closed]
fling has joined #openscad
ccox_ has joined #openscad
ccox has quit [Ping timeout: 260 seconds]
mmu_man has joined #openscad
mmu_man has quit [Ping timeout: 252 seconds]
mmu_man has joined #openscad
ccox has joined #openscad
ccox_ has quit [Ping timeout: 260 seconds]
sculptor has joined #openscad
<gbruno> [github] gsohler pushed 1 modifications (prevent segfault when GLX cannot be initialized another attempt to support OpenSCAD) https://github.com/openscad/openscad/commit/a590abfddefa28967e992e7d5feffd84c137bc3b
<gbruno> [github] gsohler opened pull request #5928 (prevent segfault when GLX cannot be initialized) https://github.com/openscad/openscad/pull/5928
guso78k has joined #openscad
guso78k has quit [Client Quit]
<gbruno> [github] gsohler closed pull request #5928 (prevent segfault when GLX cannot be initialized) https://github.com/openscad/openscad/pull/5928
<gbruno> [github] gsohler pushed 1 modifications (prevenrt segfault Another attempt to suport OpenSCAD) https://github.com/openscad/openscad/commit/634fdfd4858effe6844fac46a2ec1eaf8b79a06e
<gbruno> [github] gsohler opened pull request #5929 (prevenrt segfault) https://github.com/openscad/openscad/pull/5929
teepee_ has joined #openscad
teepee has quit [Ping timeout: 264 seconds]
teepee_ is now known as teepee
kintel has joined #openscad
<kintel> guso78 just so I understand this: There is a crash if neither EGL or GLX is found, as the GLView destructor assumes that a shader was initialized, and your PR fixes that.
<kintel> ..but with your PR, it's expected that OpenSCAD simply exits, right? ..since with neither EGL or GLX, there is no rendering support?
kintel has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
mmu_man has quit [Ping timeout: 244 seconds]
mmu_man has joined #openscad
drkow has joined #openscad
Virindi has quit [Ping timeout: 244 seconds]
drfff has quit [Ping timeout: 268 seconds]
drfff has joined #openscad
drkow has quit [Ping timeout: 252 seconds]
drkow has joined #openscad
drfff has quit [Ping timeout: 244 seconds]
<gbruno> [github] nomike opened pull request #5930 (Fix python shebangs) https://github.com/openscad/openscad/pull/5930
dingodoppelt has quit [Remote host closed the connection]
dingodoppelt has joined #openscad
dingodoppelt has quit [Remote host closed the connection]
dingodoppelt has joined #openscad
Virindi has joined #openscad
bitbasher has quit [Ping timeout: 248 seconds]
drkow has quit [Ping timeout: 244 seconds]
<gbruno> [github] anfractuosity opened issue #5931 (Measuring tool doesn't appear to function correctly on non-primitive shapes) https://github.com/openscad/openscad/issues/5931
hyperair has joined #openscad
<gbruno> [github] anfractuosity edited issue #5931 (Measuring tool doesn't appear to function correctly on non-primitive shapes) https://github.com/openscad/openscad/issues/5931
hyperair has quit [Remote host closed the connection]
<gbruno> [github] nomike opened issue #5932 (cmake warning: Policy CMP0167 is not set: The FindBoost module is removed.) https://github.com/openscad/openscad/issues/5932
<gbruno> [github] nomike opened pull request #5933 (Fix search for HidAPI in CMake) https://github.com/openscad/openscad/pull/5933
<gbruno> [github] t-paul closed pull request #5930 (Fix python shebangs) https://github.com/openscad/openscad/pull/5930
<gbruno> [github] t-paul pushed 7 modifications (Merge pull request #5930 from nomike/fix-python-shebangs Fix python shebangs) https://github.com/openscad/openscad/commit/fd99288ad77142cc120b5fe3f00207776b7f5d25
JordanBrown2 has quit [Read error: Connection reset by peer]
Smeef has quit [Ping timeout: 276 seconds]