GithubHelp home page GithubHelp logo

Comments (29)

felixhageloh avatar felixhageloh commented on August 14, 2024

I see ... can you show the code your are using? Both, the positioning and updating the background when changing workspaces should work fine. Also check the debug console for errors, which might give some extra clues

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

I use a widget to just the the background blur, with no content. It relies heavily on your example. The full code is:

command: ""

refreshFrequency: 10000

style: """
  z-index: -2
  bottom: 0px
  left: 50%
  width: 1440px
  height: 210px
  margin-left: -(@width / 2)
  overflow: hidden
  background: rgba(#333, 0.2)

  .content
    border-radius: 9px
    background: rgba(#333, 0.0)
    color: #152033

  bg-blur = 5px

  .bg-slice
    position: absolute
    top: -(bg-blur)
    left: 0
    width: 100% 
    height: 100% + 2*bg-blur
    -webkit-filter: blur(bg-blur)

"""

render: (output) -> """
  <canvas class='bg-slice'></canvas>
  <div class='content'>#{output}</div>
"""

afterRender: (domEl) ->
  uebersicht.makeBgSlice(el) for el in $(domEl).find '.bg-slice'

The position was off because I had put in the wrong number for the width, 1540 instead of 1440...
In the debug console I don't get any error, as can be seen in the attached picture.

schermata 2014-09-10 alle 16 49 02

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

ok, thanks for the info. One other question: Are you on 0.3 (update was released yesterday) already?

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

Yes, but I saw the same behavior on the 0.2 edge version you provided for issue #42

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

I see - hard to tell what is going on. Does it update when you change the wallpaper?
Also can you open the system console (Console app) and search for 'sicht' and post a screenshot here? Thanks!

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

your setup looks nice btw!

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

I have the wallpaper set to change every 15 minutes, and the blurred widgets updates itself in one or, at most, two seconds.
The system console logs are:

schermata 2014-09-10 alle 17 08 50

where the only error I can see is

10/09/14 17:08:27,379 gkbisd[586]: Unable to collect cdhash for /Applications/Übersicht.app (error code 100024)

One other data point is that sometimes, rarely, I see "ghosting" from the previous blurred pictures into the new one. It's hard to describe, but the next time it happens I'll be sure to capture it. If I tell Übersicht to "Refresh All Widgets", it immediately goes away.

And, thanks for the compliment!

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

The error you are getting seems to be this https://discussions.apple.com/thread/6433525, but I doubt it is related.
I tried your setup (wallpaper changing every 15min and different workspaces) but it wall seems to work fine here. So to find out what might be going on I made a build of Übersicht here with extra debugging information. So maybe you can run that one, switch workspaces a few times and a post the output of the Console app again? You should see messages, like "workspace changed"

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

Tried that, the console output doesn't show any additional information other than the "workspace changed" ones:

schermata 2014-09-10 alle 17 38 33

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

no worries it already gives me an idea what might be going on :)

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

Ok. I also had the other issue with the ghosting.

schermata 2014-09-10 alle 17 45 27

As you can see, the blurred image follows the shape of the background picture (see the space between the trees in the center), but has a definite orange tint, and you can also see the shapes that were present in the previous picture, for example immediately to the left of the calendar. And those are not in the current picture...

Should I open a new issue for that, or is it OK to continue posting here?

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

strange! Its ok, no need to start a new issue for that.

So i've updated the link with a new build. You can try that and see if it fixes the issue of switching workspaces

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

The new build solves the spaces issue.
In my limited testing so far, I couldn't see the ghosting issue either.
If it ever presents itself again, I'll reopen the issue with further details.

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

Ok, it happened again. So maybe it's not so rare after all...

schermata 2014-09-11 alle 18 26 27

The current picture has an almost uniform blue background, whereas the previous one had light and dark stripes as can be seen immediately on the left of the calendar. I don't see any error either in the debug console or in the system console.

Is there any additional test I can make to help in debugging this?

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

Hmm, it almost looks like a bug with the canvas element. I'll try to clear the canvas before rendering a new wallpaper slice and see if that helps. I'll be quite busy today, but I might have a new build for you this weekend!

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

You can use the previous link to download a new build. I am now explicitly clearing the canvas every time, which will make it a bit more resource intensive but maybe it fixes this issue!

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

With the latex build I can't see any blur. Obviously the widget is the same as before.
The debug console shows an error:

TypeError: 'undefined' is not a function (evaluating 'canvas.clearRect(0, 0, canvas.width, canvas.height)')

schermata 2014-09-13 alle 12 57 44

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

my bad, should have tested it before :). Fixed and updated the build

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

Nope, sorry. Same behavior. I think the build is the old one, since on the Dropbox page it says "2 h ago".
For the record, the version in the About window is Version 0.3 (10).

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

sorry try again ... dropbox wasn't done syncing when I closed my laptop

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

Seems to be solved now. I haven't seen any issue, even when setting the desktop picture to change every minute (I usually have it change every 15 minutes, it was just to speed up the testing).

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

Sorry, I spoke too soon. I still see the ghosting effect. Still no error in the debug console.

schermata 2014-09-13 alle 15 00 11

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

sorry for the late response - I will see if I can reproduce this and probably file a bug with apple!

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

In case you updated to Yosemite, can you check if this still happens there?

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

Sorry, not updated yet. I plan to do it during next week. As soon as I do, I'll notify you about they issue.

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

Updated to Yosemite and the latest version of Übersicht, but still seeing the issue.
I see a lot of errors of the type:

Failed to load resource: the server responded with a status of 500 (Internal Server Error)  http://127.0.0.1:41416/widgets/cpu-widget-index-coffee    
cpu-widget-index-coffee: sar: drivepath sync code error -4
redraw main.js:473
(anonymous function) main.js:518
j jquery.js:2:26946
fireWith jquery.js:2:27755
x jquery.js:4:10548
(anonymous function) jquery.js:4:14161

Not sure those are relevant, though. After relaunching Übersicht, no more error are present, but the issue is still present intermittently.

from uebersicht.

felixhageloh avatar felixhageloh commented on August 14, 2024

Thanks for the update. Is one of your widgets using the sar command, because it looks like that's where the error is coming from.

I am still not sure about the glitch with the wallpapers. Is the element you are rendering the wallpaper in very transparent? In that case it could be that it is just showing the previous wallpaper instead of the current one

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

I am in fact using sar to get the cpu load, but the relevant widget still seems to work ok, even with the error, that shows up again after a while.

As for the wallpapers, I use an alpha of 0.2, so you may be on to something. The widget code is the same I already posted on September the 10th, if you need to check it. However, I actually see the current wallpaper as blurred, not the previous one.

from uebersicht.

galli-a avatar galli-a commented on August 14, 2024

Did a clean install of El Capitan, and the issue does not appear anymore.

from uebersicht.

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.