In the case of Satellites class, the solution is to replace the
internal QList<Satellite*> satellites by QList<SatelliteP> satellite
with SatelliteP being QSharedPointer<Satellite>
Fabien
On Tue, May 26, 2009 at 15:32, Fabien Chéreau
<fabien.chereau@...> wrote:
> I cannot reproduce it, but I had the same problem with other classes.
> The problem is that your are not allowed to create 2 QSharedPointer
> independently referencing the same pointer. When you click on the
> satellite, apparently a new instance of QSharedPointer is created on
> the real pointer to the satellite. The simplest way to fix that is to
> use only QSharedPointer from the beginning, and never pass reference
> to the pointer itself.
> Fabien
>
> On Tue, May 26, 2009 at 14:12, Bogdan Marinov <daggerstab@...> wrote:
>> Hello,
>>
>> This is something I've just noticed. I think that it's connected to
>> the removal of the Boost dependency.
>>
>> (Development build, SVN revision 4682, Ubuntu 9.04)
>>
>> To reproduce:
>> 1. Click on a satellite hint to select it
>> 2. De-select it with a right click
>> 3. Click on the same satellite again
>> 4. Stellarium will crash with the following two last lines in the console:
>>> QSharedPointerData: internal self-check failed: pointer 0xb1757a0 was already tracked by another QSharedPointerData object
>>> Aborted
>>
>> The same happens with the telescope cross-hairs in my plug-in. :)
>>
>> Any ideas? I'm not sure if the problem is in Stellarium itself, or in
>> the plug-ins, as stars, planets and nebulae don't cause this
>> behaviour. Maybe the transition away from Boost is not done properly
>> in the plug-ins?
>>
>> Regards,
>> Bogdan Marinov
>>
>> ------------------------------------------------------------------------------
>> Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
>> is a gathering of tech-side developers & brand creativity professionals. Meet
>> the minds behind Google Creative Lab, Visual Complexity, Processing, &
>> iPhoneDevCamp asthey present alongside digital heavyweights like Barbarian
>> Group, R/GA, & Big Spaceship. http://www.creativitycat.com
>> _______________________________________________
>> Stellarium-pubdevel mailing list
>> Stellarium-pubdevel@...
>> https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel
>>
>
|