MultiWiiConf_shared is broken - function copyOf(byte[], int)

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

MultiWiiConf_shared is broken - function copyOf(byte[], int)

Post by Hamburger »

GUI does not compile anymore.
The function copyOf(byte[], int) does not exist
Silently crept in with r900 some 12 hours ago by guess who.
Are we supposed to take guesswork at how to make this compile? No hint in the code nor in the commit notes, what a bummer.

Code: Select all

processing.app.debug.RunnerException: The function copyOf(byte[], int) does not exist.
   at processing.app.Sketch.placeException(Sketch.java:1543)
   at processing.app.debug.Compiler.compile(Compiler.java:149)
   at processing.app.Sketch.build(Sketch.java:1573)
   at processing.app.Sketch.build(Sketch.java:1553)
   at processing.app.Editor$DefaultRunHandler.run(Editor.java:1485)
   at java.lang.Thread.run(Thread.java:655)


Alex,
this is going a dangerous route. Please take action immediately.
Hamburger

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Tommie »

Just upgrade your >6 years old version of Java.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

Tommie wrote:Just upgrade your >6 years old version of Java.

You are not funny and clueless.
Latest java upgrade is 10 months old, nothing newer available from the vendor. But why should you care.

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Tommie »

Hamburger wrote:
Tommie wrote:Just upgrade your >6 years old version of Java.

You are not funny and clueless.
Latest java upgrade is 10 months old, nothing newer available from the vendor. But why should you care.

Don't get rude. Java 6 has been available since 2006. What kind of funny and/or clueless vendor is this?

Pyrofer
Posts: 180
Joined: Sat Apr 14, 2012 2:55 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Pyrofer »

I have to say, it compiles fine for me.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

Tommie wrote:What kind of funny and/or clueless vendor is this?

It is a company goes by the name apple.

fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by fiendie »

Hamburger wrote:
Tommie wrote:What kind of funny and/or clueless vendor is this?

It is a company goes by the name apple.

What are you talking about?

Code: Select all

fiendie@bender:~ $ uname -a && java -version
Darwin bender.local 11.4.0 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64 x86_64
java version "1.7.0_04"
Java(TM) SE Runtime Environment (build 1.7.0_04-b21)
Java HotSpot(TM) 64-Bit Server VM (build 23.0-b21, mixed mode)

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

I can do that too, but what does it matter:

Code: Select all

java version "1.5.0_30"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

Again: this is with latest java update installed, 11 months old.

User avatar
kos
Posts: 286
Joined: Thu Feb 16, 2012 4:51 am
Location: Fr

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by kos »

Java SE 7u4
This release includes the first Oracle JDK[b] release for Mac OS


http://www.oracle.com/technetwork/java/ ... index.html



edit : y a des moments ils sont lourds ces deux la .. separé les


edit 2 : http://docs.oracle.com/javase/6/docs/ap ... rrays.html , java 1.6 is now a requirement , not sure i agree to this changes, there are still some old jre (hanburger just proves that fact)

fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by fiendie »

Hamburger wrote:I can do that too, but what does it matter:

Code: Select all

java version "1.5.0_30"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_30-b03-389-9M3425)
Java HotSpot(TM) Client VM (build 1.5.0_30-161, mixed mode, sharing)

Again: this is with latest java update installed, 11 months old.

Oh right, I am very sorry.
All that matters for MultiWii development is that you are running a 10 year old version of Java!
Please don't play dumb.
So you are running Mac OS X Leopard on 32-Bit hardware? You might want to have a look here http://landonf.bikemonkey.org/static/soylatte/
But I guess you just wanted to complain again anyway.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by copterrichie »

This is just getting out of reality here. Everyone needs to step back and take a deep breath here.
Last edited by copterrichie on Mon Jun 11, 2012 6:00 pm, edited 1 time in total.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

kos wrote:Java SE 7u4
This release includes the first Oracle JDK[b] release for Mac OS


