Bug 346566 - Kst 2.0.x Revision fb63718 crashes when opening a specific .kst file.
Summary: Kst 2.0.x Revision fb63718 crashes when opening a specific .kst file.
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: kst
Classification: Applications
Component: ui (show other bugs)
Version: unspecified
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: kst
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-24 12:43 UTC by Roger Wehage
Modified: 2018-09-12 19:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Full core dump of crash (68.46 KB, text/plain)
2015-04-24 12:52 UTC, Roger Wehage
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Wehage 2015-04-24 12:43:06 UTC
I have been using the Kst 2.0.x - A data viewing program. Revision fb63718 app for about ten days or so. In this timeframe I have generated 20 or more .kst files. Until about two days ago the GUI may have crashed a couple times; I generally ignore an occasional crash because that may happen with many apps. However, for one specific simple.kst file the GUI crashes every time when I try to open it from the File menu. I copied simple.kst into bug.kst and the GUI crashed when opening that file as well. Thus the problem must be related to something in the file. As far as I know the GUI has not crashed with any other .kst file.

Reproducible: Always

Steps to Reproduce:
1. Launch the kst2 application from the Applications folder by double clicking on its icon.
2. Click on the File menu and select simple.kst or bug.kst from the list. If either file is not in the list then search in the subdirectory for it and select.
3. Nothing will happen for about 3 to 5 seconds until the program crashes and the "kst2 quit unexpectedly" dialog box comes up with options to Ignore, Report..., or Reopen.

Actual Results:  
The program crashed and the "kst2 quit unexpectedly" dialog box opened with options to Ignore, Report..., or Reopen.

Expected Results:  
Assuming that the involved files hadn't been inadvertently changed or deleted, one plot should have appeared in the window. If one or more involved files had been changed or deleted, an informative error message should have appeared instead of the "kst2 quit unexpectedly" dialog box.

I don't know how to pick out the important specifics to this crash, so I'm listing the contents of the faulty .kst file and a bit of the core dump. 

simple.kst file contents:

