... the user friendly GPS tool


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
RouteConverter "Hangs"
#11
(25.02.2016, 10:12)Papy Wrote: As you can see, and what I understand, the problem is the routine calling the different maps is "by-passed"  Sad

I don't understand what you're trying to say to me.
--
Christian
Reply
#12
(25.02.2016, 11:35)routeconverter Wrote:
(25.02.2016, 10:12)Papy Wrote: As you can see, and what I understand, the problem is the routine calling the different maps is "by-passed"  Sad

I don't understand what you're trying to say to me.

What I meant was:
-  when you have a look on the reports from the "invited user" and "private user" modes, under "private user", you don't have such a routine like this :

févr. 25, 2016 6:25:53 AM slash.navigation.converter.gui.mapview.JavaFX7WebViewMapView$4 run

INFOS: Using JavaFX WebView to create map view

févr. 25, 2016 6:25:53 AM slash.common.io.Externalization extractFile

INFOS: Extracting slash/navigation/converter/gui/mapview/routeconverter.html to /var/folders/zz/zyxvpxvq6csfxvn_n00000s4000069/T/routeconverter-Guest/routeconverter_fr.html


and this:

févr. 25, 2016 6:25:53 AM slash.navigation.converter.gui.mapview.JavaFX7WebViewMapView$3 changed

INFOS: WebView changed observableValue ReadOnlyObjectProperty [bean: javafx.scene.web.WebEngine$LoadWorker@e412721, name: state, value: SCHEDULED] oldState READY newState SCHEDULED thread Thread[JavaFX Application Thread,5,system]

févr. 25, 2016 6:25:53 AM slash.navigation.converter.gui.mapview.JavaFX7WebViewMapView$3 changed

INFOS: WebView changed observableValue ReadOnlyObjectProperty [bean: javafx.scene.web.WebEngine$LoadWorker@e412721, name: state, value: RUNNING] oldState SCHEDULED newState RUNNING thread Thread[JavaFX Application Thread,5,system]
Reply
#13
Hello all,

I've a pretty good news to announce. I've found where the problem was.
I hope my explanation will be the clearest possible.

Today, I had my Mac connected to my TV. And for fun, I made RC start.
Surprisingly, it had started perfectly.
But I noticed something different.
The size of the RC Java frame. It was smaller than the overall resolution of the screen.
I remember once to have it opened in full size (1920x1080) on my TV screen.

So I made a test by changing the TV resolution. I've downsized it from FullHD to 720p.
I made RC start... hangs.
Mmmmmh...
I put the TV resolution back to 1920x1080 and it starts.
Mmmmmh...

The test was the following:
What I did was opening an *.itn file.
Changing the size of RC Java frame to a smaller one (for instance 720x584 approximately, bottom right of the frame and changing the frame size).
Exiting RC with changes made saved.

I disconnected the TV and now work on the laptop screen (with a resolution of 1440x900).
Re-start RC... and it works!!!

I had a look on the error report and saw this:
INFOS: Screen size is java.awt.Rectangle[x=0,y=0,width=1440,height=900], insets are java.awt.Insets[top=23,left=40,bottom=0,right=0]
*definition of your screen size*


mars 05, 2016 7:33:59 PM slash.navigation.gui.SingleFrameApplication openFrame
INFOS: Frame size is java.awt.Dimension[width=720,height=584]
mars 05, 2016 7:33:59 PM slash.navigation.gui.SingleFrameApplication openFrame

*definition of the RC Frame size*

So, the trouble is : if you have Frame width > Screen width or Frame height > Screen height ...
RC hangs.
Otherwise, RC doesn't.

So the conclusion is : if you connect your laptop to a screen which has an higher screen definition, be careful!
You have to keep in mind to resize it to a smaller frame after having worked on your external screen and that suits to your lapton screen definition.
Reply
#14
(05.03.2016, 19:47)Papy Wrote: I've a pretty good news to announce. I've found where the problem was.

Interesting observation.

(05.03.2016, 19:47)Papy Wrote: I had a look on the error report and saw this:
INFOS: Screen size is java.awt.Rectangle[x=0,y=0,width=1440,height=900], insets are java.awt.Insets[top=23,left=40,bottom=0,right=0]
*definition of your screen size*