http://www.oracle.com/technetwork/java/ ... index.html

you mean like this:

Code: Select all

Your system must be running Mac OS X 10.7.3

?
edit 2 : http://docs.oracle.com/javase/6/docs/ap ... rrays.html , java 1.6 is now a requirement , not sure i agree to this changes, there are still some old jre (hanburger just proves that fact)


it is really very simple, is it not? An unneccessary incompatibility was introduced and detected. So now it is time to rewrite in compatibility mode.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

fiendie wrote:Oh right, I am very sorry.
All that matters for MultiWii development is that you are running a 10 year old version of Java!
Please don't play dumb.
So you are running Mac OS X Leopard on 32-Bit hardware? You might want to have a look here http://landonf.bikemonkey.org/static/soylatte/
But I guess you just wanted to complain again anyway.


Actually I was going to do try some coding.
Maybe I have missed the point where it is Tommie (or you) who decides on when a supported platform gets dumped?
To my knowledge the project is MultiWii or is it TommieWii (or fiendiewii) now?

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Tommie »

Hamburger wrote:it is really very simple, is it not? An unneccessary incompatibility was introduced and detected. So now it is time to rewrite in compatibility mode.

As I do not know a proper translation, I'll stick to the language we both understand: "Der Ton macht die Musik."

This (sub)thread was not started by you because you were interested in fixing a problem, but to continue with your finger pointing; of course you will deny that, but you know that this is the case, I know that this is the case, and the rest can probably deduce it as well.

Instead of playing quiz games with us ("I have an old version of Java, but I won't tell you the details I am completely aware of"), you could have written a fix yourself; copying an array is not rocket science - and to be honest, I would have written this three-liner myself if you would have reported a bug instead of sticking to rude accusations and crying for divine intervention.
Last edited by Tommie on Mon Jun 11, 2012 6:18 pm, edited 1 time in total.

User avatar
kos
Posts: 286
Joined: Thu Feb 16, 2012 4:51 am
Location: Fr

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by kos »

hamburger : so if your really think what you stat here is the good solution, then please do rollback and help yourself.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

Tommie wrote:
Hamburger wrote:it is really very simple, is it not? An unneccessary incompatibility was introduced and detected. So now it is time to rewrite in compatibility mode.

As I do not know a proper translation, I'll stick to the language we both understand: "Der Ton macht die Musik."

exactly.
This (sub)thread was not started by you because you were interested in fixing a problem, but to continue with your finger pointing; of course you will deny that, but you know that this is the case, I know that this is the case, and the rest can probably deduce it as well.

Now you have become a mindreader.
It would be a nice change if _shared was plain usable without any hassles. You have done a lot these last days to render it useless more than once.
Instead of playing quiz games with us ("I have an old version of Java, but I won't tell you the details I am completely aware of"), you could have written a fix yourself; copying an array is not rocket science - and to be honest, I would have written this three-liner myself if you would have reported a bug instead of sticking to rude accusations and crying for divine intervention.

Seeing your non-cooperative act throughout the last days leads me to question your motives.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

kos wrote:hamburger : so if your really think what you stat here is the good solution, then please do rollback and help yourself.

kos, what happened to the second part of your post now? It is suddenly gone? To answer it:
yes, everybody can say he/she tries to do some coding. On what basis do you question this my intention? You could check foryourself it would not have been my first time.

User avatar
kos
Posts: 286
Joined: Thu Feb 16, 2012 4:51 am
Location: Fr

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by kos »

yes, i remove it as I realized how out of scope my comment was.

Pyrofer
Posts: 180
Joined: Sat Apr 14, 2012 2:55 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Pyrofer »

Hamburger, It seems your desire is to keep everything just as it once was and never make progress.

YOU can easily update your OS, not so easily your hardware but are adamant that you should be able to do it all on your old obsolete system. That's fine, but don't expect to hold everybody else, and the whole project back just to suit you.