<?xml version="1.0" encoding="UTF-8"?>
<kst version="2.0">
    <data>
        <source reader="ASCII file" updateType="0" file="/Users/raw915/kst_data/simple.dat" fileRelative="simple.dat">
            <properties vector="INDEX" interpretation="1" delimiters="#" columntype="0" headerstart="1" fields="0" readfields="true" usedot="true" columnwidthisconst="false" readunits="false" units="0" limitFileBuffer="false" limitFileBufferSize="0" useThreads="0" asciiTimeFormat="hh:mm:ss.zzz" dataRate="1" offsetDateTime="false" offsetFileDate="false" offsetRelavive="true" dateTimeOffset="2015-04-16T19:09:42Z" relativeOffset="0" nanValue="0" updateType="0"/>
        </source>
    </data>
    <variables>
        <datavector file="/Users/raw915/kst_data/simple.dat" fileRelative="simple.dat" field="x" start="0" count="-1" skip="-1" doAve="false" startUnits="" rangeUnits="" initialVNum="1" initialXNum="1"/>
        <datavector file="/Users/raw915/kst_data/simple.dat" fileRelative="simple.dat" field="y" start="0" count="-1" skip="-1" doAve="false" startUnits="" rangeUnits="" initialVNum="2" initialXNum="13"/>
    </variables>
    <objects/>
    <relations>
        <curve xvector="x (V1)" yvector="y (V2)" color="#0000ff" alpha="255" headcolor="#000000" headalpha="255" barfillcolor="#000000" barfillalpha="255" haslines="true" linewidth="0" linestyle="0" haspoints="true" pointtype="0" pointdensity="0" pointsize="12" hasbars="false" ignoreautoscale="false" hashead="false" headtype="0" initialCNum="1"/>
    </relations>
    <graphics>
        <view name="View &amp;1" width="824" height="501" color="#ffffff" style="1">
            <plot tiedxzoom="false" tiedyzoom="false" leftlabelvisible="true" bottomlabelvisible="true" rightlabelvisible="true" toplabelvisible="true" globalfont=".Helvetica Neue DeskInterface,13,-1,5,50,0,0,0,0,0" globalfontscale="16" globalfontcolor="#000000" showlegend="false" hidebottomaxislabel="false" hidetopaxislabel="false" hideleftaxislabel="false" hiderightaxislabel="false" numberaxislabelscale="true" initialPlotNum="1" name="Plot">
                <position x="3" y="3" z="500"/>
                <rect x="0" y="0" width="818" height="495"/>
                <relativesize width="0.991515151515151" height="0.98605577689243" centerx="0.499393939393939" centery="0.499003984063745" posx="0.00363636363636364" posy="0.00597609561752988" leftx="0.00363636363636364" lefty="0.99203187250996" rightx="0.995151515151515" righty="0.99203187250996" fixaspect="false" lockpostodata="false"/>
                <transform m11="1" m12="0" m13="0" m21="0" m22="1" m23="0" m31="0" m32="0" m33="1"/>
                <pen style="1" width="1" miterlimit="2" cap="16" joinStyle="64">
                    <brush color="#000000" style="1"/>
                </pen>
                <brush color="#ffffff" style="1"/>
                <legend auto="true" title="" font=".Helvetica Neue DeskInterface,13,-1,5,50,0,0,0,0,0" fontscale="12" color="#000000" verticaldisplay="false" name="Legend">
                    <position x="64.741796875" y="43.788671875" z="500"/>
                    <rect x="0" y="0" width="0" height="0"/>
                    <relativesize width="0" height="0" centerx="0.0393335430067163" centery="0.0686040133069083" posx="0.0393335430067163" posy="0.0686040133069083" leftx="0.0393335430067163" lefty="0.0686040133069083" rightx="0.0393335430067163" righty="0.0686040133069083" fixaspect="false" lockpostodata="false"/>
                    <transform m11="1" m12="0" m13="0" m21="0" m22="1" m23="0" m31="0" m32="0" m33="1"/>
                    <pen style="1" width="0" miterlimit="2" cap="16" joinStyle="64">
                        <brush color="#000000" style="1"/>
                    </pen>
                    <brush color="#ffffff" style="1"/>
                </legend>
                <cartesianrender name="Cartesian Plot" type="1">
                    <relation tag="y vs x (C1)"/>
                </cartesianrender>
                <plotaxis id="xaxis" visible="true" log="false" reversed="false" autobaseoffset="true" baseoffset="false" forceoffsetmin="false" interpret="false" interpretation="1" display="4" displayformatstring="hh:mm:ss.zzz" majortickmode="5" minortickcount="5" autominortickcount="true" drawmajorticks="true" drawminorticks="true" drawmajorgridlines="true" drawminorgridlines="false" drawmajorgridlinecolor="#a0a0a4" drawminorgridlinecolor="#a0a0a4" drawmajorgridlinestyle="2" drawminorgridlinestyle="2" drawmajorgridlinewidth="1" drawminorgridlinewidth="1" significantdigits="9" rotation="0" zoommode="0" timezonename="GMT" timezoneoffset="0">
                    <plotmarkers xaxis="true" linecolor="#000000" linestyle="1" linewidth="1" curvemode="0"/>
                </plotaxis>
                <plotaxis id="yaxis" visible="true" log="false" reversed="false" autobaseoffset="true" baseoffset="false" forceoffsetmin="false" interpret="false" interpretation="1" display="4" displayformatstring="hh:mm:ss.zzz" majortickmode="5" minortickcount="5" autominortickcount="true" drawmajorticks="true" drawminorticks="true" drawmajorgridlines="true" drawminorgridlines="false" drawmajorgridlinecolor="#a0a0a4" drawminorgridlinecolor="#a0a0a4" drawmajorgridlinestyle="2" drawminorgridlinestyle="2" drawmajorgridlinewidth="1" drawminorgridlinewidth="1" significantdigits="9" rotation="0" zoommode="1" timezonename="GMT" timezoneoffset="0">
                    <plotmarkers xaxis="false" linecolor="#000000" linestyle="1" linewidth="1" curvemode="0"/>
                </plotaxis>
                <plotlabel id="leftlabel" visible="true" overridetext="" autolabel="true" font=".Helvetica Neue DeskInterface,13,-1,5,50,0,0,0,0,0" fontscale="16" fontcolor="#000000" fontuseglobal="true"/>
                <plotlabel id="rightlabel" visible="true" overridetext="" autolabel="true" font=".Helvetica Neue DeskInterface,13,-1,5,50,0,0,0,0,0" fontscale="16" fontcolor="#000000" fontuseglobal="true"/>
                <plotlabel id="toplabel" visible="true" overridetext="" autolabel="true" font=".Helvetica Neue DeskInterface,13,-1,5,50,0,0,0,0,0" fontscale="16" fontcolor="#000000" fontuseglobal="true"/>
                <plotlabel id="bottomlabel" visible="true" overridetext="" autolabel="true" font=".Helvetica Neue DeskInterface,13,-1,5,50,0,0,0,0,0" fontscale="16" fontcolor="#000000" fontuseglobal="true"/>
                <plotlabel id="numberlabel" visible="true" overridetext="" autolabel="true" font=".Helvetica Neue DeskInterface,13,-1,5,50,0,0,0,0,0" fontscale="16" fontcolor="#000000" fontuseglobal="true"/>
                <projectionrect x="-5" y="-0.15625" width="10" height="6.5625"/>
            </plot>
        </view>
    </graphics>
