Re: problems importing pictures into etoys project
Luis Valente <[email protected]>
| Newsgroups | gmane.comp.lang.smalltalk.squeak.squeakland |
|---|---|
| Message-ID | <CAGzA_O6zgsapeoKTDqut1Cb6VHWnaVzTL3Tyx_CS175Zo=gyxQ@mail.gmail.com> |
Hi Karl I'll appreciate your attention. So I tryied to simulate the error and it dont occurs on my system to. But, i remember another etoys user on Master in Education who had similar error. Do that: 1 - put Etoys-to-go in a folder named for example Etoys-tó-go (note the o accute); 2 - try to start Etoys (in my system - vista 32 - etoys.exe can't reach the .image, so I give the path and it starts correctly but don't write the path in the ini file 3 - while etoys is running imported a picture file whithout problems; 4 - when I attempt to save the project I got the error UTF8 shown in attached printscreen. Also include the log hoping this could help. (note that this problem is very frequent. I'm teaching etoys to school teachers which reported same error serveral times) Thanks again, Luis[image: Imagem intercalada 1] 2012/6/20 karl ramberg <[email protected]> > On Wed, Jun 20, 2012 at 7:39 PM, Luis Valente <[email protected]> > wrote: > > Hi Kathleen, > > Many thanks for your help, but this is not the problem. The kid in > question > > knows very well how to insert pictures in etoys projects by dragging or > by > > inserting using the file dialog. The problem is that, at least in my > > thought, the computer's username is interfering with the insertion of > images > > in some strange way due it has portugues characters, because caption's > the > > message error is referring to UTF8 something... I think it is a problem > to > > developers, so I'll get detailled information about this and come again. > > Thank you :-) > > > > Luis > > If you can post the error log or a screenshot of the error we can > investigate. > I just tested opening a file called i called mariajosé.jpg and had no > issues. > It could be many reasons for the error message so we need some clues. > > Karl > > > > > > 2012/6/20 Harness, Kathleen <kharness-nzINlOoChub2fBVCVOL8/[email protected]> > >> > >> Hi Luis, > >> I have attached an example showing a thumbnail from my Pictures being > >> dragged into Etoys and showing it there too. > >> > >> If your student is trying to drag and drop a word document, it won't > work. > >> Moving words needs: CTRLc to copy and CTRLv to past highlighted text > into a > >> text box in Etoys for word docs. > >> > >> Hope this is helpful. > >> regards, > >> Kathleen > >> > >> ________________________________ > >> From: [email protected] > >> [[email protected]] on behalf of Luis Valente > >> [[email protected]] > >> Sent: Wednesday, June 20, 2012 11:19 AM > >> To: Squeakland List > >> Subject: [squeakland] problems importing pictures into etoys project > >> > >> Dear friends, > >> I'm in troubles with a project from one of my young students. The kid > >> needs to import a picture form documents folder, but all the attempts > aren't > >> succeed. I think it is because is user name in windows has an "é" (e > >> accute). So every time he tries to place the image in a etoys project > he get > >> a error message wich I cant reproduce from memory. > >> I suspect it is related to UTF8 coding. Few months ago, I found that > >> etoys-to-go wasn't functioning in a laptop width Windows 7! The user > name > >> computer's was "mariajosé" so, I edited the etoys.ini to reflect the > path > >> were .image was using changing th username "mariajosé" to "mariajosé" > and > >> corrected the problem. > >> So, I'm asking how can I do to solve permanently the problem width > >> pictures my little student is facing? > >> Thanks > >> > >> Luis > > > > > > > > > > -- > > All the best, > > Luís Valente > > www.valente.org.pt > > > > > > _______________________________________________ > > squeakland mailing list > > [email protected] > > http://lists.squeakland.org/mailman/listinfo/squeakland > > > -- All the best, Luís Valente www.valente.org.pt _______________________________________________ squeakland mailing list [email protected] http://lists.squeakland.org/mailman/listinfo/squeakland
image.jpeg
(image/jpeg, 152.1 KB) - not displayed
SqueakDebug.log
(application/octet-stream, 3.8 KB)
nil
20 June 2012 8:29:44 pm
VM: Win32 - a SmalltalkImage
Image: etoys5.0 [latest update: #2406]
SecurityManager state:
Restricted: false
FileAccess: true
SocketAccess: true
Working Dir C:\Users\ALT\Documents\My Squeak
Trusted Dir D:\Etoys-To-Go-5.0\Etoys-Tó-Go 5.0.app\Contents\Resources\ALT
Untrusted Dir C:\Users\ALT\Documents\My Squeak
UTF8TextConverter(Object)>>error:
Receiver: an UTF8TextConverter
Arguments and temporary variables:
aString: 'Invalid utf8 input detected'
Receiver's instance variables:
acceptingEncodings: nil
currentCharSize: 1
forceToEncodingTag: nil
UTF8TextConverter>>errorMalformedInput
Receiver: an UTF8TextConverter
Arguments and temporary variables:
Receiver's instance variables:
acceptingEncodings: nil
currentCharSize: 1
forceToEncodingTag: nil
UTF8TextConverter>>nextFromStream:
Receiver: an UTF8TextConverter
Arguments and temporary variables:
aStream: a ReadWriteStream 'ó~³'
character1: $³
value1: 179
character2: nil
value2: nil
unicode: nil
character3: nil
value3: nil
character4: nil
value4: nil
Receiver's instance variables:
acceptingEncodings: nil
currentCharSize: 1
forceToEncodingTag: nil
ByteString(String)>>unescapePercentsWithTextEncoding:
Receiver: 'test-image.000/%C3%A9100_0853-%C3%B3%7E%B3i%C3%A7.jpg'
Arguments and temporary variables:
encodingName: 'utf-8'
ans: a WriteStream 'test-image.000/é100_0853-ó~'
c: $~
asciiVal: 179
pos: 43
oldPos: 22
specialChars: a CharacterSet($% $+)
encodedStream: a ReadWriteStream 'ó~³'
converter: an UTF8TextConverter
Receiver's instance variables:
'test-image.000/%C3%A9100_0853-%C3%B3%7E%B3i%C3%A7.jpg'
--- The full stack ---
UTF8TextConverter(Object)>>error:
UTF8TextConverter>>errorMalformedInput
UTF8TextConverter>>nextFromStream:
ByteString(String)>>unescapePercentsWithTextEncoding:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ByteString(String)>>unescapePercents
[] in ResourceManager>>adjustToNewServer:from: {[:locator | oldUrl := ResourceLocator make: locator urlString relativeTo: o...]}
[] in WeakValueDictionary(Dictionary)>>keysDo: {[:association | aBlock value: association key]}
WeakValueDictionary(Set)>>do:
WeakValueDictionary(Dictionary)>>associationsDo:
WeakValueDictionary(Dictionary)>>keysDo:
ResourceManager>>adjustToNewServer:from:
Project>>storeOnServerInnards
[] in Project>>storeOnServerWithProgressInfo {[self storeOnServerInnards]}
BlockContext>>on:do:
[] in Project>>storeOnServerWithProgressInfo {[:bar | [self storeOnServerInnards] on: ProgressNotification do: [:e | ...]}
[] in ProgressInitiationException>>defaultMorphicAction {[result := workBlock value: progress]}
BlockContext>>ensure:
ProgressInitiationException>>defaultMorphicAction
ProgressInitiationException>>defaultAction
UndefinedObject>>handleSignal:
MethodContext(ContextPart)>>handleSignal:
ProgressInitiationException(Exception)>>signal
ProgressInitiationException>>display:at:from:to:during:
ProgressInitiationException class>>display:during:
Project>>storeOnServerWithProgressInfo
Project>>storeOnServerAssumingNameValid
[] in Project>>doArmsLengthCommand: {[self perform: aCommand]}
BlockContext>>ensure:
Project>>doArmsLengthCommand:
[] in Project>>armsLengthCommand:withDescription: {[self doArmsLengthCommand: aCommand]}
[] in DoCommandOnceMorph>>step {[goForIt value]}
BlockContext>>on:do:
DoCommandOnceMorph>>step
DoCommandOnceMorph(Morph)>>stepAt:
StepMessage(MorphicAlarm)>>value:
WorldState>>runLocalStepMethodsIn:
WorldState>>runStepMethodsIn:
PasteUpMorph>>runStepMethods
WorldState>>doOneCycleNowFor:
WorldState>>doOneCycleFor:
PasteUpMorph>>doOneCycle
[] in Project class>>spawnNewProcess {[[World doOneCycle. Processor yield. false] whileFalse. nil]}
[] in BlockContext>>newProcess {[self value. Processor terminateActive]}