Giter Site home page Giter Site logo

Comments (8)

ccoupe avatar ccoupe commented on September 2, 2024

The Shoes manual says nothing about the blur and some other transforms.

from shoes3.

IanTrudel avatar IanTrudel commented on September 2, 2024

Could not duplicate the issue on Windows 8.1, 64 bit, Shoes 3.2.19. Even changing any or all blur to large values (over 100) do not cause Shoes to crash.

from shoes3.

IanTrudel avatar IanTrudel commented on September 2, 2024

Duplicated the issue on MacOS X 10.6.8, Shoes 3.2.19 (my own build). Also confirming changing the value of blur at line 7 from 30 to 25 prevents Shoes from crashing. Console.app provides a backtrace from Ruby.

from shoes3.

ccoupe avatar ccoupe commented on September 2, 2024

@backorder - the Shoes/Ruby for Windows is 32 bit.

from shoes3.

passenger94 avatar passenger94 commented on September 2, 2024

changing box_blur method in effects.c (adding a cast) works for me
https://github.com/Shoes3/shoes3/blob/master/shoes/effects.c#L71

      out[l2] = run[sums[0]];                        
      out[l2 + 1] = run[sums[1]];                    
      out[l2 + 2] = run[sums[2]];                    
      out[l2 + 3] = run[sums[3]]; 

to

      out[l2] = run[(int)sums[0]];                        
      out[l2 + 1] = run[(int)sums[1]];                    
      out[l2 + 2] = run[(int)sums[2]];                    
      out[l2 + 3] = run[(int)sums[3]]; 

might be related to some changes from 32bits to 64bits OS and the "value" of unsigned char ...
is casting to int the best option here ?

from shoes3.

ccoupe avatar ccoupe commented on September 2, 2024

@passenger94, that is wonderful! It works for my 64 linux. Please commit the change .

from shoes3.

IanTrudel avatar IanTrudel commented on September 2, 2024

Is this confirmed on MacOS X? If so, let's close the issue.

from shoes3.

ccoupe avatar ccoupe commented on September 2, 2024

Fixed on OSX as well.

from shoes3.

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.