Apple are now FAMOUS for obsoleting older hardware by removing support for it to FORCE users to keep up with modern technology.

If YOU want to cling to the past I suggest you start your OWN branch and fix the code to run on it in there. The rest of us are living in 2012 and want to get the most from our modern equipment.

fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by fiendie »

Hamburger wrote:Actually I was going to do try some coding.
Maybe I have missed the point where it is Tommie (or you) who decides on when a supported platform gets dumped?
To my knowledge the project is MultiWii or is it TommieWii (or fiendiewii) now?


Why do you think the intention of that commit was to "dump a platform"?
Why don't you just report a bug or talk to the committer?
You are constantly reminding everyone of the team effort.
Yet here you are wasting everybody's time with your ridiculous personal vendetta while the rest of the world has moved on.

If you would state your objections in an earnest manner, nobody would complain.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by copterrichie »

Pyrofer wrote:Hamburger, It seems your desire is to keep everything just as it once was and never make progress.

YOU can easily update your OS, not so easily your hardware but are adamant that you should be able to do it all on your old obsolete system. That's fine, but don't expect to hold everybody else, and the whole project back just to suit you.

Apple are now FAMOUS for obsoleting older hardware by removing support for it to FORCE users to keep up with modern technology.

If YOU want to cling to the past I suggest you start your OWN branch and fix the code to run on it in there. The rest of us are living in 2012 and want to get the most from our modern equipment.


It is not about KEEPING things as they are but keeping the support of people that still operate older equipment. You can not just up and kick them to the curve for the benefit of a few.

ronco
Posts: 317
Joined: Thu Aug 18, 2011 2:58 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by ronco »

please cool down a little ;)

i know/think that tommie is a talented coder but i think here we have some kind of philosophy differences..

as far as i know tommie and also findie would like to free multiwii from its restrictions that we have with:

- Arduino
- older java versions ;)
- SVN
- compatibility with almost everything
- maybe some more

but i think that this "restrictions" are a big part of the simpleness that we have here compared with the most other open source flight control FW's ..
i personaly like the way multiwii is .. and i like that it is simple .. you dont need to check your complete PC to get it working.

im pretty shure that this are reasons why so many people that are not coder or IT specialists like to use it.

so for me .. i think its better to renounce of some features if thay would make it less simple. there are other flight control FW's that have all that stuff done..
but i never saw any one being so happy with it as many are with MWC.

there are enough things that can be improved without making it require a Dr. title to use it.

regards felix

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Tommie »

It was not my intention to break anything; to be honest, I wasn't aware of this method being an Java 6 addition, but even if I had been I would have probably used it, for Java 6 is by no means bleeding edge technology. I find it awkward that instead of using ones coding skills to mitigate this issue or at least report this fact in a neutral tone, this is seen as an opportunity to smack the work put into MultiWii during the last few days. I can - too some degree - understand that it is frustrating to encounter such a version mismatch - I will not call it a bug - but in my opinion, this is blown way out of proportion; other bugs have let to copter falling out of the sky or running out of control, this is just a minor compilation issue. So please put this into perspective.

Pyrofer
Posts: 180
Joined: Sat Apr 14, 2012 2:55 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Pyrofer »

"im pretty shure that this are reasons why so many people that are not coder or IT specialists like to use it."
Yes. That's true.

What Hamburger was trying to do was compile the GUI, which hardly anybody needs to do as compiled versions are provided.
I am not sure if he did any code change to require compiling.
It appears to me he was just compiling it for the sake of finding bugs to complain about.

I don't enjoy this fighting at all, I want a nice happy MultiWii project where everything works and everybody gets along, but that shouldn't be incompatible with moving the project forwards.

If we have some drastic restrictions then maybe drastic solutions are needed. You can't expect to force more and more functionality into the FW while keeping it under the Flash limits AND using obsolete software. It's just asking too much.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