mars 05, 2016 7:33:59 PM slash.navigation.gui.SingleFrameApplication openFrame
INFOS: Frame size is java.awt.Dimension[width=720,height=584]
mars 05, 2016 7:33:59 PM slash.navigation.gui.SingleFrameApplication openFrame

*definition of the RC Frame size*

So, the trouble is : if you have Frame width > Screen width or Frame height > Screen height ...
RC hangs.

Did you get the > sign right? Because for the example above the Screen is larger than the Frame,

(05.03.2016, 19:47)Papy Wrote: So the conclusion is : if you connect your laptop to a screen which has an higher screen definition, be careful!
You have to keep in mind to resize it to a smaller frame after having worked on your external screen and that suits to your lapton screen definition.

Actually I have code running inside of RouteConverter which should help with this. But it doesn't seem to work.

Let's clarify the > < question above first and then continue.
--
Christian
Reply
#15
Figures will help, I think, instead of signs.

If you have :
Frame [width=720,height=584] and Screen [width=1440,height=900], it's OK, RC will start.

If you have :
Frame [width=1500,height=930] and Screen [width=1440,height=900], RC won't start.
Reply
#16
That is strange. I've integrated a lot of logic inside of RouteConverter to make sure, it comes up on the last used screen and with the last used position and size. And some more logic to cover the case when the screen or the screen size changes. Under Windows this looks different. When I manipulate to code to always return 4000x2000 pixels of frame size, it does the right thing and crops correctly:

Screen size is java.awt.Rectangle[x=0,y=0,width=1366,height=768], insets are java.awt.Insets[top=0,left=0,bottom=40,right=0]

Frame size is java.awt.Dimension[width=1366,height=728]

I've just uploaded a new RouteConverter prerelease that tries to open the frame with 4000x2000 pixels regardless of the preferences. Please download it and start it - and send me the log. I'm interested in the log lines

INFORMATION: Screen size is java.awt.Rectangle[x=0,y=0,width=1366,height=768], insets are java.awt.Insets[top=0,left=0,bottom=40,right=0]
INFORMATION: Frame size is java.awt.Dimension[width=1366,height=728]
INFORMATION: Frame location is java.awt.Point[x=0,y=0]
INFORMATION: Frame state is 0
--
Christian
Reply
#17
Hello Christian,

Just downloaded the prerelease version, and it worked.
Here are the lines I was given:

INFOS: Processing initial arguments: []
mars 13, 2016 8:48:22 PM slash.navigation.gui.SingleFrameApplication openFrame
INFOS: Screen size is java.awt.Rectangle[x=0,y=0,width=1440,height=900], insets are java.awt.Insets[top=23,left=40,bottom=0,right=0]
mars 13, 2016 8:48:22 PM slash.navigation.gui.SingleFrameApplication openFrame
INFOS: Frame size is java.awt.Dimension[width=1400,height=877]
mars 13, 2016 8:48:22 PM slash.navigation.gui.SingleFrameApplication openFrame
INFOS: Frame location is java.awt.Point[x=80,y=46]
mars 13, 2016 8:48:22 PM slash.navigation.gui.SingleFrameApplication openFrame
INFOS: Frame state is 0

As attached, the complete log file while opening RC.


Attached Files
.doc   RC Open Log File Snapshot 653.doc (Size: 59 KB / Downloads: 644)
Reply
#18
(13.03.2016, 20:57)Papy Wrote: mars 13, 2016 8:48:22 PM slash.navigation.gui.SingleFrameApplication openFrame
INFOS: Screen size is java.awt.Rectangle[x=0,y=0,width=1440,height=900], insets are java.awt.Insets[top=23,left=40,bottom=0,right=0]
mars 13, 2016 8:48:22 PM slash.navigation.gui.SingleFrameApplication openFrame
INFOS: Frame size is java.awt.Dimension[width=1400,height=877]
mars 13, 2016 8:48:22 PM slash.navigation.gui.SingleFrameApplication openFrame
INFOS: Frame location is java.awt.Point[x=80,y=46]
mars 13, 2016 8:48:22 PM slash.navigation.gui.SingleFrameApplication openFrame
INFOS: Frame state is 0

What is funny is that frame location + frame size is larger than screen size and it still works. There must be something else that is different when you change the display and RouteConverter hangs.
--
Christian
Reply
#19
Hello Christian,

Since then, no more troubles has occured.
BTW, thanks for having taken some time to look at this trouble.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)