Is this a Bug in Geogebra?

ariznaf shared this problem 7 years ago
Answered

lets try this:


Create a circle:


c= (x^2+y^2=1)


Now a function:


f(X)= x/(1+x)


Now lets seek for intersections:


Intersect[c,f]


You correctly get the two points of intersection A and B.


Now lets save it as bug.ggb


Close Geogebra and open the file you just have saved.


You can see that the points A and B are now undefined.


Is it a Bug?


Does it happen only to me?


Versión 4.2.60 under Windows 8 and java 7.

Comments (8)

photo
1

Not a bug for me, but I will try at home on both of my Win 8 machines (RT and Pro).


Tony


Win7

https://ggbm.at/564161

photo
1

Sorry, I was running Windows 7 in this machine not Windows 8 (I have Windows 8 in another machine, will try in it).


When I open the file again, both points of intersections A and B are listed as undefined.

Their definition is OK (intersect[c,f]).


If I change one of the (change B to (0,0) for example) and then I use ctrl+z for undo, the points A and B are now correctly defined (with the intersection coords).


It seems like a strange behaviour for me, seems like a bug.


This is the Geogebra log just after opening the file:


    GeoGebra 4.2.60.0 Webstart (04 October 2013)

    Java: 1.7.0_45

    Codebase: http://jars.geogebra.org/we...

    OS: Windows 7

    Architecture: x86

    Heap: 989MB

    CAS: MPReduce .016


    GeoGebraLogger log:

    19:51:56.088 INFO: geogebra.i.a.a[-1]: GeoGebra 4.2.60.0 04 October 2013 Java 1.7.0_45-32bit

    19:51:56.089 DEBUG: geogebra.i.a.<init>[-1]: isApplet=false runningFromJar=true appletImpl=null

    19:51:56.089 DEBUG: geogebra.i.a.ao[-1]: Setting up logging

    19:51:56.090 DEBUG: geogebra.i.a.ao[-1]: Logging is redirected to C:\Users\fernando\AppData\Local\Temp\GeoGebraLog_toiseeqlsp.txt

    DEBUG: geogebra.common.i.n.z[-1]: Number of registered views = 1

    * class geogebra.b.x

    DEBUG: geogebra.common.i.n.b[-1]: function ggbOnInit() {}


    DEBUG: geogebra.common.i.d.j.a[-1]: x / (1 + x) couldn't be transformed to polynomial

    DEBUG: geogebra.common.b.b.a.a[-1]: Loading packages...

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package rsolve loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package numeric loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package odesolve loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package defint loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package linalg loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package reset loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package taylor loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package groebner loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package trigsimp loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package polydiv loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package myvector loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package specfn loaded

    DEBUG: geogebra.common.b.b.a.a[-1]: Defining initial procedures in Reduce...

    DEBUG: geogebra.common.b.b.a.a[-1]: Initial procedures in Reduce have been defined

    DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce eval: coeff(mydivision(ggbcasvar1x,addition(1,ggbcasvar1x)),ggbcasvar1x)

    DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce comment: ***** ggbcasvar1x/(ggbcasvar1x + 1) invalid as polynomial

    DEBUG: geogebra.common.b.b.a.b[-1]: CASmpreduce.evaluateRaw: result:

    DEBUG: geogebra.common.i.d.j.a[-1]: x / (1 + x) couldn't be transformed to polynomial

    DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce eval: coeff(mydivision(ggbcasvar1x,addition(1,ggbcasvar1x)),ggbcasvar1x)

    DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce comment: ***** ggbcasvar1x/(ggbcasvar1x + 1) invalid as polynomial

    DEBUG: geogebra.common.b.b.a.b[-1]: CASmpreduce.evaluateRaw: result:

    DEBUG: geogebra.common.i.d.j.a[-1]: x / (1 + x) couldn't be transformed to polynomial

    DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce eval: coeff(mydivision(ggbcasvar1x,addition(1,ggbcasvar1x)),ggbcasvar1x)

    DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce comment: ***** ggbcasvar1x/(ggbcasvar1x + 1) invalid as polynomial

    DEBUG: geogebra.common.b.b.a.b[-1]: CASmpreduce.evaluateRaw: result:

    DEBUG: geogebra.common.g.b.aL[-1]: error in <output>: wrong number of labels for command Intersect

    DEBUG: geogebra.common.i.d.j.a[-1]: x / (1 + x) couldn't be transformed to polynomial

    DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce eval: coeff(mydivision(ggbcasvar1x,addition(1,ggbcasvar1x)),ggbcasvar1x)

    DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce comment: ***** ggbcasvar1x/(ggbcasvar1x + 1) invalid as polynomial

    DEBUG: geogebra.common.b.b.a.b[-1]: CASmpreduce.evaluateRaw: result:

    DEBUG: geogebra.common.i.n.z[-1]: Number of registered views = 2

    * class geogebra.b.x

    * class geogebra.gui.n.a

    DEBUG: geogebra.gui.j.O.b[-1]: update menu

    DEBUG: geogebra.b.b.g.<init>[-1]: possible missing release()


    File log from C:\Users\fernando\AppData\Local\Temp\GeoGebraLog_toiseeqlsp.txt:

    nov 05, 2013 7:51:56 PM

    STDOUT: DEBUG: geogebra.common.i.n.z[-1]: Number of registered views = 1

    * class geogebra.b.x

    nov 05, 2013 7:51:56 PM

    STDOUT: DEBUG: geogebra.common.i.n.b[-1]: function ggbOnInit() {}


    nov 05, 2013 7:51:56 PM

    STDOUT: DEBUG: geogebra.common.i.d.j.a[-1]: x / (1 + x) couldn't be transformed to polynomial

    nov 05, 2013 7:51:57 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Loading packages...

    nov 05, 2013 7:51:57 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package rsolve loaded

    nov 05, 2013 7:51:57 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package numeric loaded

    nov 05, 2013 7:51:58 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package odesolve loaded

    nov 05, 2013 7:51:59 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package defint loaded

    nov 05, 2013 7:51:59 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package linalg loaded

    nov 05, 2013 7:51:59 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package reset loaded

    nov 05, 2013 7:51:59 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package taylor loaded

    nov 05, 2013 7:52:00 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package groebner loaded

    nov 05, 2013 7:52:00 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package trigsimp loaded

    nov 05, 2013 7:52:00 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package polydiv loaded

    nov 05, 2013 7:52:00 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package myvector loaded

    nov 05, 2013 7:52:00 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Reduce package specfn loaded

    nov 05, 2013 7:52:00 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Defining initial procedures in Reduce...

    nov 05, 2013 7:52:00 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.a[-1]: Initial procedures in Reduce have been defined

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce eval: coeff(mydivision(ggbcasvar1x,addition(1,ggbcasvar1x)),ggbcasvar1x)

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce comment: ***** ggbcasvar1x/(ggbcasvar1x + 1) invalid as polynomial

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: CASmpreduce.evaluateRaw: result:

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.i.d.j.a[-1]: x / (1 + x) couldn't be transformed to polynomial

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce eval: coeff(mydivision(ggbcasvar1x,addition(1,ggbcasvar1x)),ggbcasvar1x)

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce comment: ***** ggbcasvar1x/(ggbcasvar1x + 1) invalid as polynomial

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: CASmpreduce.evaluateRaw: result:

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.i.d.j.a[-1]: x / (1 + x) couldn't be transformed to polynomial

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce eval: coeff(mydivision(ggbcasvar1x,addition(1,ggbcasvar1x)),ggbcasvar1x)

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce comment: ***** ggbcasvar1x/(ggbcasvar1x + 1) invalid as polynomial

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: CASmpreduce.evaluateRaw: result:

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.g.b.aL[-1]: error in <output>: wrong number of labels for command Intersect

    nov 05, 2013 7:52:01 PM

    STDERR: cmdOutput.length = 1, labels = 2

    nov 05, 2013 7:52:01 PM

    STDERR: error in <command>: output

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.i.d.j.a[-1]: x / (1 + x) couldn't be transformed to polynomial

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce eval: coeff(mydivision(ggbcasvar1x,addition(1,ggbcasvar1x)),ggbcasvar1x)

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: MPReduce comment: ***** ggbcasvar1x/(ggbcasvar1x + 1) invalid as polynomial

    nov 05, 2013 7:52:01 PM

    STDOUT: DEBUG: geogebra.common.b.b.a.b[-1]: CASmpreduce.evaluateRaw: result:

    nov 05, 2013 7:52:03 PM

    STDOUT: DEBUG: geogebra.common.i.n.z[-1]: Number of registered views = 2

    * class geogebra.b.x

    * class geogebra.gui.n.a

    nov 05, 2013 7:52:04 PM

    STDOUT: DEBUG: geogebra.gui.j.O.b[-1]: update menu

    nov 05, 2013 7:52:04 PM

    STDOUT: DEBUG: geogebra.b.b.g.<init>[-1]: possible missing release()


    GGB file content:

    <?xml version="1.0" encoding="utf-8"?>

    <geogebra format="4.2" version="4.2.60.0" id="6502b67d-af91-40a4-90d7-8144947c5c0a" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb...; xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLS...; >

    <gui>

    <window width="800" height="600" />

    <perspectives>

    <perspective id="tmp">

    <panes>

    <pane location="" divider="0.25" orientation="1" />

    </panes>

    <views>

    <view id="4097" visible="false" inframe="true" stylebar="true" location="1,1,1" size="400" window="100,100,700,550" />

    <view id="4" toolbar="0 59 || 2020 , 2021 , 2022 , 66 || 2001 , 2003 , 2002 , 2004 , 2005 || 2040 , 2041 , 2042 , 2044 , 2043" visible="false" inframe="false" stylebar="false" location="1,1" size="300" window="100,100,600,400" />

    <view id="8" toolbar="1001 | 1002 | 1003 || 1005 | 1004 || 1006 | 1007 | 1010 | 1011 || 1008 1009 || 6" visible="false" inframe="false" stylebar="false" location="1,3" size="300" window="100,100,600,400" />

    <view id="1" visible="true" inframe="false" stylebar="false" location="1" size="568" window="100,100,600,400" />

    <view id="2" visible="true" inframe="false" stylebar="false" location="3" size="200" window="100,100,250,400" />

    <view id="16" visible="false" inframe="false" stylebar="false" location="1" size="150" window="50,50,500,500" />

    <view id="32" visible="false" inframe="false" stylebar="true" location="1" size="150" window="50,50,500,500" />

    <view id="64" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />

    <view id="70" toolbar="0 || 2020 || 2021 || 2022" visible="false" inframe="true" stylebar="true" location="1" size="150" window="50,50,500,500" />

    </views>

    <toolbar show="true" items="0 39 59 | 1 501 67 , 5 19 , 72 | 2 15 45 , 18 65 , 7 37 | 4 3 8 9 , 13 44 , 58 , 47 | 16 51 64 , 70 | 10 34 53 11 , 24 20 22 , 21 23 | 55 56 57 , 12 | 36 46 , 38 49 50 , 71 | 30 29 54 32 31 33 | 17 26 62 73 , 14 66 68 | 25 52 60 61 | 40 41 42 , 27 28 35 , 6" position="1" help="false" />

    <input show="true" cmd="true" top="false" />

    <dockBar show="true" east="true" />

    </perspective>

    </perspectives>

    <labelingStyle val="3"/>

    <font size="12"/>

    <graphicsSettings javaLatexFonts="false"/>

    </gui>

    <euclidianView>

    <size width="568" height="443"/>

    <coordSystem xZero="209.28636593125003" yZero="318.8379528312502" scale="90.94234273437506" yscale="90.94234273437525"/>

    <evSettings axes="true" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="1" checkboxSize="13" gridType="0"/>

    <bgColor r="255" g="255" b="255"/>

    <axesColor r="0" g="0" b="0"/>

    <gridColor r="192" g="192" b="192"/>

    <lineStyle axes="1" grid="10"/>

    <axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>

    <axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true"/>

    </euclidianView>

    <kernel>

    <continuous val="false"/>

    <usePathAndRegionParameters val="true"/>

    <decimals val="2"/>

    <angleUnit val="degree"/>

    <algebraStyle val="0"/>

    <coordStyle val="0"/>

    <angleFromInvTrig val="false"/>

    </kernel>

    <scripting blocked="false" disabled="false"/>

    <construction title="" author="" date="">

    <element type="conic" label="c">

    <show object="true" label="false"/>

    <objColor r="0" g="0" b="0" alpha="0.0"/>

    <layer val="0"/>

    <labelMode val="0"/>

    <animation step="1" speed="1" type="0" playing="false"/>

    <lineStyle thickness="2" type="0" typeHidden="1"/>

    <eigenvectors x0="1.0" y0="0.0" z0="1.0" x1="-0.0" y1="1.0" z1="1.0"/>

    <matrix A0="1.0" A1="1.0" A2="-1.0" A3="0.0" A4="0.0" A5="0.0"/>

    <eqnStyle style="specific"/>

    </element>

    <expression label ="f" exp="f(x) = x / (1 + x)"/>

    <element type="function" label="f">

    <show object="true" label="false"/>

    <objColor r="0" g="0" b="0" alpha="0.0"/>

    <layer val="0"/>

    <labelMode val="0"/>

    <animation step="1" speed="1" type="0" playing="false"/>

    <lineStyle thickness="2" type="0" typeHidden="1"/>

    </element>

    <command name="Intersect">

    <input a0="f" a1="c"/>

    <output a0="A" a1="B"/>

    </command>

    <element type="point" label="A">

    <show object="true" label="true"/>

    <objColor r="68" g="68" b="68" alpha="0.0"/>

    <layer val="0"/>

    <labelMode val="0"/>

    <coords x="NaN" y="NaN" z="1.0"/>

    <pointSize val="3"/>

    <pointStyle val="0"/>

    </element>

    <element type="point" label="B">

    <show object="true" label="true"/>

    <objColor r="68" g="68" b="68" alpha="0.0"/>

    <layer val="0"/>

    <labelMode val="0"/>

    <coords x="NaN" y="NaN" z="NaN"/>

    <pointSize val="3"/>

    <pointStyle val="0"/>

    </element>

    </construction>

    </geogebra>


    <?xml version="1.0" encoding="utf-8"?>

    <geogebra format="4.2" version="4.2.60.0" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggt...; xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLS...; >

    </geogebra>


    LibraryJavaScript:


    Preferences:

    <?xml version="1.0" encoding="utf-8"?>

    <geogebra format="4.0" xsi:noNamespaceSchemaLocation="http://www.geogebra.org/ggb...; xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLS...; >

    <gui>

    <window width="800" height="600" />

    <settings ignoreDocument="false" showTitleBar="true" />

    <labelingStyle val="3"/>

    <mouse reverseWheel="true"/>

    <font size="12"/>

    <menuFont size="-1"/>

    <tooltipSettings language="" timeout=""/>

    <graphicsSettings javaLatexFonts="false"/>

    </gui>

    <euclidianView>

    <size width="640" height="480"/>

    <coordSystem xZero="215.0" yZero="315.0" scale="50.0" yscale="50.0"/>

    <evSettings axes="true" grid="false" gridIsBold="false" pointCapturing="3" rightAngleStyle="2" checkboxSize="13" gridType="0"/>

    <bgColor r="255" g="255" b="255"/>

    <axesColor r="0" g="0" b="0"/>

    <gridColor r="192" g="192" b="192"/>

    <lineStyle axes="1" grid="10"/>

    <axis id="0" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true" axisCross="0.0" positiveAxis="false"/>

    <axis id="1" show="true" label="" unitLabel="" tickStyle="1" showNumbers="true" axisCross="0.0" positiveAxis="false"/>

    </euclidianView>

    <kernel>

    <continuous val="false"/>

    <decimals val="2"/>

    <angleUnit val="degree"/>

    <algebraStyle val="0"/>

    <coordStyle val="0"/>

    <localization digits="false" labels="true"/>

    <angleFromInvTrig val="false"/>

    <casSettings timeout="5" expRoots="true"/>

    </kernel>

    <scripting blocked="false"/>

    </geogebra>

