sclilab 5.1 craches when using graypolarplot

Bug #421016 reported by David Jonsson
8
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Scilab
Fix Released
Critical
scilab (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I tried to run the following in scilab 5.1
rbcmap=[[linspace(255,0,256)'; zeros(256,1)] zeros(512,1) [ zeros(256,1); linspace(0,255,256)']];
rho=1:0.1:4;theta=(0:0.02:1)*2*%pi;
z512=rand(51,31)*512;
f=gcf();
f.color_map=rbcmap;
clf();graypolarplot(theta,rho,z512)

After several seconds resulting in an error. I attached the file mentioned in the error output

David

Revision history for this message
In , Malshan Peiris (lmpeiris) wrote :

-- Bug description --

Scilab is unable to draw plots, contours, and any other graphics elements which is loaded under figure elements.
x=[0:0.1:10]:
y=sin(x);
plot(x,y) produces pops up the figure window but there's nothing i can see
same with other plot-like commands contour etc....
When running demo's under help, it shows the list under graphics but none of those examples shows anything visible except the blank figure window with black background. The background colour cannot be changed by the figure properties too.
when 3-d rotation is used, processor speeds up, and values "alpha", "theta" changes, so i guess the plot is there but the problem is i cannot see it.

java - 1.6_05
wxwidgets - 2.8
VGA - intel 945GMA using intel experimental driver on FC9 (i386)
scilab - version 5.0.3 from linux-i686 binary

do i have to compile from the sorce instead?

-- Scilab error message --

none displayed in either scilab console or terminal window

-- How to reproduce the bug --

i only need to try any plot to get this error!

Revision history for this message
In , hielos (hielos-deactivatedaccount) wrote :

This also happens for the last 4 version and the 5.0.3 version. I have the same problem (running persistent USB Ubuntu). I also tried by just popping out a figure window with the 'figure' command in the console. A black window pops. I found out that there is a very slim vertical stripe at the top which changes color whenever I switch the figure's background color. HEEEELP!

Revision history for this message
In , Malshan Peiris (lmpeiris) wrote :

The SCILAB GTK which works using the scilab 4 core works fine in my pc. I guess the problem with the scilab 5.0.3 (using java3d) is either my graphics driver or java3d. ------------Malshan---------------

Revision history for this message
In , Jean-baptiste-silvy-2 (jean-baptiste-silvy-2) wrote :

You may try to use a nightly build (developpement version for the upcoming 5.1 version) :
http://www.scilab.org/download/index_download.php?page=nightly_builds

Unfortunately, Linux intel drivers don't work with JOGL ans then with Scilab. However, we have created a workaround. To enable it, you just need to input usecanvas(%t) just after starting your Scilab. You may add this command in the scilab.start file to avoid typing it each time.

It should fix your problem but enabling usecanvas will also prenvent you from adding uicontrols above a graphic plot. That's why we don't enable the workaround by default for now.

Please let us know if it fix your problem.

Jean-Baptiste

Revision history for this message
In , Malshan Peiris (lmpeiris) wrote :

Dear Jean-Baptiste,
 the usecanvas command gives following output:
--> usecanvas (%t)
  error 4
unidentified variable

and nothing happens
is my syntax correct?

Revision history for this message
In , Jean-baptiste-silvy-2 (jean-baptiste-silvy-2) wrote :

Could you try the last nightly build: http://www.scilab.org/download/index_download.php?page=nightly_builds?

usecanvas is present in this release.

Thanks,
Jean-Baptiste

Revision history for this message
David Jonsson (david-djk) wrote :
Revision history for this message
Matthias Klose (doko) wrote :

in karmic:

$ scilab
Warning: Could not find Java package '/usr/share/java//jeuclid-core.jar'.
Warning: Could not find Java package '/usr/share/java//fop.jar'.
Warning: Could not find Java package '/usr/share/java//saxon.jar'.
Warning: Could not find Java package '/usr/share/java//batik-all.jar'.
Warning: Could not find Java package '/usr/share/java//xml-apis-ext.jar'.
Warning: Could not find Java package '/usr/share/java//commons-io.jar'.
Warning: Could not find Java package '/usr/share/java//xmlgraphics-commons.jar'.
Warning: Could not find Java package '/usr/share/java//avalon-framework.jar'.
Some problems during the loading of the Java libraries occured.
This could lead to inconsistent behaviours.
Please check SCI/etc/classpath.xml.

then running the example:
Starte Ausführung:
  lade Startumgebung

-->rbcmap=[[linspace(255,0,256)'; zeros(256,1)] zeros(512,1) [ zeros(256,1); linspace( 0,255,256)']];

-->rho=1:0.1:4;theta=(0:0.02:1)*2*%pi;

-->z512=rand(51,31)*512;

-->f=gcf();

-->f.color_map=rbcmap;

-->clf();graypolarplot(theta,rho,z512)
Uicontrols und Grafik nicht verfügbar sind. Geben Sie "Help Usecanvas" für weitere Information ein."
                                                           !--error 3
Warte auf das richtige Elternteil.

while executing a callback
at line 13 of function xstringl called by :
line 60 of function graypolarplot called by :
clf();graypolarplot(theta,rho,z512)

no crash. Please recheck in karmic

Changed in openjdk-6 (Ubuntu):
status: New → Incomplete
Revision history for this message
In , Stendres (stendres) wrote :

Works fine

Revision history for this message
Matthias Klose (doko) wrote :

in lucid I get:

do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try adjusting the vblank_mode configuration parameter.

reassigning to scilab

affects: openjdk-6 (Ubuntu) → scilab (Ubuntu)
Changed in scilab (Ubuntu):
status: Incomplete → New
Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 5502 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 6315 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 6727 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 6894 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 6999 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 7290 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 8043 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 8303 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 9667 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 8275 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 8198 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 8119 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 4723 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

Here is a sum of the various workaround with graphic problems:

1) Update your graphic drivers

