Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16917 Discussions

Nios II SBT Crashing on Linux

FelipePlech
Beginner
5,540 Views

I'm having a problem when trying to open the Nios II SBT from Quartus on Linux. I've tried to use Quartus 18.1 and 20.1.

When opening from the directory "quartus/nios2eds/bin/eclipse-nios2" using the terminal, I got the mesage: "Free(): Invalid Pointer" and the program crashes.

When using Quartus 20.1, I followed the instalation steps of the Nios II SBT on the README file.

I also tried to open from "quartus/nios2eds/bin/eclipse_nios2/eclipse". This one opens, but I'm unable to create a project, because the program does not find the CPU on the .sopcinfo file. I always get the mesage "sopcinfo does not contain any cpu".

Thank you in advance,

Felipe Plech

0 Kudos
1 Solution
SThor8
New Contributor I
5,463 Views

The following workaround seems to work, it essentially replace Quartus included java engine with Java 8

 

cd ..../intelFPGA/20.1/quartus/linux64
mv jre64 jre64_old
ln -s /lib/jvm/java-1.8.0-openjdk-amd64/jre jre64

 

the path to Java 8 jre might be machine specific, mine is at least placed there

View solution in original post

10 Replies
Eliath_G_Intel
Employee
5,511 Views

Hi Felipe,

First of all, thank you for reaching us.


you may have a Java issue, that's why the program crashed, please install it again.


Talking about using Quartus 20.1, did you make any change to your design in the platform designer before trying to open Nios II SBT and create the project?

  • Make sure you instantiated the NIOS II processor for your design in the Platform Designer tool.
  • In case you did, it's important to remember always click on Generate HDL after any change in Platform Designer because this is the moment when the *.sopcinfo file is created.
  • when the design is created, there's some *.sopcinfo created additional to the one which has the CPU instantiated, so make sure it's pointing to the right one.


If you keep having this issue, please share your design with us if there is the possibility.



Thanks,

-Eliath Guzman



FelipePlech
Beginner
5,502 Views
Hi Eliath,

Thank you for the answer.

I've tried reinstalling Java and running with OpenJDK and Oracle, but I had no success. Both retuned the same error mentioned on my last message.

I got it working by installing Quartus 19.1. I followed the same steps that I mentioned. This versions gives me no error. It was not a problem with the .socpinfo file, but with the NIOS II SBT.

Furthermore, i tried with two linux distributions: Pop_OS! and Linux Mint. Both had the same results.

It looks like there is a problem on the eclipse plugin for NIOS II SBT, because without extracting the plugin to the eclipse mars.2 folder, the software runs ok, but after extraction, it gives me the error.

But, as I said, the version 19.1 is running without problems.

Thank you again,

Felipe Plech
0 Kudos
Eliath_G_Intel
Employee
5,487 Views

Hi Felipe,


I'm glad to read version 19.1 is running without any issue.

Once again thank you for contacting us, I'll keep debugging the initial issue so we can fix it in future versions.



Regards,

-Eliath Guzman


0 Kudos
SThor8
New Contributor I
5,464 Views

The following workaround seems to work, it essentially replace Quartus included java engine with Java 8

 

cd ..../intelFPGA/20.1/quartus/linux64
mv jre64 jre64_old
ln -s /lib/jvm/java-1.8.0-openjdk-amd64/jre jre64

 

the path to Java 8 jre might be machine specific, mine is at least placed there

SDevaux
Novice
5,343 Views
cd ..../intelFPGA/20.1/quartus/linux64
mv jre64 jre64_old
ln -s /lib/jvm/java-1.8.0-openjdk-amd64/jre jre64

after those commands, SBT doesn't start anymore.  

0 Kudos
FelipePlech
Beginner
5,226 Views

This solves the "free():Invalid pointer" error for the Nios II SBT, but the plataform designer started to have problems with some java classes.

Also, Stephane solution seems to solve the GTK warnings at the eclipse launch.

@Eliath_G_Intel, is there any update about it?

Thanks,

Felipe Plech

0 Kudos
FelipePlech
Beginner
5,192 Views

I did some more tests and @thore solution solves the free():Invalid pointer problem, but you must use openjdk 8 to get it working.

0 Kudos
SDevaux
Novice
5,345 Views

hi Eliath Guzman

Do you have any news about this, because I have the same problem

 

Thanks

0 Kudos
SDevaux
Novice
5,336 Views

Hi everyone,

It seems to be an error in GTK

OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

(Eclipse:225473): Gtk-WARNING **: 22:27:00.086: Negative content width -6 (allocation 1, extents 4x3) while allocating gadget (node toolbar, owne
r GtkToolbar)

(Eclipse:225473): Gtk-WARNING **: 22:27:00.086: Negative content height -6 (allocation 1, extents 4x3) while allocating gadget (node toolbar, own
er GtkToolbar)
free(): invalid pointer

 

0 Kudos
SDevaux
Novice
5,329 Views

Hi everyone and @Eliath_G_Intel ,

I found a solution :

run in konsole:

export SWT_GTK3=0
export SWT_WEBKIT2=1
./eclipse-nios2

and GUI will be launched correctly

 

Stephane,

FPGA R&D engineer

Reply