Git Product home page Git Product logo

Comments (15)

ladar avatar ladar commented on August 20, 2024 1

I think my changes to the build.lib script fixed the issue, then I broke it again, and then fixed it again. Since I finally had a little bit of time, I decided to test the vagrant boxes I setup. They are barren CentOS 6 machines, like your docker container, and I was able to access the register page and see the captcha when loaded off the vagrant box (for what its worth, I tested it using the virtualbox provider). See the screenshot below. If the error pops up again, let me know.

screenshot from 2016-06-07 01-38-30

from magma.

ladar avatar ladar commented on August 20, 2024

Will take a look. What font are you using? Have you tried different fonts? If a recall magma randomly selects a font in the dir for the captcha.

from magma.

ba0f3 avatar ba0f3 commented on August 20, 2024

I'm using default config

from magma.

ladar avatar ladar commented on August 20, 2024

Looks like you're right. I checked my repo from 3 years ago, before I handed off the code, and magmad.so included freetype. About to go see what happened, and then add it back...

from magma.

ladar avatar ladar commented on August 20, 2024

I think I found the problem. I have freetype installed inside my dev vm, so freetype gets configured. You probably don't, and you should have to. I've updated the build script to look in the bundled freetype directory. I'm testing the changes now, before pushing.

from magma.

ladar avatar ladar commented on August 20, 2024

Run:

build.lib all
build.magma
magma.run

Try the CAPTCHA and report back. Note the above assumes you've already run linkup.sh, and ~/bin is part of your path.

from magma.

ladar avatar ladar commented on August 20, 2024

Any commit after 6de1ae7 should work. The 298aa86 commit will run faster, as the dep checks are run in parallel once again.

from magma.

ba0f3 avatar ba0f3 commented on August 20, 2024

Catpcha still not rendered yet, same error message as above

from magma.

ladar avatar ladar commented on August 20, 2024

There may have been a problem with the build order. I just pushed a second attempt. Also, are you generating the error by visiting http://localhost:10000/register ? Screenshot of what I see is attached. As you can tell, I'm seeing the CAPTCHA. I ask because there may be another registration endpoint, or piece that's using the CAPTCHA. I haven't looked.

If you type:
build.lib gd-log | grep "Support for Freetype"

You should see:

   Support for Freetype 2.x library: yes
   Support for Freetype 2.x library: yes

You can also double check, things are current by launching magma. Look for Freetype 2.6.3 and libpng 1.6.22. Both libs were updated today.

screenshot

from magma.

ba0f3 avatar ba0f3 commented on August 20, 2024

yes the uri is /register, magma startup message show correct libs' version. but captcha still not rendered.

I removed the build folder after it built (using docker), will try again later to see build log

from magma.

ladar avatar ladar commented on August 20, 2024

If you want to test for a fix the quick way, you could try:

build.lib freetype
build.lib gd

And then grep the log file. Odds are gd will complain that jpeg and png libs are unavailable, so it might not compile, but it should get through the configure, and show that it found freetype.

from magma.

ladar avatar ladar commented on August 20, 2024

If your in an even bigger hurry you specify the steps for each manually as well:

build.lib gd-extract
build.lib gd-prep
build.lib gd-build

Then you can skip the "check" stage for the libs. You could also do that for all libs like so:

build.lib extract
build.lib prep
build.lib build
build.lib combine

from magma.

ba0f3 avatar ba0f3 commented on August 20, 2024

it working now, strange

from magma.

brokep avatar brokep commented on August 20, 2024

The correct captcha value will be in the magmad log file

from magma.

ladar avatar ladar commented on August 20, 2024

I think I fixed this already. If you run git pull && make distclean && make the graphics library should get compiled correctly, and the CAPTCHA should work. The distclean is needed to force a rebuild of magmad.so.

from magma.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.