2)
From Scilab, try
usecanvas(%t)

3)
From Scilab, try
system_setproperty("jogl.gljpanel.nohw","");

4)
Try to start Scilab in "256-colour mode"

5) Wait for Scilab 5.4.0

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

When I use Ubuntu 11.04 i have no problem with ACER notebooks equipped by Intel X3100 (Extensa 5620Z, Aspire 5115Z). After upgrading to 11.10 there is a hang after a plot command.

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

I try to workaround using current Nightly build scilab-master-1318599153.bin.linux-x86_64.tar.gz. There is a same graphics crash but the process scilab-bin after crash is unkillable. The only one possibility to kill it is logout - login. To test I use simple command: plot([1,2,3],[4,5,6]).

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

(In reply to comment #21)
> When I use Ubuntu 11.04 i have no problem with ACER notebooks equipped by Intel
> X3100 (Extensa 5620Z, Aspire 5115Z). After upgrading to 11.10 there is a hang
> after a plot command.

Please open a new bug report. Anyway, it is likely to be a problem with Ubuntu and the way it handles intel graphic drivers...

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

I try it on the VirtualBox. Under guest OS Ubuntu 11.10 x32 it also hangs. Under guest OS Ubuntu 10.04.03 it works until I install guest additions. After installing additions it opens Plot window and fully closes without any graphics.
I try to use official Xorg components and now I upgrade to Xorg-Edgers libraries. And no result...
Also I try Windows x32 version on Wine. It installs but can not start.
I try to post to Ubuntu forum http://ubuntuforums.org/showthread.php?t=1863295 But there is no response.

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

*** Bug 10212 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

There is a workaround for Ubuntu 11.10 Oneiric from http://www.equalis.com/forums/posts.asp?topic=321201&
Install the package libgl1-mesa-swx11 (with synaptic). This uninstalls libgl1-mesa-glx.
But the comment of Bug 876195 of Ubuntu
https://bugs.launchpad.net/ubuntu/+source/scilab/+bug/876195
say that it breaks Unity.
I try all items in gear-wheel menu of logon screen. Only "Gnome" mode failed using this workaround. All other choices work successfully. (But I use Xorg-Edgers video driver).

Revision history for this message
In , Sylvestre-ledru (sylvestre-ledru) wrote :

OK, thanks. I am updating the list of workarounds

Here is a sum of the various workarounds with graphic problems:

1) Update your graphic drivers

