[jitsi-users] Jitsi always shows up on the primary monitor when it starts after machine reboot


#1

Looks like Jitsi does not save its position as regards to which monitor it was on when computer was shut down.
It does correctly start up on the same monitor and in the same position if it was closed thru the menu though.

Thank you
Alex


#2

Sounds easy to fix... making Jitsi save its window position every time
it's repositioned.

Just saying.... :slight_smile:

FC

···

On Wed, Jan 15, 2014 at 11:36 AM, Alex Malmyguine <alex_malmyguine@woodbridgegroup.com> wrote:

Looks like Jitsi does not save its position as regards to which monitor it was on when computer was shut down.
It does correctly start up on the same monitor and in the same position if it was closed thru the menu though.

Thank you
Alex

--
During times of Universal Deceit, telling the truth becomes a revolutionary act
Durante épocas de Engaño Universal, decir la verdad se convierte en un
Acto Revolucionario
- George Orwell


#3

Correct me if I'm wrong, Emil, but from the programming point of view,
isn't a multi-monitor setup just a large desktop?. In other words, two
1024x768 displays are really mapped as a single 2048x768 coordinates
space, from the API POV? (I'm thinking Windows here, maybe X is
different).

In other words, what I'm saying is that perhaps from the programming
POV things are easier as the app knows nothing about multiple
monitors, just screen coordinates, and it only needs to save those
every time the window is moved around.

But this is pure speculation on my part. I have reasons to suspect
X.org might be different in its handling of multiple monitor setups.
But surely Java, as a layer of abstraction, maps this somehow...

FC

···

On Wed, Jan 15, 2014 at 11:36 AM, Alex Malmyguine <alex_malmyguine@woodbridgegroup.com> wrote:

Looks like Jitsi does not save its position as regards to which monitor it was on when computer was shut down.

--
During times of Universal Deceit, telling the truth becomes a revolutionary act
Durante épocas de Engaño Universal, decir la verdad se convierte en un
Acto Revolucionario
- George Orwell


#4

Looks like Jitsi does not save its position as regards to which monitor it was on when computer was shut down.

Correct me if I'm wrong, Emil, but from the programming point of view,
isn't a multi-monitor setup just a large desktop?. In other words, two
1024x768 displays are really mapped as a single 2048x768 coordinates
space, from the API POV? (I'm thinking Windows here, maybe X is
different).

Yes, I believe I've only seen this on some x.org multiscreen setups. Most of the others are handling multiscreen as separate devices.

In other words, what I'm saying is that perhaps from the programming
POV things are easier as the app knows nothing about multiple
monitors, just screen coordinates, and it only needs to save those
every time the window is moved around.

But this is pure speculation on my part. I have reasons to suspect
X.org might be different in its handling of multiple monitor setups.
But surely Java, as a layer of abstraction, maps this somehow...

Right. We don't currently do anything to pick a screen to start on. Some OSes would do this themselves.

We'd be happy to take a fix and as Fernando points out, it shouldn't be that big of a deal.

Emil

···

On 15.01.14, 18:35, Fernando Cassia wrote:

On Wed, Jan 15, 2014 at 11:36 AM, Alex Malmyguine > <alex_malmyguine@woodbridgegroup.com> wrote:

--
https://jitsi.org


#5

Looks like Jitsi does not save its position as regards to which monitor

it

was on when computer was shut down.

Correct me if I'm wrong, Emil, but from the programming point of view,
isn't a multi-monitor setup just a large desktop?. In other words, two
1024x768 displays are really mapped as a single 2048x768 coordinates
space, from the API POV? (I'm thinking Windows here, maybe X is
different).

Yes, I believe I've only seen this on some x.org multiscreen setups.
Most of the others are handling multiscreen as separate devices.

Positioning wise, Windows also has one large screen (as in the example
above). However it is not that easy to handle: two monitors aren't
necessarily the same size nor directly beneath each other. They could be
arranged like this:

···

On 15.01.14, 18:35, Fernando Cassia wrote:

On Wed, Jan 15, 2014 at 11:36 AM, Alex Malmyguine >> <alex_malmyguine@woodbridgegroup.com> wrote:

----

M1|

--------
    >M2|
    ----

In other words, what I'm saying is that perhaps from the programming
POV things are easier as the app knows nothing about multiple
monitors, just screen coordinates, and it only needs to save those
every time the window is moved around.

But this is pure speculation on my part. I have reasons to suspect
X.org might be different in its handling of multiple monitor setups.
But surely Java, as a layer of abstraction, maps this somehow...