kos wrote:yes, i remove it as I realized how out of scope my comment was.

thank you.

fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by fiendie »

copterrichie wrote:It is not about KEEPING things as they are but keeping the support of people that still operate older equipment. You can not just up and kick them to the curve for the benefit of a few.

I agree, except "the few" - and I say this as a Mac user myself - are those running Java 1.5 on an old Mac.
That said and like I mentioned before: I don't think it was the intention to exclude anybody! The use of copyOf() was most definitely done with the best of intentions. But most of the time you cannot test every possible hardware/software combination yourself. Sometimes you just don't think of it. This whole discussion is absolutely hysterical. If Hamburger just wanted a fix he could have contacted tommie and it would already have been resolved.
Instead he opts to spread it out in the forum and tries to publicly drag him through the mud because of a bruised ego.

User avatar
kos
Posts: 286
Joined: Thu Feb 16, 2012 4:51 am
Location: Fr

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by kos »

seconde argument : http://wiki.processing.org/w/Supported_ ... a_Versions


kos wrote:edit 2 : http://docs.oracle.com/javase/6/docs/ap ... rrays.html , java 1.6 is now a requirement , not sure i agree to this changes, there are still some old jre (hanburger just proves that fact)


majority has spoken , this change is refused .

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Tommie »

ronco wrote:so for me .. i think its better to renounce of some features if thay would make it less simple. there are other flight control FW's that have all that stuff done..
but i never saw any one being so happy with it as many are with MWC.

And how many of these happy people are actually touching the code or are in any way affected by the inner mechanisms of the firmware?
Making things more flexible actually makes it easier for those not wanting to delve completely into it. That's what the entire SerialCom rewrite is about, making it easier to add additions to your copter without having to modify half of the firmware and every GUI in existence.

The old serial com was completely intransparent; you actually needed a PhD to understand how it worked; now it as been replaced by a small state machine that actually fits on one page of the editor window; the protocol has been straightened out to make parsing and communication easier.

I have reduced the memory footprint to prevent stack overflows; something that probably would make all your happy MWC users quite sad if all they can do is waving their copters goodbye as they take off into the sunset.

So please tell me: which of the implemented changes do affect the simplicity in regard to the enduser?


copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by copterrichie »

fiendie wrote:
copterrichie wrote:It is not about KEEPING things as they are but keeping the support of people that still operate older equipment. You can not just up and kick them to the curve for the benefit of a few.

I agree, except "the few" - and I say this as a Mac user myself - are those running Java 1.5 on an old Mac.
That said and like I mentioned before: I don't think it was the intention to exclude anybody! The use of copyOf() was most definitely done with the best of intentions. But most of the time you cannot test every possible hardware/software combination yourself. Sometimes you just don't think of it. This whole discussion is absolutely hysterical. If Hamburger just wanted a fix he could have contacted tommie and it would already have been resolved.
Instead he opts to spread it out in the forum and tries to publicly drag him through the mud because of a bruised ego.


I am latest Mac and tried to compile to code but it did not work. It does on my Window7 Machine so I am fully aware of the situation. However, my statement was not specially (although it appeared that way) for this modification but others that are in process.

User avatar
kos
Posts: 286
Joined: Thu Feb 16, 2012 4:51 am
Location: Fr

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by kos »

kos wrote:http://docs.oracle.com/javase/1.4.2/docs/api/java/lang/System.html#arraycopy%28java.lang.Object,%20int,%20java.lang.Object,%20int,%20int%29

fixed


dont anyone thinks that this kingOfTheHill tournament is long and embarrassing ,

i will not be able to commit, you all discourage me , please invest your energie to commit a patch for me.

ronco
Posts: 317
Joined: Thu Aug 18, 2011 2:58 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by ronco »

Tommie wrote:
ronco wrote:so for me .. i think its better to renounce of some features if thay would make it less simple. there are other flight control FW's that have all that stuff done..
but i never saw any one being so happy with it as many are with MWC.

