[Pharo-users] voyage in singleton mode

2021-06-01 Thread Jesus Mari Aguirre
Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one
doubt, is voyage thread safe? or do I have to take care about using a Mutex
because multiple teapot instances can call it.
Thank you all!


[Pharo-users] Re: voyage in singleton mode

2021-06-01 Thread Norbert Hartl
You should not have to worry. The two possible culprits are the VOCache which 
should be thread safe done by a semaphore. The other one is the connection to 
the database. Here the connection pool removes that problem.

Hope that answers your question. I use it just as it is in a concurrent 
environment.

Norbert


> Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre :
> 
> Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one 
> doubt, is voyage thread safe? or do I have to take care about using a Mutex 
> because multiple teapot instances can call it.
> Thank you all! 


[Pharo-users] And it goes on - How do I fix a missing repository

2021-06-01 Thread David Pennington
I am obviously out of the loop when it comes to all of this repository stuff. 

So, I have imported my 8.0 code into 9.0 but I can’t add an extension method to 
ScaledDecimal because a repository is missing. I check what to do and get sent 
to Iceberg. Somehow, as a newbie, I am supposed to understand how iceberg works 
but, being a 76 year old VAST Smalltalker, I don’t. Surely, when I install 9.0, 
qashouldn’t I get everything I need for a basic image?

What do I do next. Attached is a screenshot of Iceberg.


David

[Pharo-users] Re: And it goes on - How do I fix a missing repository

2021-06-01 Thread Esteban Lorenzano
Hi,

I am sorry, but why you need a repository to add an extension methods?
To add an extension, the easiest way to open calypso and put your method in 
ScaledDecimal. Then you can use the menu right clicking on the method you added 
:

The fact that you need a repository to save those changes later is completely 
orthogonal to your problem :)
cheers!
Esteban

On Jun 1 2021, at 5:26 pm, David Pennington  wrote:
> I am obviously out of the loop when it comes to all of this repository stuff.
>
> So, I have imported my 8.0 code into 9.0 but I can’t add an extension method 
> to ScaledDecimal because a repository is missing. I check what to do and get 
> sent to Iceberg. Somehow, as a newbie, I am supposed to understand how 
> iceberg works but, being a 76 year old VAST Smalltalker, I don’t. Surely, 
> when I install 9.0, qashouldn’t I get everything I need for a basic image?
>
> What do I do next. Attached is a screenshot of Iceberg.
>
> David

[Pharo-users] Re: voyage in singleton mode

2021-06-01 Thread Jesus Mari Aguirre
Thanks Norbert! Voyage is a great piece of software.

El mar., 1 jun. 2021 11:53, Norbert Hartl  escribió:

> You should not have to worry. The two possible culprits are the VOCache
> which should be thread safe done by a semaphore. The other one is the
> connection to the database. Here the connection pool removes that problem.
>
> Hope that answers your question. I use it just as it is in a concurrent
> environment.
>
> Norbert
>
>
> > Am 01.06.2021 um 11:34 schrieb Jesus Mari Aguirre <
> jmariagui...@gmail.com>:
> >
> > Hello all, I'm developing a tepot+voyage(mongodb) web app and I have one
> doubt, is voyage thread safe? or do I have to take care about using a Mutex
> because multiple teapot instances can call it.
> > Thank you all!
>


[Pharo-users] Image crashed on Parallels

2021-06-01 Thread Davide Varvello via Pharo-users
Hi Guys,
I'm running a 32bit image (Pharo5) on OSX Mojave on Parallels but
unfortunately it crashes.
The same image is working on my old mac with Mojave so I'm wondering what
the issue is.

Reading the dump file it seems a display problem but I'm not a vm expert so
here is the dmp, I'm seeking help from you, thanks
Davide

Segmentation fault Tue Jun  1 19:03:55 2021


VM: 201707012338 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $
Date: Sat Jul 1 16:38:23 2017 -0700 $
Plugins: 201707012338 https://github.com/OpenSmalltalk/opensmalltalk-vm.git
$

