Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284820 - sci-electronics/ktechlab-0.3.6: crash when drag and drop items in circuit
Summary: sci-electronics/ktechlab-0.3.6: crash when drag and drop items in circuit
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High critical
Assignee: The Soldering-Iron Brotherhood
URL:
Whiteboard:
Keywords:
Depends on: 293089
Blocks:
  Show dependency tree
 
Reported: 2009-09-13 20:56 UTC by Eike Petersen
Modified: 2009-12-01 20:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Petersen 2009-09-13 20:56:51 UTC
After a crash the KCrash manager get it and tell u that it crashed.

Reproducible: Always

Steps to Reproduce:
1. emerge ktechlab with gpsim 0.22.0
2. start ktechlab
3. create circuit plan
4. drag and drop batteries to plan

Actual Results:  
Application 'ktechlab' crashing...

Expected Results:  
They should insert bateries

solved the problem by edit the file sci-electonics/ktechlab/files/ktechlab-0.3.6-gcc43.patch 

line 57 from
m_map = new ETMAP( m_size );
to
m_map = new ETMAP( m_size, std::vector<uint>( m_size ) );

than after rebuild it works.
Comment 1 acidhell 2009-10-18 07:10:13 UTC
(In reply to comment #0)
> After a crash the KCrash manager get it and tell u that it crashed.
> 
> Reproducible: Always
> 
> Steps to Reproduce:
> 1. emerge ktechlab with gpsim 0.22.0
> 2. start ktechlab
> 3. create circuit plan
> 4. drag and drop batteries to plan
> 
> Actual Results:  
> Application 'ktechlab' crashing...
> 
> Expected Results:  
> They should insert bateries
> 
> solved the problem by edit the file
> sci-electonics/ktechlab/files/ktechlab-0.3.6-gcc43.patch 
> 
> line 57 from
> m_map = new ETMAP( m_size );
> to
> m_map = new ETMAP( m_size, std::vector<uint>( m_size ) );
> 
> than after rebuild it works.
> 

If line 57 is changed then I can't rebuild.
Comment 2 Serg 2009-11-25 18:32:03 UTC
(In reply to comment #0)
You can use ktechlab-0.3.7 from http://sourceforge.net/projects/ktechlab/files/ktechlab/0.3.7/ktechlab-0.3.7.tar.bz2/download.

Download ktechlab-0.3.7.tar.bz2 to ./distfiles and create ktechlab-0.3.7.ebuild.
Compile and work on amd64.
Linux AMD_1 2.6.30-gentoo-r5 #4 SMP Wed Nov 4 12:16:14 MSK 2009 x86_64 AMD Turion(tm) 64 X2 Mobile Technology TL-50 AuthenticAMD GNU/Linux

ktechlab-0.3.7.ebuild

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/ktechlab/ktechlab-0.3.6.ebuild,v 1.8 2009/11/13 18:01:47 ssuominen Exp $

ARTS_REQUIRED=never
inherit kde

DESCRIPTION="KTechlab is a development and simulation environment for microcontrollers and electronic circuits"
HOMEPAGE="http://sourceforge.net/projects/ktechlab/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE=""

RDEPEND=">=dev-embedded/gpsim-0.22
	!>=dev-embedded/gpsim-0.23
	!>=dev-util/kdevelop-3.9"
DEPEND="${RDEPEND}"

need-kde 3.5

UNSERMAKE=""

S=${WORKDIR}/${PN}-0.3.7

#PATCHES=( "${FILESDIR}/${PN}-0.3-gcc-4.1.patch"
#	"${FILESDIR}/${P}-gcc42.patch"
#	"${FILESDIR}/${P}-gcc43.patch" )

I don't test all, but drug-drop on circuit work. This bug discussed on some debian's forums.
Comment 3 Víctor Ostorga (RETIRED) gentoo-dev 2009-12-01 20:34:01 UTC
sci-electronics/ktechlab removal, see bug #293089 for reference