And how many of these happy people are actually touching the code or are in any way affected by the inner mechanisms of the firmware?
Making things more flexible actually makes it easier for those not wanting to delve completely into it. That's what the entire SerialCom rewrite is about, making it easier to add additions to your copter without having to modify half of the firmware and every GUI in existence.

The old serial com was completely intransparent; you actually needed a PhD to understand how it worked; now it as been replaced by a small state machine that actually fits on one page of the editor window; the protocol has been straightened out to make parsing and communication easier.

I have reduced the memory footprint to prevent stack overflows; something that probably would make all your happy MWC users quite sad if all they can do is waving their copters goodbye as they take off into the sunset.

So please tell me: which of the implemented changes do affect the simplicity in regard to the enduser?


Tommie, please read may whole post. i didnt said with any word that your current changes are a problem.

the most of this discusion is eaven not related to the use or not use of copyOf().

regards

felix

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Tommie »

Just to stop this nonsense, I just commited a fix with my own method of copying an array.

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Alexinparis »

ronco wrote:please cool down a little ;)

i know/think that tommie is a talented coder but i think here we have some kind of philosophy differences..

as far as i know tommie and also findie would like to free multiwii from its restrictions that we have with:

- Arduino
- older java versions ;)
- SVN
- compatibility with almost everything
- maybe some more

but i think that this "restrictions" are a big part of the simpleness that we have here compared with the most other open source flight control FW's ..
i personaly like the way multiwii is .. and i like that it is simple .. you dont need to check your complete PC to get it working.

im pretty shure that this are reasons why so many people that are not coder or IT specialists like to use it.

so for me .. i think its better to renounce of some features if thay would make it less simple. there are other flight control FW's that have all that stuff done..
but i never saw any one being so happy with it as many are with MWC.

there are enough things that can be improved without making it require a Dr. title to use it.

regards felix


I think it's a good summary of the "spirit" behind multiwii ;)


On example of restriction we are all aware of:
- the arduino bootloader takes some mem, we could remove it, but I will never do it
- the Arduino IDE uses gcc with no possible gcc option configuration, we could improve it, but I will never do it

Those choices have nothing to do with any kind of obsolescence.
It's made deliberately to ease the user task.
I understand other views, but only in a port perspective.
MultiWii is not a coding exercise. There are users behind.

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Alexinparis »

The old serial com was completely intransparent

It's a pure subjective argument.
Some OSDs and GUI are already supporting it with not a lot of discussion to understand it.

Pyrofer
Posts: 180
Joined: Sat Apr 14, 2012 2:55 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Pyrofer »

Alex, I see and mostly agree with you.
However, if you want to keep the bootloader, if you want to keep the Arduino IDE then something else has to change.
Expecting developers to have recent devkits is not unreasonable, it's not something that will bother the users behind it either.
It's also something that shouldn't be hard to fix (Indeed Tommie has fixed it already!)

As one of the users behind Multiwii I would hate to see a personal vendetta hold back development on the project.
I would love to contribute to MultiWii, I have some coding experience but to be honest I am now FAR too scared to even try.

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Alexinparis »

Pyrofer wrote:Alex, I see and mostly agree with you.
However, if you want to keep the bootloader, if you want to keep the Arduino IDE then something else has to change.


please explain what has to change ?
I don't understand

Pyrofer
Posts: 180
Joined: Sat Apr 14, 2012 2:55 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Pyrofer »

I wasn't being specific, just more general in that we should be pushing forward not holding back.
Newer devkits are part of progress.
Most open source projects are the opposite and insist on having the latest version of everything. I have never before seen a project that insisted on keeping many year old code for the sake of one (as far as I can see) person.
Tommie has worked around the issue for now but what happens if somebody finds an amazing way to save flash and fit more in but it requires the latest Java.