Right. We don't currently do anything to pick a screen to start on. Some
OSes would do this themselves.

We'd be happy to take a fix and as Fernando points out, it shouldn't be
that big of a deal.

Well, we don't choose a specific screen, but we place the window at exactly
the same position as it was when it was last closed. I just tried this on
Windows and it works fine. So I'm not quite sure why you see a different
behavior.

I spent a considerable time about two years ago when it comes to window
positioning (big external screen connected to laptop, disconnect it, Jitsi
lost). I had no issues since then...

Emil

Ingo


#6

Yep, I noticed you said this. Apparently the function to save window
coordinates is triggered upon app exit.
It would be a matter to redesign this so it saves position every time
the window is moved.

Maybe this brings some ideas to devs? (I'm shooting in the dark)

http://stackoverflow.com/questions/7950726/find-the-location-position-of-jframe-in-the-window

FC

···

On Wed, Jan 15, 2014 at 5:12 PM, Alex Malmyguine <alex_malmyguine@woodbridgegroup.com> wrote:

You closed the app, this is why. I mentioned that it only happens when the machine is rebooted and that closing and re-opening works fine.

--
During times of Universal Deceit, telling the truth becomes a revolutionary act
Durante épocas de Engaño Universal, decir la verdad se convierte en un
Acto Revolucionario
- George Orwell


#7

You closed the app, this is why. I mentioned that it only happens when the machine is rebooted and that closing and re-opening works fine.

···

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of Ingo Bauersachs
Sent: Wednesday, January 15, 2014 3:10 PM
To: 'Jitsi Users'
Subject: Re: [jitsi-users] Jitsi always shows up on the primary monitor when it starts after machine reboot

Well, we don't choose a specific screen, but we place the window at exactly the same position as it was when it was last closed. I just tried this on Windows and it works fine. So I'm not quite sure why you see a different behavior.

I spent a considerable time about two years ago when it comes to window positioning (big external screen connected to laptop, disconnect it, Jitsi lost). I had no issues since then...

Emil

Ingo

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#8

Help me understand how to build Jitsi in Netbeans. For starters, I am seeing the following errors:

jitsi\src\net\java\sip\communicator\impl\certificate\ CertificateServiceImpl.java lines 28-31:

import org.bouncycastle.asn1.*; // package org.bouncycastle.asn1 does not exist
import org.bouncycastle.asn1.x509.*; // package org.bouncycastle.asn1.x509 does not exist
import org.bouncycastle.asn1.x509.X509Extension; // package org.bouncycastle.asn1.x509 does not exist
import org.bouncycastle.x509.extension.*; // package org.bouncycastle.x509.extension does not exist

It seems that all required libraries are included with the project, so is this a version issue?
I am only seeing cryptozrtp and mathzrtp under org.bouncycastle, but neither asn1 nor x509.

There are few more errors like that but I am hoping that if anyone can explain how to tackle this one, I'll figure out the rest.

Thank you
Alex


#9

Help me understand how to build Jitsi in Netbeans. For starters, I am

seeing

the following errors:

jitsi\src\net\java\sip\communicator\impl\certificate\
CertificateServiceImpl.java lines 28-31:

import org.bouncycastle.asn1.*; // package org.bouncycastle.asn1 does
not exist import org.bouncycastle.asn1.x509.*; // package
org.bouncycastle.asn1.x509 does not exist import
org.bouncycastle.asn1.x509.X509Extension; // package
org.bouncycastle.asn1.x509 does not exist import
org.bouncycastle.x509.extension.*; // package
org.bouncycastle.x509.extension does not exist

It seems that all required libraries are included with the project, so is
this a version issue?
I am only seeing cryptozrtp and mathzrtp under org.bouncycastle, but

neither

asn1 nor x509.

There are few more errors like that but I am hoping that if anyone can
explain how to tackle this one, I'll figure out the rest.

I think none of the active developers uses Netbeans anymore, so we very
likely missed to update the classpath for Netbeans. I don't know if there's
a UI to manage the classpath entries, otherwise classpath lines in the
project.xml need to be manually adjusted. It needs to contain the same jars
as in the .classpath file (which is used by Eclipse and Idea).

Thank you
Alex

Ingo


#10

It might have to do with graceful shutdown of the app versus it being killed by impatient Windows, I guess.
Although I am not getting Win7 screen that tells me that there are apps running upon shutdown, who knows, perhaps it does kill JVM before it has a chance to write the settings.

Thank you
Alex

···

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of Fernando Cassia
Sent: Wednesday, January 15, 2014 4:33 PM
To: Jitsi Users
Subject: Re: [jitsi-users] Jitsi always shows up on the primary monitor when it starts after machine reboot

On Wed, Jan 15, 2014 at 5:12 PM, Alex Malmyguine <alex_malmyguine@woodbridgegroup.com> wrote:

You closed the app, this is why. I mentioned that it only happens when the machine is rebooted and that closing and re-opening works fine.

Yep, I noticed you said this. Apparently the function to save window coordinates is triggered upon app exit.
It would be a matter to redesign this so it saves position every time the window is moved.

Maybe this brings some ideas to devs? (I'm shooting in the dark)

http://stackoverflow.com/questions/7950726/find-the-location-position-of-jframe-in-the-window

FC

--
During times of Universal Deceit, telling the truth becomes a revolutionary act Durante épocas de Engaño Universal, decir la verdad se convierte en un Acto Revolucionario
- George Orwell

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#11

How do you open this project in Eclipse? For the life of me I cannot figure out how to open a project, any project.
(This is why I was never using Eclipse in the 1st place - it's too counter-intuitive.)

···

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of Ingo Bauersachs
Sent: Wednesday, January 15, 2014 3:34 PM
To: 'Jitsi Users'
Subject: Re: [jitsi-users] Jitsi always shows up on the primary monitor when it starts after machine reboot

Help me understand how to build Jitsi in Netbeans. For starters, I am

seeing

the following errors:

jitsi\src\net\java\sip\communicator\impl\certificate\
CertificateServiceImpl.java lines 28-31:

import org.bouncycastle.asn1.*; // package org.bouncycastle.asn1 does
not exist import org.bouncycastle.asn1.x509.*; // package
org.bouncycastle.asn1.x509 does not exist import
org.bouncycastle.asn1.x509.X509Extension; // package
org.bouncycastle.asn1.x509 does not exist import
org.bouncycastle.x509.extension.*; // package
org.bouncycastle.x509.extension does not exist

It seems that all required libraries are included with the project, so
is this a version issue?
I am only seeing cryptozrtp and mathzrtp under org.bouncycastle, but

neither

asn1 nor x509.

There are few more errors like that but I am hoping that if anyone can
explain how to tackle this one, I'll figure out the rest.

I think none of the active developers uses Netbeans anymore, so we very likely missed to update the classpath for Netbeans. I don't know if there's a UI to manage the classpath entries, otherwise classpath lines in the project.xml need to be manually adjusted. It needs to contain the same jars as in the .classpath file (which is used by Eclipse and Idea).

Thank you
Alex

Ingo

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#12

How do you open this project in Eclipse? For the life of me I cannot
figure out how to open a project, any project. (This is why I was never
using Eclipse in the 1st place - it's too counter- intuitive.)

https://jitsi.org/Documentation/ConfigureEclipseNew

It's a bit outdated though. You don't actually need Eclipse, just copy the
jar names referenced in the .classpath file to the nbproject/project.xml
(near the end of the file).

Note thought that I tried to reproduce your issue and I just can't. I've
logged off and rebooted several times and Jitsi always opened where it last
was.

Ingo


#13

It might have to do with graceful shutdown of the app versus it being killed
by impatient Windows, I guess.
Although I am not getting Win7 screen that tells me that there are apps
running upon shutdown, who knows, perhaps it does kill JVM before it has a
chance to write the settings.

No matter what I try to do (killing by Windows, stopping the JVM from Eclipse, graceful shutdown), it always opens back where it was. I have an idea though: If you run the nightly, can you try to use the database config? Just create an empty file named .usedatabaseconfig in the configuration directory.
If that solves it, then we have a problem with the configuration service.

Thank you
Alex

Ingo


#14

Try to reposition Jitsi to some other position (different from the
starting one) then kill it :slight_smile:

FC

···

On Wed, Jan 15, 2014 at 6:30 PM, Ingo Bauersachs <ingo@jitsi.org> wrote:

Note thought that I tried to reproduce your issue and I just can't. I've
logged off and rebooted several times and Jitsi always opened where it last
was.


#15

Thanks!
I'll keep an eye on it in the next few days. I shut down the laptop every time I go home so there will be test case tomorrow morning.

···

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of Ingo Bauersachs
Sent: Wednesday, January 15, 2014 4:31 PM
To: 'Jitsi Users'
Subject: Re: [jitsi-users] Jitsi always shows up on the primary monitor when it starts after machine reboot

How do you open this project in Eclipse? For the life of me I cannot
figure out how to open a project, any project. (This is why I was
never using Eclipse in the 1st place - it's too counter- intuitive.)

https://jitsi.org/Documentation/ConfigureEclipseNew

It's a bit outdated though. You don't actually need Eclipse, just copy the jar names referenced in the .classpath file to the nbproject/project.xml (near the end of the file).

Note thought that I tried to reproduce your issue and I just can't. I've logged off and rebooted several times and Jitsi always opened where it last was.

Ingo

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users


#16

Not running nightly. Are your monitors the same size? This is not the case with my laptop.

[cid:image001.png@01CF1212.07DCB5D0]

···

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of Ingo Bauersachs
Sent: Wednesday, January 15, 2014 4:43 PM
To: 'Jitsi Users'
Subject: Re: [jitsi-users] Jitsi always shows up on the primary monitor when it starts after machine reboot

It might have to do with graceful shutdown of the app versus it being

killed by impatient Windows, I guess.

Although I am not getting Win7 screen that tells me that there are

apps running upon shutdown, who knows, perhaps it does kill JVM before

it has a chance to write the settings.

No matter what I try to do (killing by Windows, stopping the JVM from Eclipse, graceful shutdown), it always opens back where it was. I have an idea though: If you run the nightly, can you try to use the database config? Just create an empty file named .usedatabaseconfig in the configuration directory.

If that solves it, then we have a problem with the configuration service.

Thank you

Alex

Ingo

_______________________________________________

users mailing list

users@jitsi.org<mailto:users@jitsi.org>

Unsubscribe instructions and other list options:

http://lists.jitsi.org/mailman/listinfo/users


#17

Not running nightly. Are your monitors the same size? This is not the case
with my laptop.

The external monitors are the same size, but even enabling the laptop screen
(which is different) and now having three monitors makes no difference.

Ingo


#18

Looks like I can simply check out from SVN in Eclipse and it will open project.

One question: it errors on Base64 stating ambiguous type in a number of files.

What am I missing?

[cid:image001.png@01CF12A4.2CE6E660]

···

-----Original Message-----
From: users-bounces@jitsi.org [mailto:users-bounces@jitsi.org] On Behalf Of Ingo Bauersachs
Sent: Wednesday, January 15, 2014 4:31 PM
To: 'Jitsi Users'
Subject: Re: [jitsi-users] Jitsi always shows up on the primary monitor when it starts after machine reboot

How do you open this project in Eclipse? For the life of me I cannot

figure out how to open a project, any project. (This is why I was

never using Eclipse in the 1st place - it's too counter- intuitive.)

https://jitsi.org/Documentation/ConfigureEclipseNew

It's a bit outdated though. You don't actually need Eclipse, just copy the jar names referenced in the .classpath file to the nbproject/project.xml (near the end of the file).

Note thought that I tried to reproduce your issue and I just can't. I've logged off and rebooted several times and Jitsi always opened where it last was.

Ingo

_______________________________________________

users mailing list

users@jitsi.org<mailto:users@jitsi.org>

Unsubscribe instructions and other list options:

http://lists.jitsi.org/mailman/listinfo/users


#19

On Linux, jitsi does not save the current position when it receives
a SIGTERM or a SIGKILL. Both cases behave identically and it starts a
the old window position.

jitsi-nightly-20140112

In case that matters (which I doubt), this is actually two screens,
which through xrandr looks like a single area of 2390 x 768.

···

On Wed, 15 Jan 2014 23:48:56 +0100 "Ingo Bauersachs" <ingo@jitsi.org> wrote:

> Not running nightly. Are your monitors the same size? This is not
> the case with my laptop.

The external monitors are the same size, but even enabling the laptop
screen (which is different) and now having three monitors makes no
difference.

Ingo

_______________________________________________
users mailing list
users@jitsi.org
Unsubscribe instructions and other list options:
http://lists.jitsi.org/mailman/listinfo/users

--
JID: murks@jit.si


#20

Apparently you are using a Java 8 Early Access prerelease.

Jitsi's source code uses wildcard imports (eg 'import java.util.*'),
and Java8 added a class named Base64 to the java.util package. You
will not encounter this error if you use Java7.

-Derrick

···

On Thu, Jan 16, 2014 at 03:17:36PM +0000, Alex Malmyguine wrote:

Looks like I can simply check out from SVN in Eclipse and it will open project.

One question: it errors on Base64 stating ambiguous type in a number of files.

What am I missing?