有人碰到过百度地图java内存泄露检测工具问题吗

  之前在百度地图上可以看到全岛大部分的干道上都有全景图的,为什么最近看不到了啊,现在就只有海口和三亚有了。我觉得百度地图全景做得挺好的,取消咱们海南的全景地图了怪可惜的。唉。。。
楼主发言:4次 发图:0张
  这个真不知道,怪不得最近都看不到了  
  郁闷,不会是版权问题吧。目前只有腾迅街景可以看了,不过只有海口、三亚、东方、博螯四个地区的。
  @定安咕噜 1楼
22:36:40  这个真不知道,怪不得最近都看不到了  -----------------------------  我猜有两种可能:1.百度全景要收费。  2.地方政府不让咱海南的自然美景一览无余,  不然人家通过全景就可以把海南看遍了。
  @wangliyingzx 2楼
12:59:28  郁闷,不会是版权问题吧。目前只有腾迅街景可以看了,不过只有海口、三亚、东方、博螯四个地区的。  -----------------------------  听你这么一说,我才知道有腾讯街景。。。
  最近菲律宾,越南.................
  @hainan楼
23:02:41  最近菲律宾,越南.................  -----------------------------  说说呗,有越南、菲律宾什么事?
  看不了了,很可惜呀。
  估计是下面市县没人看,没看头吧
  这样就避免了利用地图来争吵谁的城市大谁的小,百度做了件好事,  
  目前海南全景地图腾讯地图只有海口,三亚,东方(八所),琼海(博鳌)