Given the choice of upgrading, or keeping the larger code size for the sake of backwards compatibility with ancient code, which would you choose?

Alexinparis
Posts: 1630
Joined: Wed Jan 19, 2011 9:07 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Alexinparis »

Pyrofer wrote:I wasn't being specific, just more general in that we should be pushing forward not holding back.
Newer devkits are part of progress.
Most open source projects are the opposite and insist on having the latest version of everything. I have never before seen a project that insisted on keeping many year old code for the sake of one (as far as I can see) person.
Tommie has worked around the issue for now but what happens if somebody finds an amazing way to save flash and fit more in but it requires the latest Java.

Given the choice of upgrading, or keeping the larger code size for the sake of backwards compatibility with ancient code, which would you choose?


I think there is a misunderstanding.
This topic is about the GUI and some incompatibility with some version of java.
There is one processing distribution that includes the required java environment.
This one should be taken as the reference for those who want to play with the GUI compilation.

What I was saying just some post ago deals with the sketch.
For this I use the most up to date development software with is Arduino 1.0.1
This is my reference to compare size/errors/bugs/...
Really nothing has to be changed about this.

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Tommie »

Alexinparis wrote:This topic is about the GUI and some incompatibility with some version of java.
There is one processing distribution that includes the required java environment.
This one should be taken as the reference for those who want to play with the GUI compilation.

One funny thing: Up until now, I did not know that Processing brought its own Java distribution. That certainly explains the download size. But what is even more interesting:

Code: Select all

stefan@exa:~/temp/processing/processing-1.5.1/java/bin$ ls
appletviewer   java          jconsole    jsadebugd     pack200      tnameserv
apt            javac         jcontrol    jstack        policytool   unpack200
ControlPanel   javadoc       jdb         jstat         rmic         wsgen
extcheck       javah         jhat        jstatd        rmid         wsimport
HtmlConverter  javap         jinfo       jvisualvm     rmiregistry  xjc
idlj           java-rmi.cgi  jmap        keytool       schemagen
jar            java_vm       jps         native2ascii  serialver
jarsigner      javaws        jrunscript  orbd          servertool
stefan@exa:~/temp/processing/processing-1.5.1/java/bin$ ./java -version
java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing)
stefan@exa:~/temp/processing/processing-1.5.1/java/bin$

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

it is not that easy.
On macosx the processing environment does not contain an executable binary by the name of java. Processing seems to use the version that comes with the system. I think kos provided a link with appropriate info.

fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by fiendie »

Hamburger wrote:it is not that easy.
On macosx the processing environment does not contain an executable binary by the name of java. Processing seems to use the version that comes with the system. I think kos provided a link with appropriate info.

Like I said, you could still use SoyLatte ;)

But I agree, if Processing requires source level 1.5 then that's what we have to develop for.

Tommie
Posts: 438
Joined: Sun Apr 08, 2012 9:50 am

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Tommie »

Yes, I know that processing is using the system wide java (which is the sane thing to do), but I find it amusing that they are shipping Java 6 while supposedly claiming that only Java 5 is supported.

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

Pyrofer,
Pyrofer wrote:I would love to contribute to MultiWii, I have some coding experience but to be honest I am now FAR too scared to even try.

Before that I would love to take you up on what you said earlier. You have not hesitated to express strong statements, like

Pyrofer wrote:[...]YOU can easily update your OS,[...]

Be my guest. I challenge you to easily update my OS to whatever apple deems current (10.7, ?) under the condition, that all software and hardware installed inside and attached works at least as good as it does now. If done successfully without data loss in under 8 hours I give you a brand new stm32 FreeFlight board. If not, you hand me a working state of the art mac notebook (whatever name they call it nowadays) so I can continue working. Caveat: my hardware is not from apple.

fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by fiendie »

Hamburger wrote:Caveat: my hardware is not from apple.

A hackintosh? Gimme a break... ;)
So you're running an OS that is expressly designed NOT to run on your hardware and you go around telling people we have to be conservative with our software choices?
Way to go.

