[Seaside] VM freezes; how to find the cause?

Bahman Movaqar Bahman at BahmanM.com
Sun May 26 12:06:51 UTC 2013


Yay!  Thanks Max.  At least now I can do something without closing Pharo :-)

Not sure how could I dump the stacktrace into a file but I've attached
the screenshot.

--
Bahman Movaqar  (http://BahmanM.com)
ERP Evaluation, Implementation, Deployment Consultant

On 2013-05-26 16:23, Max Leske wrote:
> When the image (VM as you say) stops responding, could you try hitting cmd + . (that's on Mac, try alt + . too)? That should interrupt the running process.
>
> Max
>
>
> On 26.05.2013, at 13:48, Bahman Movaqar <Bahman at BahmanM.com> wrote:
>
>> Apparently `initialize' is done correctly because when I put `self
>> halt.' at the bottom of `initialize' the VM actually halts there. But
>> after pushing the "proceed" button, it freezes again.
>>
>> <code>
>>
>> StRootComponent >>#initialize
>>    super initialize.
>>    self
>>        menuComponent: self initializeMenuComponent;
>>        listComponent: self initializeListComponent.
>>
>>
>> StRootComponent >>#initializeListComponent
>>    self listComponent: StListComponent new.
>>    self listComponent
>>        sortBlock: [ :items | items sortBy: [ :a :b | a deadline < b
>> deadline ] ];
>>        renderItemBlock: [ :task :html | self renderTask: task asRowOn:
>> html ].
>>    self showPendingTasks.
>>    self listComponent items: self testTasks.
>>
>>
>> StRootComponent >>#initializeMenuComponent
>>    self
>>        menuComponent:
>>            (StMenuComponent new
>>                addEntry: 'All' withAction: [ self showAllTasks ];
>>                addEntry: 'Completed' withAction: [ self
>> showCompletedTasks ];
>>                addEntry: 'Pending' withAction: [ self showPendingTasks ];
>>                addEntry: 'Missed' withAction: [ self showMissedTasks ];
>>                yourself)
>>
>>
>> StRootComponent >>#testTasks
>>    ^ OrderedCollection
>>        with:
>>            (StTask new
>>                deadline: Date yesterday;
>>                completed: false;
>>                taskName: 'Missed task')
>>        with:
>>            (StTask new
>>                deadline: Date tomorrow;
>>                completed: false;
>>                taskName: 'Pending task')
>>        with:
>>            (StTask new
>>                deadline: Date tomorrow;
>>                completed: true;
>>                taskName: 'Already completed task')
>> </code>
>>
>> TIA,
>>
>> --
>> Bahman Movaqar  (http://BahmanM.com)
>> ERP Evaluation, Implementation, Deployment Consultant
>>
>> On 2013-05-26 15:04, Johan Brichau wrote:
>>> On 26 May 2013, at 12:30, Bahman Movaqar <Bahman at BahmanM.com> wrote:
>>>
>>>> As I said, I'm using Pharo (2.0).
>>> sorry, missed that part.
>>>
>>>> This means that something is going wrong in the `initialize' method, right?
>>> Possibly. What is the code of your initialize method?
>>> The most common cause would be an infinite loop by doing a 'self initialize' instead of a super initialize inside your initialize method.
>>>
>>> Johan_______________________________________________
>>> seaside mailing list
>>> seaside at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>>>
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Pharo-Stacktrace.png
Type: image/png
Size: 170609 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20130526/91862b9f/Pharo-Stacktrace-0001.png


More information about the seaside mailing list