</kst>

Part of core dump:

Process:               kst2 [24857]
Path:                  /Applications/kst2.app/Contents/MacOS/kst2
Identifier:            ???
Version:               ??? (???)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           kst2 [24857]
User ID:               501

Date/Time:             2015-04-24 06:09:32.171 -0500
OS Version:            Mac OS X 10.10.3 (14D131)
Report Version:        11
Anonymous UUID:        8064A34E-E7F4-1792-7BD1-4832150225E0

Sleep/Wake UUID:       B78C034C-F852-47DB-A249-0D9ABC4FE7E8

Time Awake Since Boot: 280000 seconds
Time Since Wake:       2200 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_CRASH (SIGABRT)
Exception Codes:       0x0000000000000000, 0x0000000000000000

Application Specific Information:
Assertion failed: (CGFloatIsValid(x) && CGFloatIsValid(y)), function void CGPathMoveToPoint(CGMutablePathRef, const CGAffineTransform *, CGFloat, CGFloat), file Paths/CGPath.cc, line 254.

VM Region Summary:
ReadOnly portion of Libraries: Total=224.0M resident=189.1M(84%) swapped_out_or_unallocated=34.9M(16%)
Writable regions: Total=143.1M written=19.3M(13%) resident=31.1M(22%) swapped_out=0K(0%) unallocated=112.1M(78%)
 
REGION TYPE                      VIRTUAL
===========                      =======
Activity Tracing                   2048K
CG backing stores                  5592K
CG image                            224K
CG shared images                    368K
CoreGraphics                          4K
CoreImage                             8K
CoreUI image data                    52K
Dispatch continuations             16.0M
Kernel Alloc Once                     8K
MALLOC                             87.3M
MALLOC (admin)                       32K
Memory Tag 242                       12K
OpenCL                               32K
STACK GUARD                        56.0M
Stack                              13.1M
VM_ALLOCATE                        17.2M
__DATA                             17.4M
__IMAGE                             528K
__LINKEDIT                         84.7M
__TEXT                            139.3M
__UNICODE                           552K
mapped file                       124.8M
shared memory                         4K
===========                      =======
TOTAL                             565.1M

Model: MacBookPro9,1, BootROM MBP91.00D3.B08, 4 processors, Intel Core i7, 2.6 GHz, 8 GB, SMC 2.1f175
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In
Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533643465238432D50422020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533643465238432D50422020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xF5), Broadcom BCM43xx 1.0 (7.15.166.24.3)
Bluetooth: Version 4.3.4f4 15601, 3 services, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: TOSHIBA MK7559GSXF, 750.16 GB
Serial ATA Device: MATSHITADVD-R   UJ-8A8
USB Device: Hub
USB Device: FaceTime HD Camera (Built-in)
USB Device: Hub
USB Device: Hub
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: IR Receiver
USB Device: Apple Internal Keyboard / Trackpad
Thunderbolt Bus: MacBook Pro, Apple Inc., 25.1
Comment 1 Roger Wehage 2015-04-24 12:52:47 UTC
Created attachment 92200 [details]
Full core dump of crash
Comment 2 Netterfield 2016-02-24 23:05:32 UTC
Can you attach a copy of simple.dat?
Comment 3 Netterfield 2018-09-12 19:26:58 UTC
Unfortunately, without the data file referred to in the bug report, this is not really fixable.