Watchface Designer

Dec 30, 2017 0:26:59 GMT 1 moviking said:
Understood,

and if you ever need any osx beta help, feel free to give me a shout.


I don’t think I corrected whatever was causing trouble on mac os X on v0.9.3. But now, if you try the new version, it will (I hope) show a generic error message when the dialog doesn’t show and generate a log file (on the same folder of the WFD). If this happens, please send me the log file so I can see what’s going on…

Dec 24, 2017 1:42:35 GMT 1 tcc said:
Hi everybody!

Suggestion: I think it would be cool if TICKS layer style option had the capability to load images, not only dots and ticks. Then the controls would be height, width and scale, like in IMAGE layer. I’ve made ticks putting images manually in their places, but it’s a little bit annoying doing it this way.

If it could be possible directly in TICKS layer it would be great!.

Thanks.


Done. The size of the image is still controlled by the inner radius and outer radius. At least for now. If you find that it is difficult to control, then I will (eventually) change them to radius and scale… With the inner/outer radius, you can calculate the height of the image, so you have “pixel level” control.

Enjoy it

Dec 24, 2017 1:55:43 GMT 1 tcc said:
Hi again!

Bug: Sometimes when I save my job and try to quit WFD, it asks me repeatedly if I want to save my changes, even when I already answered yes. In these occations, the .xml proyect file has been incorrectly saved and not load anymore.

When this happens, I have to open .xml with a text editor and delete the last element tag and close the main tag proyect in order to work again. This usually works, altough I lost some of my last changes.

It would be fantastic if this was fixed.

Thanks again for this great soft.



I believe this is corrected as well. However, if something happens that I didn’t foresee, a log will be generated. Send it to me and I’ll check out what’s happening.

Dec 27, 2017 16:18:33 GMT 1 dud said:
When making high resolution face (eg. 800x800), after saving and loading it later, things get hectic. It loads only few objects, right side list starts falling apart, and everything becomes barely responsive. Other than that, this is a nice piece of software.

When working with higher resolutions the memory and cpu required increases a lotg. 800x800 is 4 times more  memory and cpu required then 400x400. Anyway,  with the changed multi-threading algorithm, I believe it will work correctly now. But I didn't had a lot of time to test so anything can happen. (Murphy's law: if anything bad can happen, it WILL happen!)

Try it and say something

Dec 30, 2017 22:15:42 GMT 1 mpmf said:
Dec 24, 2017 1:42:35 GMT 1 tcc said:
Hi everybody!

Suggestion: I think it would be cool if TICKS layer style option had the capability to load images, not only dots and ticks. Then the controls would be height, width and scale, like in IMAGE layer. I’ve made ticks putting images manually in their places, but it’s a little bit annoying doing it this way.

If it could be possible directly in TICKS layer it would be great!.

Thanks.


Done. The size of the image is still controlled by the inner radius and outer radius. At least for now. If you find that it is difficult to control, then I will (eventually) change them to radius and scale… With the inner/outer radius, you can calculate the height of the image, so you have “pixel level” control.

Enjoy it


Wow! It seems that Santa left me an unexpected gift!   I’ve made a fast test and it looks good. We’ll see in a real implementation. Thanks Master!

Dec 30, 2017 22:16:44 GMT 1 mpmf said:
Dec 24, 2017 1:55:43 GMT 1 tcc said:
Hi again!

Bug: Sometimes when I save my job and try to quit WFD, it asks me repeatedly if I want to save my changes, even when I already answered yes. In these occations, the .xml proyect file has been incorrectly saved and not load anymore.

When this happens, I have to open .xml with a text editor and delete the last element tag and close the main tag proyect in order to work again. This usually works, altough I lost some of my last changes.

It would be fantastic if this was fixed.

Thanks again for this great soft.


I believe this is corrected as well. However, if something happens that I didn’t foresee, a log will be generated. Send it to me and I’ll check out what’s happening.

Where can be found the log file?, project folder?, WFD folder?.

Nov 25, 2017 20:25:36 GMT 1 tcc said:
Hi again!

Another suggestion. I think it would be very useful to add a couple of buttons to expand / colapse layers tree, mainly in complex projects.

Thanks in advance.


Master, don’t forget to take this into account when your list of changes (and your time) let you do it. Thanks a lot!

And of course! Thanks for bring back again zoom buttons, I use them a lot.

Dec 31, 2017 0:06:07 GMT 1 tcc said:
Dec 30, 2017 22:16:44 GMT 1 mpmf said:
I believe this is corrected as well. However, if something happens that I didn't foresee, a log will be generated. Send it to me and I'll check out what's happening.

Where can be found the log file?, project folder?, WFD folder?.

WFD folder, or running folder if you start it from another folder. But it will only be created when an error occurs. In that case, a dialog will appear saying that an error was logged.
Dec 31, 2017 0:10:39 GMT 1 tcc said:
Nov 25, 2017 20:25:36 GMT 1 tcc said:
Hi again!

