Hello,
Should I be able to install Magma in Squeak 5.3?
*Image-----* /usr/home/edwin/Smalltalk53/magma.image Squeak5.3 latest update: #19481 Current Change Set: HomeProject Image format 68021 (64 bit)
*Virtual Machine---------------* /usr/home/edwin/Smalltalk53/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build/squeak Open Smalltalk Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.3142] Unix built on Aug 15 2022 13:47:05 Compiler: FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) platform sources revision VM: 202201220125 edwin@ottopedi:/usr/home/edwin/Smalltalk53/opensmalltalk-vm Date: Fri Jan 21 17:25:16 2022 CommitHash: 0df6348be Plugins: 202201220125 edwin@ottopedi:/usr/home/edwin/Smalltalk53/opensmalltalk-vm
I used SqueaKmap to install VERSION 1.65 tests of Magma and then, following https://wiki.squeak.org/squeak/2689, executed
MagmaRepositoryController create: '/home/edwin/MyMagmaFolder' root: PDAPerson new.
and got the message: MessageNotUnderstood: SmallInteger>>isByteString, as in the added screenshot.
Can this be my image/VM that cause this problem?
Kind regards,
Edwin Ancaer
Hi Edwin,
That's weird, this looks strangely familiar, but can't remember what it was.
Please turn on debug
MagmaPreferences debug: true.
and then try creating your database again. This will cause it to stop in the server code wherever the problem is. If you'll post that stack here, I can help.
I'm quite curious, thanks.
- Chris
On Fri, Sep 9, 2022 at 10:32 AM Edwin Ancaer eancaer@gmail.com wrote:
Hello,
Should I be able to install Magma in Squeak 5.3?
Image
/usr/home/edwin/Smalltalk53/magma.image Squeak5.3 latest update: #19481 Current Change Set: HomeProject Image format 68021 (64 bit)
Virtual Machine
/usr/home/edwin/Smalltalk53/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build/squeak Open Smalltalk Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.3142] Unix built on Aug 15 2022 13:47:05 Compiler: FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) platform sources revision VM: 202201220125 edwin@ottopedi:/usr/home/edwin/Smalltalk53/opensmalltalk-vm Date: Fri Jan 21 17:25:16 2022 CommitHash: 0df6348be Plugins: 202201220125 edwin@ottopedi:/usr/home/edwin/Smalltalk53/opensmalltalk-vm
I used SqueaKmap to install VERSION 1.65 tests of Magma and then, following https://wiki.squeak.org/squeak/2689, executed
MagmaRepositoryController create: '/home/edwin/MyMagmaFolder' root: PDAPerson new.
and got the message: MessageNotUnderstood: SmallInteger>>isByteString, as in the added screenshot.
Can this be my image/VM that cause this problem?
Kind regards,
Edwin Ancaer
Chris,
It looks like a memory problem.
I''l have to find some time to remove an old windows partition.
-- The full stack --- SmallInteger(Object)>>doesNotUnderstand: #isByteString ByteString(String)>>compare:with:collated: ByteString(String)>><= ByteSymbol(SequenceableCollection)>>at:ifAbsent: MaComputer>>meminfo:ifAbsent: MaComputer>>systemMemoryAvailable SmalltalkImage>>imageMemoryAvailable MaComputer>>isLowOnMemory MaObjectRepository>>freeSomeSpaceIfNecessary: [] in [] in MagmaRepositoryController>>processRequest: BlockClosure>>ensure: Mutex>>critical: MagmaRepositoryController>>requestCritical: [] in MagmaRepositoryController>>processRequest: BlockClosure>>on:do: MagmaRepositoryController>>processRequest: MagmaRepositoryController>>value: [] in MaLocalRequestServer(MaRequestServer)>>processRequest: BlockClosure>>on:do: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - MaLocalRequestServer(MaRequestServer)>>processRequest: MaLocalServerLink>>submit: [] in [] in [] in MagmaSession>>submit:to: [] in [] in BlockClosure>>maOn:do:on:do:on:do: BlockClosure>>on:do: [] in BlockClosure>>maOn:do:on:do:on:do: [] in [] in BlockClosure>>maOn:do:on:do: BlockClosure>>on:do: [] in BlockClosure>>maOn:do:on:do: BlockClosure>>on:do: BlockClosure>>maOn:do:on:do: BlockClosure>>maOn:do:on:do:on:do: [] in [] in MagmaSession>>submit:to: BlockClosure>>ensure: CursorWithMask(Cursor)>>showWhile: [] in MagmaSession>>submit:to: Mutex>>critical: MagmaSession>>submit:to: [] in MagmaSession>>submit: BlockClosure>>on:do: MagmaSession>>submit: MagmaSession>>primConnect [] in MagmaSession>>connect: BlockClosure>>ensure: Mutex>>critical: MagmaSession>>connect: MagmaRepositoryController>>connect MagmaRepositoryController>>createRepositoryAt: MagmaRepositoryController class>>create: MagmaRepositoryController class>>create:root: UndefinedObject>>DoIt Compiler>>evaluateCue:ifFail: Compiler>>evaluateCue:ifFail:logged: Compiler>>evaluate:in:to:environment:notifying:ifFail:logged: [] in SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo: BlockClosure>>on:do: SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo: SmalltalkEditor(TextEditor)>>evaluateSelection SmalltalkEditor(TextEditor)>>doIt SmalltalkEditor(TextEditor)>>doIt: SmalltalkEditor(TextEditor)>>dispatchOnKeyboardEvent: SmalltalkEditor(TextEditor)>>keyStroke: -- and more not shown --
Thanks,
Edwin *;
Op za 10 sep. 2022 om 04:45 schreef Chris Muller asqueaker@gmail.com:
Hi Edwin,
That's weird, this looks strangely familiar, but can't remember what it was.
Please turn on debug
MagmaPreferences debug: true.
and then try creating your database again. This will cause it to stop in the server code wherever the problem is. If you'll post that stack here, I can help.
I'm quite curious, thanks.
- Chris
On Fri, Sep 9, 2022 at 10:32 AM Edwin Ancaer eancaer@gmail.com wrote:
Hello,
Should I be able to install Magma in Squeak 5.3?
Image
/usr/home/edwin/Smalltalk53/magma.image Squeak5.3 latest update: #19481 Current Change Set: HomeProject Image format 68021 (64 bit)
Virtual Machine
/usr/home/edwin/Smalltalk53/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build/squeak
Open Smalltalk Cog[Spur] VM [CoInterpreterPrimitives
VMMaker.oscog-eem.3142]
Unix built on Aug 15 2022 13:47:05 Compiler: FreeBSD Clang 10.0.1
(git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
platform sources revision VM: 202201220125 edwin@ottopedi:/usr/home/edwin/Smalltalk53/opensmalltalk-vm
Date: Fri Jan 21 17:25:16 2022 CommitHash: 0df6348be Plugins: 202201220125 edwin@ottopedi:/usr/home/edwin/Smalltalk53/opensmalltalk-vm
I used SqueaKmap to install VERSION 1.65 tests of Magma and then,
following https://wiki.squeak.org/squeak/2689, executed
MagmaRepositoryController create: '/home/edwin/MyMagmaFolder' root: PDAPerson new.
and got the message: MessageNotUnderstood: SmallInteger>>isByteString,
as in the added screenshot.
Can this be my image/VM that cause this problem?
Kind regards,
Edwin Ancaer
Hi Edwin,
Ah, thanks for posting that. It's not a memory issue, it's actually a bug with some new code I put in a few months ago that only occurs when not running on Linux. I just fixed it. Sorry about that! However, I should let you know that Magma runs best on Linux, and is moving toward being only officially supported on Linux.
I also just updated the SqueakMap entry, so the above fix will be there in future installs. You don't have to start in a new image. You can either select version 1.65 in SqueakMap (with Installed checked, and all other checkboxes unchecked) and Install it on top of what you have (that is safe and won't create any bloat), or, you can simply load the one package with the fix, Ma-Core-cmm.338 in HTTP repository http://www.squeaksource.com/MaBase .
Sorry again for the inconvenience, with the above fix I think you're ready to get going with Magma. If any other questions or issues, please don't hesitate to let me know!
On Sat, Sep 10, 2022 at 5:18 AM Edwin Ancaer eancaer@gmail.com wrote:
Chris,
It looks like a memory problem.
I''l have to find some time to remove an old windows partition.
-- The full stack --- SmallInteger(Object)>>doesNotUnderstand: #isByteString ByteString(String)>>compare:with:collated: ByteString(String)>><= ByteSymbol(SequenceableCollection)>>at:ifAbsent: MaComputer>>meminfo:ifAbsent: MaComputer>>systemMemoryAvailable SmalltalkImage>>imageMemoryAvailable MaComputer>>isLowOnMemory MaObjectRepository>>freeSomeSpaceIfNecessary: [] in [] in MagmaRepositoryController>>processRequest: BlockClosure>>ensure: Mutex>>critical: MagmaRepositoryController>>requestCritical: [] in MagmaRepositoryController>>processRequest: BlockClosure>>on:do: MagmaRepositoryController>>processRequest: MagmaRepositoryController>>value: [] in MaLocalRequestServer(MaRequestServer)>>processRequest: BlockClosure>>on:do:
MaLocalRequestServer(MaRequestServer)>>processRequest: MaLocalServerLink>>submit: [] in [] in [] in MagmaSession>>submit:to: [] in [] in BlockClosure>>maOn:do:on:do:on:do: BlockClosure>>on:do: [] in BlockClosure>>maOn:do:on:do:on:do: [] in [] in BlockClosure>>maOn:do:on:do: BlockClosure>>on:do: [] in BlockClosure>>maOn:do:on:do: BlockClosure>>on:do: BlockClosure>>maOn:do:on:do: BlockClosure>>maOn:do:on:do:on:do: [] in [] in MagmaSession>>submit:to: BlockClosure>>ensure: CursorWithMask(Cursor)>>showWhile: [] in MagmaSession>>submit:to: Mutex>>critical: MagmaSession>>submit:to: [] in MagmaSession>>submit: BlockClosure>>on:do: MagmaSession>>submit: MagmaSession>>primConnect [] in MagmaSession>>connect: BlockClosure>>ensure: Mutex>>critical: MagmaSession>>connect: MagmaRepositoryController>>connect MagmaRepositoryController>>createRepositoryAt: MagmaRepositoryController class>>create: MagmaRepositoryController class>>create:root: UndefinedObject>>DoIt Compiler>>evaluateCue:ifFail: Compiler>>evaluateCue:ifFail:logged: Compiler>>evaluate:in:to:environment:notifying:ifFail:logged: [] in SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo: BlockClosure>>on:do: SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo: SmalltalkEditor(TextEditor)>>evaluateSelection SmalltalkEditor(TextEditor)>>doIt SmalltalkEditor(TextEditor)>>doIt: SmalltalkEditor(TextEditor)>>dispatchOnKeyboardEvent: SmalltalkEditor(TextEditor)>>keyStroke: -- and more not shown --
Thanks,
Edwin *;
Op za 10 sep. 2022 om 04:45 schreef Chris Muller asqueaker@gmail.com:
Hi Edwin,
That's weird, this looks strangely familiar, but can't remember what it was.
Please turn on debug
MagmaPreferences debug: true.
and then try creating your database again. This will cause it to stop in the server code wherever the problem is. If you'll post that stack here, I can help.
I'm quite curious, thanks.
- Chris
On Fri, Sep 9, 2022 at 10:32 AM Edwin Ancaer eancaer@gmail.com wrote:
Hello,
Should I be able to install Magma in Squeak 5.3?
Image
/usr/home/edwin/Smalltalk53/magma.image Squeak5.3 latest update: #19481 Current Change Set: HomeProject Image format 68021 (64 bit)
Virtual Machine
/usr/home/edwin/Smalltalk53/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build/squeak Open Smalltalk Cog[Spur] VM [CoInterpreterPrimitives VMMaker.oscog-eem.3142] Unix built on Aug 15 2022 13:47:05 Compiler: FreeBSD Clang 10.0.1 (git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2) platform sources revision VM: 202201220125 edwin@ottopedi:/usr/home/edwin/Smalltalk53/opensmalltalk-vm Date: Fri Jan 21 17:25:16 2022 CommitHash: 0df6348be Plugins: 202201220125 edwin@ottopedi:/usr/home/edwin/Smalltalk53/opensmalltalk-vm
I used SqueaKmap to install VERSION 1.65 tests of Magma and then, following https://wiki.squeak.org/squeak/2689, executed
MagmaRepositoryController create: '/home/edwin/MyMagmaFolder' root: PDAPerson new.
and got the message: MessageNotUnderstood: SmallInteger>>isByteString, as in the added screenshot.
Can this be my image/VM that cause this problem?
Kind regards,
Edwin Ancaer
Chris,
Thanks for solving that so quickly. I wanted to use Magma to get an idea on how an Object Database is working. But now, it seems that I overestimated myself: the documentation I found on Magma is not enough for me to get going. It feels like I miss some basic knowledge to really understand what you are writing. Or maybe there's just 35 years of Cobol programming that get in the way...
Are there 'standard' texts on object databases in general, that could help me?
Thanks,
Edwin
Op zo 11 sep. 2022 om 00:42 schreef Chris Muller ma.chris.m@gmail.com:
Hi Edwin,
Ah, thanks for posting that. It's not a memory issue, it's actually a bug with some new code I put in a few months ago that only occurs when not running on Linux. I just fixed it. Sorry about that! However, I should let you know that Magma runs best on Linux, and is moving toward being only officially supported on Linux.
I also just updated the SqueakMap entry, so the above fix will be there in future installs. You don't have to start in a new image. You can either select version 1.65 in SqueakMap (with Installed checked, and all other checkboxes unchecked) and Install it on top of what you have (that is safe and won't create any bloat), or, you can simply load the one package with the fix, Ma-Core-cmm.338 in HTTP repository http://www.squeaksource.com/MaBase .
Sorry again for the inconvenience, with the above fix I think you're ready to get going with Magma. If any other questions or issues, please don't hesitate to let me know!
On Sat, Sep 10, 2022 at 5:18 AM Edwin Ancaer eancaer@gmail.com wrote:
Chris,
It looks like a memory problem.
I''l have to find some time to remove an old windows partition.
-- The full stack --- SmallInteger(Object)>>doesNotUnderstand: #isByteString ByteString(String)>>compare:with:collated: ByteString(String)>><= ByteSymbol(SequenceableCollection)>>at:ifAbsent: MaComputer>>meminfo:ifAbsent: MaComputer>>systemMemoryAvailable SmalltalkImage>>imageMemoryAvailable MaComputer>>isLowOnMemory MaObjectRepository>>freeSomeSpaceIfNecessary: [] in [] in MagmaRepositoryController>>processRequest: BlockClosure>>ensure: Mutex>>critical: MagmaRepositoryController>>requestCritical: [] in MagmaRepositoryController>>processRequest: BlockClosure>>on:do: MagmaRepositoryController>>processRequest: MagmaRepositoryController>>value: [] in MaLocalRequestServer(MaRequestServer)>>processRequest: BlockClosure>>on:do:
MaLocalRequestServer(MaRequestServer)>>processRequest: MaLocalServerLink>>submit: [] in [] in [] in MagmaSession>>submit:to: [] in [] in BlockClosure>>maOn:do:on:do:on:do: BlockClosure>>on:do: [] in BlockClosure>>maOn:do:on:do:on:do: [] in [] in BlockClosure>>maOn:do:on:do: BlockClosure>>on:do: [] in BlockClosure>>maOn:do:on:do: BlockClosure>>on:do: BlockClosure>>maOn:do:on:do: BlockClosure>>maOn:do:on:do:on:do: [] in [] in MagmaSession>>submit:to: BlockClosure>>ensure: CursorWithMask(Cursor)>>showWhile: [] in MagmaSession>>submit:to: Mutex>>critical: MagmaSession>>submit:to: [] in MagmaSession>>submit: BlockClosure>>on:do: MagmaSession>>submit: MagmaSession>>primConnect [] in MagmaSession>>connect: BlockClosure>>ensure: Mutex>>critical: MagmaSession>>connect: MagmaRepositoryController>>connect MagmaRepositoryController>>createRepositoryAt: MagmaRepositoryController class>>create: MagmaRepositoryController class>>create:root: UndefinedObject>>DoIt Compiler>>evaluateCue:ifFail: Compiler>>evaluateCue:ifFail:logged: Compiler>>evaluate:in:to:environment:notifying:ifFail:logged: [] in SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo: BlockClosure>>on:do: SmalltalkEditor(TextEditor)>>evaluateSelectionAndDo: SmalltalkEditor(TextEditor)>>evaluateSelection SmalltalkEditor(TextEditor)>>doIt SmalltalkEditor(TextEditor)>>doIt: SmalltalkEditor(TextEditor)>>dispatchOnKeyboardEvent: SmalltalkEditor(TextEditor)>>keyStroke: -- and more not shown --
Thanks,
Edwin *;
Op za 10 sep. 2022 om 04:45 schreef Chris Muller asqueaker@gmail.com:
Hi Edwin,
That's weird, this looks strangely familiar, but can't remember what it
was.
Please turn on debug
MagmaPreferences debug: true.
and then try creating your database again. This will cause it to stop in the server code wherever the problem is. If you'll post that stack here, I can help.
I'm quite curious, thanks.
- Chris
On Fri, Sep 9, 2022 at 10:32 AM Edwin Ancaer eancaer@gmail.com wrote:
Hello,
Should I be able to install Magma in Squeak 5.3?
Image
/usr/home/edwin/Smalltalk53/magma.image Squeak5.3 latest update: #19481 Current Change Set: HomeProject Image format 68021 (64 bit)
Virtual Machine
/usr/home/edwin/Smalltalk53/opensmalltalk-vm/building/linux64x64/squeak.cog.spur/build/squeak
Open Smalltalk Cog[Spur] VM [CoInterpreterPrimitives
VMMaker.oscog-eem.3142]
Unix built on Aug 15 2022 13:47:05 Compiler: FreeBSD Clang 10.0.1
(git@github.com:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
platform sources revision VM: 202201220125 edwin@ottopedi:/usr/home/edwin/Smalltalk53/opensmalltalk-vm
Date: Fri Jan 21 17:25:16 2022 CommitHash: 0df6348be Plugins: 202201220125 edwin@ottopedi:/usr/home/edwin/Smalltalk53/opensmalltalk-vm
I used SqueaKmap to install VERSION 1.65 tests of Magma and then,
following https://wiki.squeak.org/squeak/2689, executed
MagmaRepositoryController create: '/home/edwin/MyMagmaFolder' root: PDAPerson new.
and got the message: MessageNotUnderstood:
SmallInteger>>isByteString, as in the added screenshot.
Can this be my image/VM that cause this problem?
Kind regards,
Edwin Ancaer
Hi Edwin,
I wanted to use Magma to get an idea on how an Object Database is working.
... Are there 'standard' texts on object databases in general, that could help me?
But now, it seems that I overestimated myself: the documentation I found on
Magma is not enough for me to get going.
There are books about object databases, however, they discuss a lot of academic aspects of ODBMS's that are not so practical in terms of getting up and running. For that, there's just, 1) create the database (which you've already figured out by your question in this email), 2) start a server and, 3) open a session.
Magma's "Getting Started" documentation is here, is this what you found?
https://wiki.squeak.org/squeak/2669
Please try to work through that page and let me know what questions you have.
It feels like I miss some basic knowledge to really understand what you are
writing. Or maybe there's just 35 years of Cobol programming that get in the way...
My first IT gig in 1988 was using COBOL. :)
- Chris
squeak-dev@lists.squeakfoundation.org