photo
1

Tony:

I have opened your file... and there are the undefined points!!


It seems like a problema Reading the file.


Can you open it without problema?

photo
1

I get the error in GG 5, but not 4.2 or 4.4...strange bug...


Tony

photo
1

It works correctly on my Surface RT 8.1...I do not know what your problem can be...


Tony

photo
1

I have tried it right now from scratch (new file and entering the commands in the command Windows) in a Windows 8 machine with exactly the same results: It Works OK, but if I save the file and open it again, the intersection points A and B appear as undefined.


The java versión is slightly different, and the OS Windows 8 (x86 architecture).

So may be it is something specific of the versión of geogebra. Am I using the last versión 4.2.60.0 ?


This is a log summary

    GeoGebra 4.2.60.0 (04 October 2013)

    Java: 1.6.0_43

    Codebase: file://c:/Program%20Files%20x86/GeoGebra%204.2/

    OS: Windows 8

    Architecture: x86

    Heap: 989MB

    CAS: MPReduce .016


Let me try to upload the file:

https://ggbm.at/564163

photo
1

This is a extrange thing.


I have downloaded Geogebra again in the Windows 7 machine and installed it.


I have tried the example again and now it Works.

Now I can even open the previous buggy file and it corrrectly shos the points A and B.


I have now two Geogebra instalations that seem slightly different:


The new one identified as Geogebra which reports versión 4.2.60.0 WebStart running under java 1.7.0.45

and the old one identified as GeoGebra 4.2 which reports versión 4.2.60.0 running under java 1.6.0.43


That made me think that it could be a problema with the slightly different versions of GeoGebra (webstart or java based).

But in the Windows 8 machine I have exactly the same versión that I have installed right now, and it reproduces the bug.


so I cannot understand what could have happened.


I will reinstall GeoGebra in the Windows 8 machine to see if it corrects the "bug".


Thank you

photo
1

I have tried again under the machine with Windows 8 and the problema remains.


I have updated and reinstalled java and geogebra in both machines.


At first I had thought that reinstalling fixed the problema, but it does not.


I CAN NOW REPRODUCE THE BUG CONSISTENTLY.

It shows now like a real bug to me.


In both platforms (Windows 7 and Windows 8) and using geogebra 4.60.0 or the geogebra webstart (it does not make any difference).


If you open the file opening GeoGebra and then use file open, the two intersection points are displayed correctly.


If you double click in the file to open it using GeoGebra, the two points are undefined.


Please may any body test it and confirm the bug?


Let me upload the buggy file again.

https://ggbm.at/564171

© 2021 International GeoGebra Institute