Another suggestion. I think it would be very useful to add a couple of buttons to expand / colapse layers tree, mainly in complex projects.

Thanks in advance.


Master, don’t forget to take this into account when your list of changes (and your time) let you do it. Thanks a lot!

And of course! Thanks for bring back again zoom buttons, I use them a lot.


he he. I’ll try to not forget it . Truthfully, I want to add those buttons and another one to simplify the tree. It will auto-group all the sequential static layers, making it a bit faster to render (slower on first render, faster on following renders). And there’s a lot of work to do with groups also, such as add/remove elements to/from an existing group… But I will get there… albeit rather slowly 

Tried the latest version today. I got an error, when playing around with a gif file.

  1. added a gif file

: ok
2. change the frame rate : not ok, an error occured.
See attached log file.

Dec 31, 2017 16:01:54 GMT 1 mgk said:
Tried the latest version today. I got an error, when playing around with a gif file. 1. added a gif file

: ok
2. change the frame rate : not ok, an error occured.
See attached log file.


Thanks for the log. I've found the error and corrected it. I'll publish a corrected version soon.
Dec 30, 2017 22:12:44 GMT 1 mpmf said:
Dec 30, 2017 0:26:59 GMT 1 moviking said:
Understood,

and if you ever need any osx beta help, feel free to give me a shout.


I don’t think I corrected whatever was causing trouble on mac os X on v0.9.3. But now, if you try the new version, it will (I hope) show a generic error message when the dialog doesn’t show and generate a log file (on the same folder of the WFD). If this happens, please send me the log file so I can see what’s going on…

No it didn’t fix it (but the zoom feature is great) and it seems to render a little faster when I open a project.

I found a “tinylog-1.3.2.jar” file, is that what you need ?

Jan 1, 2018 0:19:36 GMT 1 moviking said:
Dec 30, 2017 22:12:44 GMT 1 mpmf said:
I don't think I corrected whatever was causing trouble on mac os X on v0.9.3. But now, if you try the new version, it will (I hope) show a generic error message when the dialog doesn't show and generate a log file (on the same folder of the WFD). If this happens, please send me the log file so I can see what's going on...

No it didn't fix it (but the zoom feature is great) and it seems to render a little faster when I open a project.

I found a “tinylog-1.3.2.jar” file, is that what you need ?


No. The log file is a .txt file.

Did it show an error dialog? If not, then the log file was not generated.
I’ll keep trying to figure out what’s happening…

Here is an error log i got about memory issue when using animated gif and playing with scale. Needs some adjustment but looks really promising. Thanks !

UPDATE : situation is worse than that, my PC was completely blocked and i had to reboot it, check the second error trace that was repeated hundred of times (i toggle the animation preview)…

