Forum Topic - QNX Momentics:
   
QNX Momentics  
Using the system builder option of Momentics, and a stack crash occurs. The log entry is:

java.lang.StackOverflowError
	at org.eclipse.core.runtime.Path.computeSegmentCount(Path.java:450)
	at org.eclipse.core.runtime.Path.computeSegments(Path.java:467)
	at org.eclipse.core.runtime.Path.initialize(Path.java:602)
	at org.eclipse.core.runtime.Path.<init>(Path.java:163)
	at com.qnx.tools.ide.builder.internal.core.BuilderModel.findItems(Unknown Source)
	at com.qnx.tools.ide.builder.internal.core.items.SymlinkItem.isAbleToHaveChildren(Unknown Source)

The last item is repeated indefinitely until the stack is exhausted.
Re: QNX Momentics  
Post in IDE forum next time. Does you symlink is recursive some-how? Can you attach you system build project file (I 
assume it was system build)

On 08/17/2011 03:54 AM, David Somerton wrote:
> Using the system builder option of Momentics, and a stack crash occurs. The log entry is:
> 
> java.lang.StackOverflowError
> 	at org.eclipse.core.runtime.Path.computeSegmentCount(Path.java:450)
> 	at org.eclipse.core.runtime.Path.computeSegments(Path.java:467)
> 	at org.eclipse.core.runtime.Path.initialize(Path.java:602)
> 	at org.eclipse.core.runtime.Path.<init>(Path.java:163)
> 	at com.qnx.tools.ide.builder.internal.core.BuilderModel.findItems(Unknown Source)
> 	at com.qnx.tools.ide.builder.internal.core.items.SymlinkItem.isAbleToHaveChildren(Unknown Source)
> 
> The last item is repeated indefinitely until the stack is exhausted.
> 
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post88135
> 
Re: QNX Momentics  
Hello Elena,

  Thank you for your reply.

  I do not find any IDE forum, I do not know anything about this place.
  This is my first time to ask about a problem with QNX tools.

  I do not know anything about symlink, the host is windows XP.

  I have attached the bld file produced by the Momentics IDE.

Attachment: Text project.bld 5.28 KB
Re: QNX Momentics  
Hi, David,

The problem is in two of the symlinks in the project model:

    /bin -> /bin
    /lib -> /lib

These are circular links, so the IDE code traversed them recursively and ran off the stack.

You can fix this by just creating bin and lib as directories instead of links, or link them to some different paths.

HTH,

Christian
Re: QNX Momentics  
> Hi, David,
> 
> The problem is in two of the symlinks in the project model:
> 
>     /bin -> /bin
>     /lib -> /lib
> 
> These are circular links, so the IDE code traversed them recursively and ran 
> off the stack.
> 
> You can fix this by just creating bin and lib as directories instead of links,
>  or link them to some different paths.
> 
> HTH,
> 
> Christian


Hi Christian,

  Thanks for the response.
  I think the IDE should show the warning about recursion, rather than crashing.
  This would reduce the amount of frustration with the tool, for people who do not use them often, but are required to 
suddenly learn in a short period.
  The system is not easy to use, and seems to take a long period of exposure to become familiar to all of the quirks.

Dave.
Re: QNX Momentics  
Yes it should not crash, it is a bug, we just give a workaround to unblock you

On 08/18/2011 08:49 PM, David Somerton wrote:
>> Hi, David,
>>
>> The problem is in two of the symlinks in the project model:
>>
>>     /bin -> /bin
>>     /lib -> /lib
>>
>> These are circular links, so the IDE code traversed them recursively and ran 
>> off the stack.
>>
>> You can fix this by just creating bin and lib as directories instead of links,
>>  or link them to some different paths.
>>
>> HTH,
>>
>> Christian
> 
> 
> Hi Christian,
> 
>   Thanks for the response.
>   I think the IDE should show the warning about recursion, rather than crashing.
>   This would reduce the amount of frustration with the tool, for people who do not use them often, but are required to
 suddenly learn in a short period.
>   The system is not easy to use, and seems to take a long period of exposure to become familiar to all of the quirks.
> 
> Dave.
> 
> 
> 
> 
> _______________________________________________
> 
> OSTech
> http://community.qnx.com/sf/go/post88210
>