C stack backtrace & registers:
eax 0x001b ebx 0x797b3147 ecx 0x001c9f18 edx 0x001c9f30
edi 0x esi 0x ebp 0xbfed4bb8 esp 0xbfed4ba0
eip 0xa7d8e957
0   libsystem_platform.dylib0xa7d8e957 _platform_strstr + 40
1   Pharo   0x0017e440 reportStackState + 819
2   Pharo   0x0017e7c6 sigsegv + 163
3   libsystem_platform.dylib0xa7d90bbe _sigtramp + 46
4   ??? 0x 0x0 + 4294967295
5   Pharo   0x00178bf8 -[sqSqueakOSXOpenGLView
setupOpenGL] + 149
6   Pharo   0x00179617 -[sqSqueakOSXOpenGLView
drawRect:flush:] + 182
7   Pharo   0x00178a7a -[sqSqueakOSXOpenGLView
drawThelayers] + 105
8   Pharo   0x0018027b -[sqSqueakScreenAndWindow
ioForceDisplayUpdate] + 196
9   Pharo   0x0017ff49 ioForceDisplayUpdate + 61
10  Pharo   0x0013e3ab primitiveShowDisplayRect
+ 191
11  Pharo   0x000ff9d8 interpret + 26051
12  Pharo   0x00108e8a
enterSmalltalkExecutiveImplementation + 135
13  Pharo   0x000f969b interpret + 646
14  Pharo   0x0017f9b9 -[sqSqueakMainApplication
runSqueak] + 476
15  Foundation  0x95216f18 __NSFirePerformWithOrder
+ 413
16  CoreFoundation  0x9381de5a
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 22
17  CoreFoundation  0x9381dd83 __CFRunLoopDoObservers +
459
18  CoreFoundation  0x937c4dc2 __CFRunLoopRun + 2365
19  CoreFoundation  0x937c4188 CFRunLoopRunSpecific +
584
20  CoreFoundation  0x937dceed CFRunLoopRunInMode + 82
21  HIToolbox   0x92de5b71 RunCurrentEventLoopInMode
+ 323
22  HIToolbox   0x92de573c ReceiveNextEventCommon +
438
23  HIToolbox   0x92de5567
_BlockUntilNextEventMatchingListInModeWithFilter + 71
24  AppKit  0x914a8190 _DPSNextEvent + 1164
25  AppKit  0x914a6d5b -[NSApplication(NSEvent)
_nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 957
26  AppKit  0x914a6996 -[NSApplication(NSEvent)
nextEventMatchingMask:untilDate:inMode:dequeue:] + 108
27  AppKit  0x914a1037 -[NSApplication run] +
751
28  AppKit  0x91490e47 NSApplicationMain + 1140
29  libdyld.dylib   0xa7ba7051 start + 1


Smalltalk stack dump:
0xbfed6bcc I DisplayScreen>forceToScreen: 0x437f528: a(n) DisplayScreen
0xbfed6be8 M [] in DisplayScreen>forceDamageToScreen: 0x437f528: a(n)
DisplayScreen
0xbfed6c0c M OrderedCollection>do: 0x414d060: a(n) OrderedCollection
0xbfed6c38 I DisplayScreen>forceDamageToScreen: 0x437f528: a(n)
DisplayScreen
0xbfed6c5c I WorldState>forceDamageToScreen: 0x4809e60: a(n) WorldState
0xbfed6c88 I WorldState>displayWorld:submorphs: 0x4809e60: a(n) WorldState
0xbfed6cb0 I WorldMorph>displayWorld 0x4a659e0: a(n) WorldMorph
0xbfed6ccc M [] in WorldState>displayWorldSafely: 0x4809e60: a(n) WorldState
0xbfed6ce4 M BlockClosure>on:do: 0xfed4928: a(n) BlockClosure
0xbfed6d04 M BlockClosure>ifError: 0xfed4928: a(n) BlockClosure
0xbfed6d28 I WorldState>displayWorldSafely: 0x4809e60: a(n) WorldState
0xbfed6d4c I WorldState>doOneCycleNowFor: 0x4809e60: a(n) WorldState
 0xef60ec0 s WorldState>doOneCycleFor:
 0xef60f20 s WorldMorph>doOneCycle
 0xec74820 s [] in MorphicUIManager>spawnNewProcess
 0xec746b8 s [] in BlockClosure>newProcess

Most recent primitives
fractionPart
truncated
fractionPart
truncated
@
@
@
@
@
@
@
@
**PrimitiveFailure**
**PrimitiveFailure**
@
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
integerAt:put:
truncated
truncated
truncated
bitShiftMagnitude:
digitAdd:
normali

[Pharo-users] FileDoesNotExistException: '/.VolumeIcon.icns'

2021-06-01 Thread Davide Varvello via Pharo-users
Hi Guys
Opening the File Browser on Pharo8 (and also on Pharo9) gives me
FileDoesNotExistException: '/.VolumeIcon.icns'

Can you help me please?
Davide



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html