2018-01-01 12:41:44 [Thread-1] org.marcoferreira.watchfacedesigner.WatchFaceDesigner.uncaughtException()
ERROR: java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
at sun.awt.image.ImageRepresentation.createBufferedImage(Unknown Source)
at sun.awt.image.ImageRepresentation.setPixels(Unknown Source)
at java.awt.image.AreaAveragingScaleFilter.accumPixels(Unknown Source)
at java.awt.image.AreaAveragingScaleFilter.setPixels(Unknown Source)
at sun.awt.image.OffScreenImageSource.sendPixels(Unknown Source)
at sun.awt.image.OffScreenImageSource.produce(Unknown Source)
at sun.awt.image.OffScreenImageSource.addConsumer(Unknown Source)
at sun.awt.image.OffScreenImageSource.startProduction(Unknown Source)
at java.awt.image.FilteredImageSource.startProduction(Unknown Source)
at sun.awt.image.ImageRepresentation.startProduction(Unknown Source)
at sun.awt.image.ImageRepresentation.drawToBufImage(Unknown Source)
at sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
at sun.java2d.pipe.ValidatePipe.copyImage(Unknown Source)
at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
at sun.java2d.SunGraphics2D.drawImage(Unknown Source)
at org.marcoferreira.watchfacedesigner.layers.AbstractLayer.scaleImage(AbstractLayer.java:1044)
at org.marcoferreira.watchfacedesigner.layers.AbstractLayer.scaleImage(AbstractLayer.java:1033)
at org.marcoferreira.watchfacedesigner.layers.AnimatedImageLayer.createFrames(AnimatedImageLayer.java:121)
at org.marcoferreira.watchfacedesigner.layers.AnimatedImageLayer.recreateImage(AnimatedImageLayer.java:107)
at org.marcoferreira.watchfacedesigner.layers.AbstractLayer.forceRerender(AbstractLayer.java:1129)
at org.marcoferreira.watchfacedesigner.Renderer$RenderingThread.lambda$run$0(Renderer.java:95)
at org.marcoferreira.watchfacedesigner.Renderer$RenderingThread$$Lambda$22/1298710009.accept(Unknown Source)
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Unknown Source)
at java.util.LinkedList$LLSpliterator.forEachRemaining(Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(Unknown Source)
at java.util.stream.ForEachOps$ForEachTask.compute(Unknown Source)
at java.util.concurrent.CountedCompleter.exec(Unknown Source)
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.util.concurrent.ForkJoinTask.doInvoke(Unknown Source)

2018-01-01 12:53:48 [AWT-EventQueue-0] org.marcoferreira.watchfacedesigner.WatchFaceDesigner.uncaughtException()

ERROR: java.lang.ArrayIndexOutOfBoundsException: -60

at org.marcoferreira.watchfacedesigner.layers.AnimatedImageLayer.getFrame(AnimatedImageLayer.java:136)

at org.marcoferreira.watchfacedesigner.layers.AnimatedImageLayer.render(AnimatedImageLayer.java:200)
at org.marcoferreira.watchfacedesigner.WatchPanel$1.render(WatchPanel.java:120)
at org.marcoferreira.watchfacedesigner.WatchPanel.getWatchImage(WatchPanel.java:740)
at org.marcoferreira.watchfacedesigner.WatchPanel.getWatchImage(WatchPanel.java:754)
at org.marcoferreira.watchfacedesigner.WatchPanel.getWatchImage(WatchPanel.java:670)
at org.marcoferreira.watchfacedesigner.WatchPanel.paintComponent(WatchPanel.java:614)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintToOffscreen(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(Unknown Source)
at javax.swing.RepaintManager$PaintManager.paint(Unknown Source)
at javax.swing.RepaintManager.paint(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at javax.swing.RepaintManager$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
at javax.swing.RepaintManager.access$1200(Unknown Source)
at javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)

I’ve just seen this after spending ages making my first .gif face by hand, you live and learn.
Going to give it a try now. 

Jan 1, 2018 12:46:24 GMT 1 ricktop said:
Here is an error log i got about memory issue when using animated gif and playing with scale. Needs some adjustment but looks really promising. Thanks !

UPDATE : situation is worse than that, my PC was completely blocked and i had to reboot it, check the second error trace that was repeated hundred of times (i toggle the animation preview)…


This error was also reported by another user. I’ve already checked it out and it was a badly placed parenthesis, resulting obviously in bad calculations. I’ve already fixed it and will publish the fixed version soon. The out of memory error, on the other hand, was probability because while changing the scale you made the image too big? I have to handle it more graciously, but that will take some time…

Hi i am still running the older version it works for me :slight_smile: Is it possible to create this Kind of discs in WFD? And can i let the year disc rotate once a year? Thanks and Greets!
I want to make this in WFD ist possible? www.ebay.co.uk/itm/Omega-1310-watch-part-set-of-used-day-date-disc-in-fine-condition-/131546954749
As i mentioned on g+ with the new version i tried to open a saved face and got an error, sorry cant upload log cause i am writing from a tablet. Greets Jürgen Oberst.

Excellent job… Thanks for sharing…

Will this also run on this for Win 10 1709…

www.oracle.com/technetwork/java/javase/downloads/jdk9-downloads-3848520.html

oz

EDIT:  Well looks like it didn’t… for me anyway.

I uninstalled it and installed Java 8.0.151

java.com/en/download/win10.jsp

I rebooted but when I click on java.exe in the /bin/ folder, I get a very very quick flash on screen and then nothing.

It is the same when i click on the WatchFaceDesigner.jar file.

How do I get the designer on screen please?

oz

EDIT 2

This is what I have in cmd run box
C:\Users\webma\Downloads\WATCH>java -version
java version “1.8.0_151”
Java™ SE Runtime Environment (build 1.8.0_151-b12)
Java HotSpot™ Client VM (build 25.151-b12, mixed mode, sharing)

This is also what is in the dos box 
C:\Users\webma\Downloads\WATCH>java -jar watchfacedesigner.jar
Error: Unable to access jarfile watchfacedesigner.jar

Okay all okay now.

Found this program, ran it and now I get the designer. Took all day but still, better late than never, they say :slight_smile:

johann.loefflmann.net/en/software/jarfix/index.html#Download

Now to see how we go with the designer.

oz

Jan 4, 2018 7:59:09 GMT 1 ozstar said:
Okay all okay now.

Found this program, ran it and now I get the designer. Took all day but still, better late than never, they say :slight_smile:

johann.loefflmann.net/en/software/jarfix/index.html#Download

Now to see how we go with the designer.

oz


great that you've managed to run it. Sorry I didn't see your posts before. I haven't tested WatchFaceDesigner with Java 9 (heck, I haven't even tested Java 9 yet), so I don't know if it works with it... Anyway, I have a surprise to you: my next post will be the next WatchFace Designer, so, just copy the new version over the older one and everything should still work... even better, because I've corrected some bugs