请遵守言论规则,不得违反国家法律法规后使用快捷导航没有帐号?
暂时没有人问过相似的问题,你可以做第一个提问题的人
查看: 2364|回复: 3
紧急求助!使用GroundOverlay动态贴图,疑似有内存泄露问题!
SDK版本:3.2
Android系统:4.2.2
手机:华为 G750-T01
我需要用GroundOverlay显示自己的数据,刷地图的时候动态添加256X256 Bitmap到GroundOverlay对象中显示。当使用一段时间后(不停的放大缩小比例尺,大概2分钟),程序出现崩溃退出,getNativeHeapSize()输出的值不断增加,出现fatal error:Fatal signal 11 (SIGSEGV) at 0x (code=1), thread 28438 (Tmcom-MapData)。
因为项目比较急,恳请尽快答复!!!
我是在OverlayDemo的代码基础上做的修改。如下:
private final Lock mOverlayLock = new ReentrantLock();
& & Vector&GroundOverlay& mGroundOverlay = new Vector&GroundOverlay&();
& && && && &public void onMapStatusChangeFinish(MapStatus arg0) {
& && && && && & // TODO Auto-generated method stub
& && && && && & {
& && && && && && &&&int myProcessID = Process.myPid();
& && && && && && &&&int [] pids = new int[]{myProcessID};
& && && && && && &&&ActivityManager mActivityManager =
& && && && && && && && && & (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE);
& && && && && && &&&MemoryInfo[] mems = mActivityManager.getProcessMemoryInfo(pids);
& && && && && && &&&android.app.ActivityManager.MemoryInfo memoryInfo = new ActivityManager.MemoryInfo();
& && && && && && &&&mActivityManager.getMemoryInfo(memoryInfo);
& && && && && && &&&if(mems != null){
& && && && && && && && &Log.d(&mems&, &mem: dalvikPrivate=& + mems[0].dalvikPrivateDirty
& && && && && && && && && && &&&+&,dalvikShared=& + mems[0].dalvikSharedDirty
& && && && && && && && && && &&&+&,nativePrivate:& + mems[0].nativePrivateDirty
& && && && && && && && && && &&&+&,nativeShared:& + mems[0].nativeSharedDirty
& && && && && && && && && && &&&+&,lowMemory:& + memoryInfo.lowMemory
& && && && && && && && && && &&&+&\n,NativeHeapSize(k):& + (Debug.getNativeHeapSize()&&10)
& && && && && && && && && && &&&+&,NativeHeapFreeSize(k):& + (Debug.getNativeHeapFreeSize()&&10));
& && && && && && &&&}
& && && && && & }
& && && && && & mOverlayLock.lock();
& && && && && & //地图状态发生变化时,删除原来的Overlay
& && && && && & for(int i=mGroundOverlay.size()-1; i&=0; i--){
& && && && && && &&&mGroundOverlay.get(i).getImage().recycle();
& && && && && && &&&mGroundOverlay.get(i).remove();
& && && && && && &&&mGroundOverlay.remove(i);
& && && && && & }
& && && && && & mOverlayLock.unlock();
& && && && && & //重新添加GroundOverlay
& && && && && & reloadOverlays();
& && && && &}
& && &&&//使用子线程添加Overlay,动态创建的bitmap大小为256X256
& && &&&private void reloadOverlays(){
& && &&&new Thread(){
& && && && &@Override
& && && && &public void run() {
& && && && && & // TODO Auto-generated method stub
& && && && && & mOverlayLock.lock();
& && && && && & Paint paint = new Paint();
& && && && && & paint.setColor(Color.argb(0x30, 0x10, 0x10, 0x10));
& && && && && & for(int y=0; y&5; y++)
& && && && && & for(int x=0; x&3; x++){
& && && && && && &&&Bitmap bmp = Bitmap.createBitmap(256, 256, Config.ARGB_8888);
& && && && && && &&&//渲染一张bitmap
& && && && && && &&&renderBmp(bmp);
& && && && && && &&&BitmapDescriptor bd = BitmapDescriptorFactory.fromBitmap(bmp);
& && && && && && && && &
& && && && && && &&&LatLng southwest = mBaiduMap.getProjection().fromScreenLocation(new Point(x*256,y*256));
& && && && && && &&&LatLng northeast = mBaiduMap.getProjection().fromScreenLocation(new Point((x+1)*256,(y+1)*256));
& && && && && && &&&LatLngBounds bounds = new LatLngBounds.Builder().include(northeast)
& && && && && && && && && & .include(southwest).build();
& && && && && && &&&OverlayOptions ooGround = new GroundOverlayOptions()
& && && && && && && && && & .positionFromBounds(bounds).image(bd);
& && && && && && &&&mGroundOverlay.add((GroundOverlay) mBaiduMap.addOverlay(ooGround));
& && && && && && &&&bmp.recycle();
& && && && && && &&&bmp =
& && && && && & }
& && && && && & mOverlayLock.unlock();
& && && && && &
& && && && &}
& && && && &
& && &&&}.start();
//渲染图片。如果使用纯色填充bmp,没有发现异常,如果每个bmp上随机打点。则在不停的放大缩小之后会出现Fatal的崩溃问题,
//getNativeHeapSize()获得值不停的增长,直至程序崩溃,疑似内存泄露。
private void renderBmp(Bitmap bmp){
& && &&&Canvas&&can = new Canvas(bmp);
& && &&&can.drawColor(Color.argb(0x30, 0x10, 0x10, 0x10));
& && &&&Paint paint = new Paint();
& && &&&paint.setColor(Color.argb(0x80, 0xA0, 0, 0));
& && &&&for(int i=0; i&10; i++){
& && && && &can.drawCircle((float)Math.random()*255,
& && && && && && &&&(float)Math.random()*255, 5, paint);
你好 感谢反馈 我们跟进看一下&&谢谢 ~
你好 感谢反馈 我们跟进看一下&&谢谢 ~
请问斑竹大概多久能有结果
请问斑竹大概多久能有结果
你好,内存泄漏的问题,在新版本修复,近期就会上线,请耐心等待
Powered by出口伊朗遇到的单据问题--- 有人碰到过吗? - 出口交流 -
福步外贸论坛(FOB Business Forum) |中国第一外贸论坛
& 出口伊朗遇到的单据问题--- 有人碰到过吗?
UID 278899
福步币 32 块
阅读权限 60
出口伊朗遇到的单据问题--- 有人碰到过吗?
最近有票去伊朗的货遇到一个棘手的事.&&具体情况如下:&&
1- 客户情况:我们有个伊朗客户,是个集团公司,下面有两个子公司 A和B公司
2- 订单情况:客户下了两个订单(008和009),采购公司是两个抬头(A和B 公司),分别采购干燥机(008订单)和混合机(009订单)
3- 收货人情况:两个公司名称不一样,但consignee 联系人信息是一样的
4- 装运情况:两个订单的货物一起出运,1个40大柜+1个40高柜. 其中008订单下的干燥机,拆分来装,除了40HQ高柜装满外,还有一部分装入40GP大柜中,009订单下的混合机也装入40GP中.& &也就是40GP集装箱里面同时有008和009的货物
5- 报关情况: 两份报关资料,抬头分别为A和B公司,货物分别为干燥机(008订单)和混合机(009订单)
6- 提单情况: 货代说出两份H/BL,也只能出H/BL.&&和客户沟通,确认可以.
日报关ok,货物顺利放行,期间邮件发两份H/BL给客户及目的港的货代,确认ok. 然后就准备两份全套正本单据(HBL,PL,CI,CO,Insurance)DHL客户, 后面就等货到港口,客户清关就好,想着这个客户年后还有将近90W美金的新订单,每天忙碌并快乐着,时间很快到了接近春节。
2月16号左右,客户突然电话说, 需要两份D/O,他们只有一份D/O,没法清关.&&客户手里明明有两份全套完整的单据, 怎么还少少一份? 不清楚D/O的意思,客户也说不清楚,只说他们的代理讲,必须需要两份,需要船公司(Line)改签.&&联系货代,说HBL出了两份,MBL只有一份.&&货代说联系船公司改一下,同时也联系目的港代理,看看能不能走拼箱方式.&&接近放假,船公司方面没有回复。
今天上班,问题出现了:
货代反馈,船公司出不了另外一个D/O.&&(只能是一份MBL).&&目的港货代和客户坚持要两份D/O,不然没法清关提货.&&上海的货代尝试过目的港采用拼箱的方式清关,不过伊朗方面回应说行不通.& &目前就卡着这,货物已经滞留一段时间,每天都有费用产生,希望有经验的代理或者有类似经历的朋友提出一些建议.&&先谢了.
希望上面的描述能够把问题说明白,下面是一些来往的邮件,供参考.&&若有疑问,欢迎提出,我会随时跟进.
上海货代给伊朗货代:
Dear Mohammad,
Per our customer request,pls check and solve the problems a.s.a.p.There are two HBL,Pls issue two D/O with cnee.If you have any reqeust from here,pls let us know urgently!
伊朗货代回复:
Please be noted as the ACTUAL CONSIGNEEs are two different parties and they have different planning & procedures to release it from the customs !&&IT IS AS PER CUSTOMS OF IRAN rules that shipping line should issue TWO different D/O against two different consignee's !!!
We can not issue D/O to two different consignee's as per rules here, so NECESSARILY you shall have to ask shipping line ORIGIN to instruct their Iranian counterpart to issue TWO different D/O and SPLITTING of the D/O between two different consignees so as they can start its customs process with Iranian customs as per rules of the Iranian customs.
We know that if it would be CHINA then we could issue two different D/O ourselves to the consignees but here we shall have to follow the Iranian customs&&!
PLEASE DO THE NEEDFUL AT ORIGIN SHIPPING LINE URGENTLY AS these consignee's have in emergency and also ongoing New Iranian Holidays are coming so avoid this delay also !!!
2月17 下午5点,上海代理回复:
Dear Mohammad,
& & Due to the Chinese New Year coming,shipping line has out off duty.
& & As I know,you are the cnee on MBL,can u do customs clearance under your company name.And then u delivery order with both cnee.It's like LCL shipment.
伊朗代理回复:
Dear friend King,
Actually this can not be done practically here in Iran as all the relevant consignee’s&&must do it himself as they want to take duty exempt for this and it is not possible even for other party to do its duty/tax process.
Here in Iran the tax/duty process is very complicated and lengthy also and Iranian customs has own particular rules & procedures STRICT ONES!!!.
Dear&&King / Andrew,
Please be noted there is no other option except splitting the D/O by the shipping line so we shall have to necessarily wait till holidays !
Further the cost will be for container demurrage and detention per day per container basis. The demurrage cost for container per day will be charged as of IRR 350000 approx. per container.
伊朗货代单和船东单的问题- 2 往来邮件 2月18日邮件
中午12:30 上海货代:
Dear Mohammad,
Is there any news?Pls keep us know everything,thank u!
下午3:20&&伊朗代理:
Please be noted here is no news for this, the only option is to instruct shipping line for D/O SPLITTING at Origin so that is necessary and only option !
If consignee could do its customs duty process on the name of ONE CONSIGNEE then later they could separate their cargo but it is not possible as per consignee !
Please let us know once you would do its D/O splitting with shipping line !
上海货代:
Dear friend,
But can u let us know how is the process for LCL shipment?Why u can't handle it like LCL shipment?
伊朗货代单和船东单的问题- 2 往来邮件 2月25日邮件
下午1:30&&上海货代:
We are checking with shipping line and try to apply two D/O at destination.
下午2:30&&上海货代:
Dear Mohammad,
& & Per talking with shipping line today,they can't take two D/O at destination.Do u have any other idea to solve the problems at destination?Pls&&ask destinaiton shipping line what can we do here.
& & Looking forward to your urgent reply!
下午4:00 伊朗代理回复:
Welcome back from your holidays and hope you would have enjoyed your holidays !
Please ask shipping line to split D/O to two different consignees exactly AS PER THEIR RELEVANT CARGOES IN THE CONTAINERS!!!
Please be careful to give exact & CORRECT information of the cargo which belong to each particular consignees accordingly.
Hope my point is clear, and please let us know once shipping line would finish this confirmation and if you could take written copy/letter from line for this that will be great !
下午4:20&&伊朗代理:
Dear King,
Please be noted here in Iran we are doing it and it is usual practice here JUST YOU WOULD REQUEST SHIPPING LINE at Origin and they will send written email to Iran and at IRAN THE SHIPPING LINE will split the D/O !!!
JUST FROM CHINA THEY WOULD SEND WRITTEN CONFIRMATION to IRAN&&!!!
下午4:40 上海货代回复:
Dear Mohammad,
We asked the shipping line,but they refuse our request!
Can u do customs clearance for this full container under your company?Then u split the D/O to cnee?
下午4:50 伊朗代理:
dear King,
for this option we can not do its clearance as IN IRAN the customs duty process is very complex and lengthy and it is not as easy as in your country or any other place.
The ONE OF THE ACTUAL consignee's should do it himself and after clearance they would split the cargo accordingly.
Mr. Galichi (RIC) please confirm can you do this option, please comments. As you know upcoming new year holidays in IRAN would cause more delay if you could not start its duty/clearance process immediately !!!
下午六点, 客户 (Ghalichi)
Kindly please solve this issue urgently. According to Iranian customs clearance regulation,
there is no possibility for us to release two goods for two different companies.
Furthermore, please do not forget demurrage cost day by day!
Awaiting prompt action as we are in upcoming of our new year holidays.
现在问题好像僵在这里,有新的情况会及时更新,希望熟悉伊朗清关的货代朋友,或者有过类似经历的外贸同仁能够发布你们的观点和看法,说不定能够在交流中找出问题的解决之道.& &tks in advance.
UID 278899
福步币 32 块
阅读权限 60
需要弄明白的几件事:
1-& & & & 为何货代的两份HML, 只能出一份船东单? 报关的时候明明是两个consignee!
问题出在哪里,属于哪一方的过失?!
2-& & & & 船公司不肯签发两个D/O的理由?!补救或变通的方法是什么?
3-& & & & 有什么切实可行的方法,尽快清关放货?拖的时间越长,成本越高,客户的不满情绪也会增加,必须最短时间里面,拿出解决的方案。
4-& & & & 客户或者客户代理方面,是否还有其他的办法? 如果需要用钱解决,大概的费用?
(Jocelyn 小雷)
UID 420791
积分 18986
福步币 49 块
阅读权限 80
船公司分不了单的原因在哪里,不知道,这边订舱的,你打电话问回船公司,不过你需要提供订舱号。
UID 2359523
阅读权限 60
你报关分成几份和船公司出多少份提单是没有任何关系的,关键在于订舱和补料的时候,问问你货代就清楚了,可能在订舱的时候一个BOOKING就订了两个柜子,补料的时候也是将两个柜子补在一个舱单上面去,但这些所有的前提是收货人必须为同一个人,即使联系人是一样的,也不能合拼只出一份船东单;
UID 2476811
阅读权限 25
看了感觉身临其境& &看了其他人的回答觉得有道理& &问你货代问题出在哪里&&怎么去解决,我做货代的知道,这一拖就是不少费用的
[ 本帖最后由 fage007 于
15:32 编辑 ]
UID 966448
阅读权限 60
回复 #2 gycn007 的帖子
楼主的两票货是混装拼箱的。因为伊朗这个国家的特殊性,出口伊朗的货,不同客户是不能分单的,也不能拼箱的。所以船公司只会出具一票MBL.
是挺棘手的~~
just so so
积分 246159
福步币 1000 块
阅读权限 120
来自 『上海』
还是只能和你货代沟通处理
又要出两份提单,又是混装的
现在伊朗代理单一般都做不了。
现在要么改MBL上面的信息,用一份提单去清关
(专注产品检测认证 6年福Bu生涯)
UID 1442765
积分 60928
阅读权限 60
来自 CE, FCC, SONCAP, COC, PVOC ...
不同客户是不能分单的,也不能拼箱。
另外出口伊朗需要在发货前做VOC认证值得注意。
UID 2188094
阅读权限 60
楼楼,你好!
以下是我一些个人的观点,希望对楼楼有帮助。
1-& && &&&为何货代的两份HML, 只能出一份船东单? 报关的时候明明是两个consignee!
问题出在哪里,属于哪一方的过失?!
因为货代跟船公司订舱的时候 只定了一票 货代在跟船公司核对提单时也没有拆分,货代单是货代出具的,货代可以给楼楼出具一份,两份或者是多份。跟船东单的签发没有关系。也跟报关没有关系,即便是3票报关,货代单签三分,船东单也可以签一份出来。比如拼柜就是这么操作的。
严格说起来是双方都有过失,货代的过失在于,没有尽到提醒的责任,楼楼的过失在于,对目的港清关的单据不了解,同时也对提单签发的规则或者是过程不了解。当然如果货代是国外指定的,他们的错更多一些。因为伊朗这些个中东国家,海关的要求,和一些特殊单据的要求都会比较繁琐。
2-& && &&&船公司不肯签发两个D/O的理由?!补救或变通的方法是什么?
D/O,一般又被称为小提单,在中国进口D/O一般是由船代或者有海关监管仓库资质,能处理进口拆箱的公司制作的,你只有一份船东单,当然D/O就只能发送一份。补救方法,楼楼货都到港了。好想比较难处理。货代是国外指定的,还是楼楼自己找的呢?最好的补救或变通的方法,就是去国外一票清关。既然都是同一个集团的货,应该可以用一票清关的方式去解决,至于货款如果已经支付不是还有货要出吗?后续在来调整。就看外客户愿意不愿意这么操作了。
3-& && &&&有什么切实可行的方法,尽快清关放货?拖的时间越长,成本越高,客户的不满情绪也会增加,必须最短时间里面,拿出解决的方案。
方法上面已经说了,就一票去清关,也不需要纠结这么多。楼楼,提单这种事情本来解决起来就是耗时费力的,且你的货已经到港了。如果货代是你自己找的,那你就只能让你自己找的货代找船公司,让船公司想解决的办法。如果是国外客户指定的货代,那么这个货代,那么你告诉客人国外的货代已经说他们可能处理不了,让客户指定的国外货代,去跟目的港的船公司协商处理意见。你们这边会继续跟国内船公司协商,并处理解决。
4-& && &&&客户或者客户代理方面,是否还有其他的办法? 如果需要用钱解决,大概的费用?
楼楼的货已经到港了,那就可能不是多花钱就能解决的,而且D/O应该也已经发送了,那就是说目的港的海关现在已经有数据了。要真能花钱就解决,也是在目的港花钱,不是起运港哦。
当前时区 GMT+8, 现在时间是
Powered by D1scuz! && 2001-

我要回帖

更多关于 ios 内存泄露 的文章

 

随机推荐