User avatar
kos
Posts: 286
Joined: Thu Feb 16, 2012 4:51 am
Location: Fr

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by kos »

you should try with beos :mrgreen:

User avatar
Hamburger
Posts: 2578
Joined: Tue Mar 01, 2011 2:14 pm
Location: air
Contact:

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Hamburger »

fiendie wrote:
Hamburger wrote:Caveat: my hardware is not from apple.

A hackintosh? Gimme a break... ;)

sure, take it.
So you're running an OS that is expressly designed NOT to run on your hardware and you go around telling people we have to be conservative with our software choices?

which OS & hardware I run is _my_ choice with consequences on me alone.
As always I will move on when the time has come.
For MultiWii it is not my decision - and definitely not yours either. If you have such a progressive mind (like ronco summarized earlier), then why do you not start your own next generation flight controller project and amaze us with the latest greatest next big thing? Up until now you have contributed only agitation.
Way to go.

yes, feel free.

Pyrofer
Posts: 180
Joined: Sat Apr 14, 2012 2:55 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by Pyrofer »

"Caveat: my hardware is not from apple."

A Hackint0sh. Great. No WONDER you don't want to change anything!

Those things are about as stable as a drunk on a pogo-stick trying to cross a rope bridge. If you fart at the wrong time it stops working.

If you are willing to take the responsibility for running a Hackint0sh then you should take the responsibility of making things work on it, not ask everybody else to slow down so you can keep up.

fiendie
Posts: 151
Joined: Fri Apr 20, 2012 4:22 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by fiendie »

Hamburger wrote:which OS & hardware I run is _my_ choice with consequences on me alone.
As always I will move on when the time has come.
For MultiWii it is not my decision - and definitely not yours either. If you have such a progressive mind (like ronco summarized earlier), then why do you not start your own next generation flight controller project and amaze us with the latest greatest next big thing?

Why should I? I think MultiWii is a great project and I think fragmentation is hurting open source.
And why beat a dead horse? I already told you I agree with you on the Java 1.5 front.

Up until now you have contributed only agitation.

I'd like to humbly disagree on that one.
I opened an inofficial IRC channel on FreeNode which helped a lot of people get their MWCs in the air and fostered a lot of fruitful discussion.
I am also contributing repository hosting and some coding (because time constraints) to the new Swing GUI.

I'd also like to call out ronco for his comments a bit.
He joined the IRC channel several times and agreed with us on many points only to come here and tell the project owner what he wants to hear.

That said I'd really like to commend Alex for how he handled the situation. He tried to keep it strictly technical and judged everything by its merits.
You on the other hand seem to be much more interested in politics at the moment.

Way to go.

yes, feel free.

You would like that, wouldn't you? ;)

Look, you probably have contributed so much to the project that you don't like "outsiders" stirring things up.
Why not take it down a notch and try to discuss those things on a technical level?

P.S.: You're always welcome in the channel of course! ;)
A lot of misunderstandings could've been avoided.
Last edited by fiendie on Tue Jun 12, 2012 10:43 am, edited 1 time in total.

ronco
Posts: 317
Joined: Thu Aug 18, 2011 2:58 pm

Re: MultiWiiConf_shared is broken - function copyOf(byte[],

Post by ronco »

fiendie wrote:I'd also like to call out ronco for his comments a bit.
He joined the IRC channel several times and agreed with us on many points only to come here and tell the project owner what he wants to hear.


huh .. so you know more then me ;) .. yes there are things that i dont like in multiwii.. i think none will like every thing of it .. but i remember that i also told you in the IRC chat that i like to stay with arduino and that ill have a problem with making multiwii too special .. so i dont know what i said different in the IRC?

.. if it where just on me i would cut out everything that is not needed for multicopters .. but .. it isnt and that maybe good :D

regards felix

Post Reply