2)
From Scilab, try
usecanvas(%t)

3)
From Scilab, try
system_setproperty("jogl.gljpanel.nohw","");

4)
Try to start Scilab in "256-colour mode"

5) If you run ubuntu 11.10, install the libgl1-mesa-swx11 packaged instead of libgl1-mesa-glx

6) Wait for Scilab 5.4.0

Changed in scilab:
importance: Unknown → Critical
status: Unknown → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in scilab (Ubuntu):
status: New → Confirmed
Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

This bug affects SCILAB 5.4.1 at Ubuntu 12.10 x64!!!
No differences from 5.4.0.
Only empty white graphic window...

Revision history for this message
In , Calixte-denizet-o (calixte-denizet-o) wrote :

Hi,

Could you start scilab from command line ?
Do you get any interesting information (such as a backtrace, a Java exception or anything else) ?

Thanks

Calixte

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

Created attachment 3445
The back trace. My comments are in the #### frame

Revision history for this message
In , David Jonsson (david-djk) wrote : Re: [Bug 421016]

Hi

I tried the script with scilab 5.4.1.1364571296 under Ubuntu 13.04 and it
works.

I don't have any 12.10 environment anymore to test with.

I am satisfied that it works in 13.04.

Best wishes
David

David Jonsson, Sweden, phone callto:+46703000370

On Fri, Apr 5, 2013 at 2:11 PM, Calixte-denizet-o <<email address hidden>
> wrote:

