Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

SOPC Builder - sopc_builder.dispatch_event: Error! - java.lang.NullPointerException

I use Ubuntu 64bit and the 10.1sp1 toolchain(full license).

The sopc builder doenst generate the design. It just tells me(once) that the system generation was successfull.

I think the problem starts at the ptf file elaboration due to java problems.

Could somebody help me?

PS: Got warnings: Custom Instructuion components can be edited through the Component Editor. uniphy_ddr2_dim: An average delay difference between address and command....

uniphy_ddr2_dim: 'Qucik simulation models are NOT timing accurate. Some simulation memory models may issue warnings or errors

PPS: sopc tells me via Info, that it founds his stuff at [altera_dir]/10.1/quartus//[some more]. Why do I get // instead of /?

--- Quote Start ---

Info: Starting PTF file elaboration [some arguments]

(:3697): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(:3697): Gtk-WARNING **: Loading IM context type 'ibus' failed

(:3697): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(:3697): Gtk-WARNING **: Loading IM context type 'ibus' failed

(:3697): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(:3697): Gtk-WARNING **: Loading IM context type 'ibus' failed

(:3697): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(:3697): Gtk-WARNING **: Loading IM context type 'ibus' failed

sopc_event_queue.dispatch_events: ERROR

java.lang.NullPointerException

at sopc_ptf.sopc_port.is_clock_pipelined(sopc_port.java:163)

[some more at something stuff - cut it]

Info: Finished elaborating PTF file.

Executing: /opt/altera/10.1/quartus//sopc_builder/bin/sopc_builder --classic --generate /home/walther/git/canrouter/usr/sopc/router_ports/rps.ptf

Info: Starting generation...[some arguments]

(:3741): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(:3741): Gtk-WARNING **: Loading IM context type 'ibus' failed

(:3741): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(:3741): Gtk-WARNING **: Loading IM context type 'ibus' failed

(:3741): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(:3741): Gtk-WARNING **: Loading IM context type 'ibus' failed

(:3741): Gtk-WARNING **: /usr/lib/gtk-2.0/2.10.0/immodules/im-ibus.so: wrong ELF class: ELFCLASS64

(:3741): Gtk-WARNING **: Loading IM context type 'ibus' failed

sopc_event_queue.dispatch_events: ERROR

java.lang.NullPointerException

at sopc_ptf.sopc_port.is_clock_pipelined(sopc_port.java:163)

at altera_avalon_adapter_slave_y.SlaveYAdapter.insert_adapters_between_interfaces(SlaveYAdapter.java:34)

at sopc_ptf.sopc_default_adapter.insert_adapters(sopc_default_adapter.java:48)

[some more at]

Info: System generation was successful.

--- Quote End ---

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I solved the problem.

    I dont really know exactly what the problem was. But I think somehow I did something bad when I played a bit around with my system.

    How did I solve it: Dumped the old SOPC Builder design and started a new project.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Just hit this same problem. I tried the "go make the SOPC from scratch" thing. I am still hitting the problem. This is with Q12.1SP1.

    Any thoughts / guidance on what to do to try and diagnose or work around?

    Thx,

    Dave
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    In my case this was caused (but not justified by) me having updated the clock names that various clocks in my SOPC were known as. Now this seems like a perfectly reasonable thing to do and yet if I generate the version with the system assigned names it generates just fine but if I rename certain clocks to be something friendly the generation fails.

    Whatever.

    YMMV.

    Dave