> Hi,
>
> Could you start scilab from command line ?
> Do you get any interesting information (such as a backtrace, a Java
> exception or anything else) ?
>
> Thanks
>
> Calixte
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/421016
>
> Title:
> sclilab 5.1 craches when using graypolarplot
>
> Status in Scilab:
> Confirmed
> Status in “scilab” package in Ubuntu:
> Confirmed
>
> Bug description:
> I tried to run the following in scilab 5.1
> rbcmap=[[linspace(255,0,256)'; zeros(256,1)] zeros(512,1) [
> zeros(256,1); linspace(0,255,256)']];
> rho=1:0.1:4;theta=(0:0.02:1)*2*%pi;
> z512=rand(51,31)*512;
> f=gcf();
> f.color_map=rbcmap;
> clf();graypolarplot(theta,rho,z512)
>
> After several seconds resulting in an error. I attached the file
> mentioned in the error output
>
> David
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/scilab/+bug/421016/+subscriptions
>

Revision history for this message
In , Martinunterwegs (martinunterwegs) wrote :
Download full text (17.6 KiB)

This bug remains with Suse 11.3 and scilab 5.4.1.
The workarounds did not work for me.

The java installation (1.6.0) of suse 11 does have neither gluegen nor jogl. I tried also to reduce
librarypath.xml to valid entries only. The result is unchanged. See below:

Best,
Martin

-->plot (x,y)
 !--error 999
Der übergeordnete Prozess muß ein Subwin sein.
at line 2 of function gcf called by :
at line 158 of function plot called by :
plot (x,y)

           !--error 999
Der übergeordnete Prozess muß ein Subwin sein.

           !--error 999
Der übergeordnete Prozess muß ein Subwin sein.

           !--error 999
Der übergeordnete Prozess muß ein Subwin sein.

           !--error 42
Oups. A fatal error has been detected by Scilab.
Your instance will probably crash soon.
Please report a bug on http://bugzilla.scilab.org/ with:
* a sample code which reproduces the issue
* the result of [a, b] = getdebuginfo()
* the following information:
[phy-215:11472] Signal: Segmentation fault (11)
[phy-215:11472] Signal code: Address not mapped (1)
[phy-215:11472] Failing at address: (nil)

Call stack:
   1: 0x7107eb < > (/usr/local/scilab/5.4.1/thirdparty/java//lib/amd64/server/libjvm.so)
   2: 0x714350 <JVM_handle_linux_signal> (/usr/local/scilab/5.4.1/thirdparty/java//lib/amd64/server/libjvm.so)
   3: 0x7106fe < > (/usr/local/scilab/5.4.1/thirdparty/java//lib/amd64/server/libjvm.so)
   4: 0xf2e0 < > (/lib64/libpthread.so.0)
   5: 0x7f8b6 <memcpy> (/lib64/libc.so.6)
   6: 0x518cc4 < > (/usr/local/scilab/5.4.1/thirdparty/java//lib/amd64/server/libjvm.so)
   7: 0x1e1cf <_ZN34org_scilab_modules_graphic_objects21CallGraphicController24setGraphicObjectPropertyEP7JavaVM_PKciPKii> (/usr/local/scilab/5.4.1/lib/scilab/libscigraphic_objects.so.5)
   8: 0x22c0c <setGraphicObjectProperty> (/usr/local/scilab/5.4.1/lib/scilab/libscigraphic_objects.so.5)
   9: 0x43c38 <createNewFigureWithAxes> (/usr/local/scilab/5.4.1/lib/scilab/libscigraphics.so.5)
  10: 0x2bcbd <get_current_figure_property> (/usr/local/scilab/5.4.1/lib/scilab/libscigraphics.so.5)
  11: 0x21dec <sci_get> (/usr/local/scilab/5.4.1/lib/scilab/libscigraphics.so.5)
  12: 0x23cf9 <gw_graphics> (/usr/local/scilab/5.4.1/lib/scilab/libscigraphics.so.5)
  13: 0x184fe8 <callinterf_> (/usr/local/scilab/5.4.1/lib/scilab/libscilab-cli.so.0)
  14: 0x172711 <scirun_> (/usr/local/scilab/5.4.1/lib/scilab/libscilab-cli.so.0)
  15: 0x16e4a4 <realmain> (/usr/local/scilab/5.4.1/lib/scilab/libscilab-cli.so.0)
  16: 0x150c < > (scilab-bin)
  17: 0x1eb7d <__libc_start_main> (/lib64/libc.so.6)
  18: 0x1279 < > (scilab-bin)
Ende des Stapels

Debug info is
 b =

!Scilab Version: scilab-5.4.1 !
! !
!Compilation date: Mar 29 2013 !
! !
!Compilation time: 16:52:55 !
! !...

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

Created attachment 3780
The back trace of SciLab 5.5.0 Beta 1 trying plot([1,2],[3,4])

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

Created attachment 3781
The copy of console after plot([1,2],[3,4]) in SciLab 5.5.0 beta 1 in Ukrainian. My translation is in the next attachment

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

Created attachment 3782
My translation of console content after plot([1,2],[3,4]) in SciLab 5.5.0 beta 1. Sorry for inaccuracy.

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

This bug wasn't solved in scilab-5.5.0-beta-1.
plot([1,2],[3,4]) cause openning empty graphics window and error. Look at attached files:

Backtrace.txt - This back trace;
ConsoleUaOriginal - the copy of console after error in Ukrainian
ConsoleEn - My translation of console content. Sorry for inaccuracy.

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

The workaround is using SciLab 5.3.3. It is the last version without a bug.

Revision history for this message
In , Viktor Mileikovskyi (v-mil) wrote :

Apears to be FIXED in Ubuntu 13.10. Plot works normally in scilab 5.4.1-1~exp1.

Revision history for this message
In , Andrei Lomov (507272-mail) wrote :

debian jessie x32, scilab 5.5.2
plot(x) produces pops up the empty figure window

Revision history for this message
In , Clement-david-h (clement-david-h) wrote :

(In reply to Andrei from comment #38)
> debian jessie x32, scilab 5.5.2
> plot(x) produces pops up the empty figure window

Are you using the Scilab stock binary ? your own compiled version or the debian one ?

Revision history for this message
In , Andrei Lomov (507272-mail) wrote :

the debian one:
debian jessie x32, scilab 5.5.2

But the debian one:
debian jessie x64, scilab 5.5.1
works fine
(x64, not x32)

Revision history for this message
In , François Granade (francois-granade) wrote :

(originally entered in version "5.0.2 final version")

Revision history for this message
In , Sgougeon (sgougeon) wrote :

Should be OK now with Scilab 6.x
Please reopen the report if it's not the case.

Changed in scilab:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.