12306抢票打包exe报错json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

环境win7python3.7pyinstaller3.4代码是网上参考的,功能性不影响,但是在用pyinstaller打包的时候会报错。源代码如下:

# coding=utf-8
from splinter.browser import Browser
from time import sleep
import traceback
user_name = input("账号")
password = input("密码")
# 账号密码
d_time = u"2019-01-04"
starts = u"%u4E0A%u6D77%2CSHH"
ends = u"%u6606%u660E%2CKMM"
order = 1
ticket_url = u"https://kyfw.12306.cn/otn/leftTicket/init"
login_url = u"https://kyfw.12306.cn/otn/login/init"
initmy_url = u"https://kyfw.12306.cn/otn/view/index.html"


def login():
    b.find_by_text(u"登录").click()
    sleep(3)
    b.find_by_text(u"账号登录").click()
    sleep(0.5)
    b.find_by_id(u"J-userName").fill(user_name)
    sleep(1)
    b.find_by_id(u"J-password").fill(password)
    sleep(1)
    print(u"自己手动选择验证码图片并且点击登录")
    while True:
        if b.url != initmy_url:
            sleep(1)
        else:
            break


def huo_che():
    global b
    b = Browser(driver_name="chrome")
    b.visit(ticket_url)
    while b.is_text_present(u"登录"):
        sleep(1)
        login()
        if b.url == initmy_url:
            break
    try:
        print(u"购票页面...")
        # 跳回购票页面
        b.visit(ticket_url)
        # 加载查询信息
        b.cookies.add({u"_jc_save_fromStation": starts})
        b.cookies.add({u"_jc_save_toStation": ends})
        b.cookies.add({u"_jc_save_fromDate": d_time})
        b.reload()
        sleep(2)
        count = 0
        # 循环点击预订
        if order != 0:
            while b.url == ticket_url:
                b.find_by_text(u"查询").click()
                count += 1
                print(u"循环点击查询... 第 %s 次" % count)
                sleep(1)
                try:
                    b.find_by_text(u"预订")[order-1].click()
                    break
                except Exception as e:
                    print(e)
                    continue
        else:
            while b.url == ticket_url:
                b.find_by_text(u"查询").click()
                count += 1
                print(u"循环点击查询... 第 %s 次" % count)
                sleep(1)
                try:
                    for i in b.find_by_text(u"预订"):
                        i.click()
                except Exception as e:
                    print(e)
                    continue
        b.find_by_id(u"normalPassenger_0").click()
        b.find_by_id(u"submitOrder_id").click()
        sleep(0.5)
        b.find_by_id(u"qr_submit_id").click()
        print(u"自行支付")
    except Exception as e:
        print(e)
        print(traceback.print_exc())


if __name__ == "__main__":
    huo_che()

打包时候报错:
13737 WARNING: Cannot read QLibraryInfo output: raised Expecting value: line 1 column 1 (char 0) when decoding:
Traceback (most recent call last):
File "", line 11, in
ImportError: DLL load failed: 找不到指定的程序。
Traceback (most recent call last):
File "D:\python\Scripts\pyinstaller-script.py", line 11, in
load_entry_point('PyInstaller==3.4', 'console_scripts', 'pyinstaller')()
File "d:\python\lib\site-packages\PyInstaller__main__.py", line 111, in run
run_build(pyi_config, spec_file, **vars(args))
File "d:\python\lib\site-packages\PyInstaller__main__.py", line 63, in run_build
PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs)
File "d:\python\lib\site-packages\PyInstaller\building\build_main.py", line 838, in main
build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build'))
File "d:\python\lib\site-packages\PyInstaller\building\build_main.py", line 784, in build
exec(text, spec_namespace)
File "", line 17, in
File "d:\python\lib\site-packages\PyInstaller\building\build_main.py", line 241, in init
self.__postinit__()
File "d:\python\lib\site-packages\PyInstaller\building\datastruct.py", line 158, in postinit
self.assemble()
File "d:\python\lib\site-packages\PyInstaller\building\build_main.py", line 500, in assemble
module_hook.post_graph()
File "d:\python\lib\site-packages\PyInstaller\building\imphook.py", line 410, in post_graph
self._load_hook_module()
File "d:\python\lib\site-packages\PyInstaller\building\imphook.py", line 377, in load_hook_module
self.hook_module_name, self.hook_filename)
File "d:\python\lib\site-packages\PyInstaller\compat.py", line 736, in importlib_load_source
return mod_loader.load_module()
File "", line 407, in _check_name_wrapper
File "", line 907, in load_module
File "", line 732, in load_module
File "", line 265, in _load_module_shim
File "", line 696, in _load
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "d:\python\lib\site-packages\PyInstaller\hooks\hook-PyQt5.py", line 23, in
collect_system_data_files(pyqt5_library_info.location['PrefixPath'],
File "d:\python\lib\site-packages\PyInstaller\utils\hooks\qt.py", line 67, in __getattr
_
qli = json.loads(json_str)
File "d:\python\lib\json__init__.py", line 348, in loads
return _default_decoder.decode(s)
File "d:\python\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "d:\python\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

2个回答

新建一个虚拟环境重新安装pyinstaller就可以了

这种程序,不同于人家正规给你接口的,属于私自写的爬虫。12306一改版自然json解析不起来,程序就出错了。

要么你学会抓包去写,否则人家的代码等你看到再来用,还能用的基本上不可能

qq_39054587
James He 好的,谢谢了
大约一年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
pycharm写爬虫百度翻译然后报错json.decoder.JSONDecodeError:
import requests userinput = input("请输入想要翻译的单词: ") data = {"from":"en","to":"zh","query":"userinput","transtype":"realtime","simple_means_flag":"3"} r = requests.post("http://fanyi.baidu.com/v2transapi/q", json=data) print(r.json()["trans_result"]["data"][0]["dst"]) 报错信息如下: /Users/renxiaobo/PycharmProjects/untitled/venv/bin/python /Users/renxiaobo/PycharmProjects/untitled/test/test01.py 请输入想要翻译的单词: fuck Traceback (most recent call last): File "/Users/renxiaobo/PycharmProjects/untitled/test/test01.py", line 7, in <module> print(r.json()["trans_result"]["data"][0]["dst"]) File "/Users/renxiaobo/PycharmProjects/untitled/venv/lib/python3.6/site-packages/requests/models.py", line 892, in json return complexjson.loads(self.text, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/__init__.py", line 354, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) Process finished with exit code 1
关于json.load()里报错的问题:json.decoder.JSONDecodeError:
用python爬猫眼电影,代码和老师讲的一样的,但是出现了一些问题: ``` # -*- coding: utf-8 -*- from urllib import request import json def get_data(url): headers = { 'User-Agent': 'Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1' } req = request.Request(url, headers=headers) response = request.urlopen(req) if response.getcode() == 200: print(response.read()) return response.read() def parse_data(html): data = json.loads(html)['cmts'] print(data) if __name__ == '__main__': url = 'http://m.maoyan.com/mmdb/comments/movie/1203084.json?_v_=yes&offset=15&startTime=2018-09-01%2011%3A10%3A00' parse_data(get_data(url)) ``` 报错如下: json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
import requests import json url='https://c.y.qq.com/soso/fcgi-bin/client_search_cp' headers = { 'referer':'https://y.qq.com/portal/search.html', 'user-agent':'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36' } for i in range(3): params = { 'ct':'24', 'qqmusic_ver':'1298', 'remoteplace':'txt.yqq.lyric', 'searchid':'93038333267724521', 'aggr':'0', 'catZhida':'1', 'lossless':'0', 'sem':'1', 't':'7', 'p':str(i+1), 'n':'5', 'w':'周杰伦', 'g_tk':'5381', 'loginUin':'0', 'hostUin':'0', 'format':'json', 'inCharset':'utf8', 'outCharset':'utf-8', 'notice':'0', 'platform':'yqq.json', 'needNewCode':'0' } res=requests.get(url,headers=headers,params=params) res_music=json.loads(res.text, strict=False) list_music=res_music['data']['lyric']['list'] for x in list_music: song_name=x['songname'] singer=x['singer'][0]['name'] album=x['albumname'] lyric=x['content'] url=x['download_url'] print('歌曲:' + song_name + ' 歌手:' + singer) print('专辑:' + album + '\n') print('URL:' + url + '\n') print('歌词:\n'+ lyric +'\n\n--------------------------------------') print('这是第%s页'%(i+1)) 用json爬QQ音乐报错: Traceback (most recent call last): File "f:/py练习/爬QQ音乐进阶.py", line 33, in <module> res_music=json.loads(res.text, strict=False) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\json\__init__.py", line 361, in loads return cls(**kw).decode(s) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
求助:pyinstaller3.5 打包 WARNING: Cannot read QLibraryInfo..... json.decoder.JSONDecodeError..
求助,python新手,installer打包问题... --- 我是直接安装Anaconda pyinstaller是下载的包,然后直接python setup.py install --- 版本信息: PyQt:PyQt5-5.12.1 Python:Python 3.5.2 :: Anaconda 4.2.0 (64-bit) pyinstaller:3.5.dev0+14b6e6564 --- 下面是报错 ----- ```` C:\CodeNew\pythonEx\excel>pyinstaller -F UnitClassification.py 573 INFO: PyInstaller: 3.5.dev0+14b6e6564 573 INFO: Python: 3.5.2 575 INFO: Platform: Windows-10-10.0.17134-SP0 583 INFO: wrote C:\CodeNew\pythonEx\excel\UnitClassification.spec 588 INFO: UPX is not available. 590 INFO: Extending PYTHONPATH with paths ['C:\\CodeNew\\pythonEx\\excel', 'C:\\CodeNew\\pythonEx\\excel'] 591 INFO: checking Analysis 910 INFO: Building because C:\Users\wen\Anaconda3\lib\site-packages\PyQt5\__init__.py changed 911 INFO: Initializing module dependency graph... 918 INFO: Initializing module graph hooks... 928 INFO: Analyzing base_library.zip ... 8230 INFO: running Analysis Analysis-00.toc 9060 INFO: Caching module hooks... 9066 INFO: Analyzing C:\CodeNew\pythonEx\excel\UnitClassification.py 9247 INFO: Processing pre-find module path hook distutils 9823 INFO: Processing pre-safe import module hook six.moves 18032 INFO: Processing pre-safe import module hook setuptools.extern.six.moves 18932 INFO: Processing pre-find module path hook site 18938 INFO: site: retargeting to fake-dir 'c:\\users\\wen\\anaconda3\\lib\\site-packages\\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\\PyInstaller\\fake-modules' 18982 INFO: Processing pre-safe import module hook win32com 102468 INFO: Loading module hooks... 102469 INFO: Loading module hook "hook-PyQt5.py"... 102560 WARNING: Cannot read QLibraryInfo output: raised Expecting value: line 1 column 1 (char 0) when decoding: Traceback (most recent call last): File "<string>", line 11, in <module> ImportError: DLL load failed: 找不到指定的模块。 Traceback (most recent call last): File "C:\Users\wen\Anaconda3\Scripts\pyinstaller-script.py", line 11, in <module> load_entry_point('PyInstaller==3.5.dev0+14b6e6564', 'console_scripts', 'pyinstaller')() File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\__main__.py", line 111, in run run_build(pyi_config, spec_file, **vars(args)) File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\__main__.py", line 63, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\build_main.py", line 844, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\build_main.py", line 791, in build exec(code, spec_namespace) File "C:\CodeNew\pythonEx\excel\UnitClassification.spec", line 17, in <module> noarchive=False) File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\build_main.py", line 243, in __init__ self.__postinit__() File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\datastruct.py", line 158, in __postinit__ self.assemble() File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\build_main.py", line 502, in assemble module_hook.post_graph() File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\imphook.py", line 410, in post_graph self._load_hook_module() File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\building\imphook.py", line 377, in _load_hook_module self.hook_module_name, self.hook_filename) File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\compat.py", line 785, in importlib_load_source return mod_loader.load_module() File "<frozen importlib._bootstrap_external>", line 388, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 809, in load_module File "<frozen importlib._bootstrap_external>", line 668, in load_module File "<frozen importlib._bootstrap>", line 268, in _load_module_shim File "<frozen importlib._bootstrap>", line 693, in _load File "<frozen importlib._bootstrap>", line 673, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 665, in exec_module File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\hooks\hook-PyQt5.py", line 23, in <module> collect_system_data_files(pyqt5_library_info.location['PrefixPath'], File "c:\users\wen\anaconda3\lib\site-packages\pyinstaller-3.5.dev0+14b6e6564-py3.5.egg\PyInstaller\utils\hooks\qt.py", line 70, in __getattr__ qli = json.loads(json_str) File "C:\Users\wen\Anaconda3\lib\json\__init__.py", line 319, in loads return _default_decoder.decode(s) File "C:\Users\wen\Anaconda3\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\wen\Anaconda3\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ```
Python: 使用pyinstaller打包exe时报错JSONDecodeError: Expecting value: line 1 column 1 (char 0)
环境win7,python3.6,pyinstaller3.5 and 3.4,在用pyinstaller打包的时候会报错。 **_raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)**_
python3.5中解析json错误JSONDecodeError
代码如下,错误 json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 试过用urllib获取这个界面后用json.loads解析,一样的报错QAQ ``` import requests url = 'http://changyan.itc.cn/v2/asset/scsUtil.js?v=20150826191' page = requests.get(url).json() ```
Python: 使用pyinstaller打包exe时报错Expecting value: line 1 column 1 (char 0)
环境win7,python3.6,pyinstaller3.5 and 3.4,在用pyinstaller打包的时候会报错。 # **_raise JSONDecodeError("Expecting value", s, err.value) from None # json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)**_ ```
求助:python爬取12306车票信息总是出现错误
最近初学python,进展到网络爬虫部分,尝试自己写一下查票,结果遇到了麻烦 ``` import requests url = 'https://kyfw.12306.cn/otn/leftTicket/queryZ?' \ 'leftTicketDTO.train_date=2020-02-01&' \ 'leftTicketDTO.from_station=SHH&' \ 'leftTicketDTO.to_station=BJP&purpose_codes=ADULT' result=requests.get(url) print(result.json()) ``` 出现的问题如下: ``` Traceback (most recent call last): File "D:/Files/check tickets/123.py", line 7, in <module> print(result.json()) File "D:\Files\python3\lib\site-packages\requests\models.py", line 897, in json return complexjson.loads(self.text, **kwargs) File "D:\Files\python3\lib\json\__init__.py", line 357, in loads return _default_decoder.decode(s) File "D:\Files\python3\lib\json\decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "D:\Files\python3\lib\json\decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ``` 不知如何解决,求解答,谢谢!
python3 爬虫爬取不规则、带有转义符的json字符串,json.loads()报错
今天学习写爬虫,利用正则表达式爬取的一段网页源代码,代码前面有json.parse ![图片说明](https://img-ask.csdn.net/upload/201810/30/1540893329_975308.png) 利用正则表达式把gallery一行爬出来是下面的代码: {\"count\":8,\"sub_images\":[{\"url\":\"http:\\/\\/p99.pstatp.com\\/origin\\/pgc-image\\/154088560091068452d3c58\",\"width\":1080,\"url_list\":[{\"url\":\"http:\\/\\/p99.pstatp.com\\/origin\\/pgc-image\\/154088560091068452d3c58\"},{\"url\":\"http:\\/\\/pb3.pstatp.com\\/origin\\/pgc-image\\/154088560091068452d3c58\"},{\"url\":\"http:\\/\\/pb1.pstatp.com\\/origin\\/pgc-image\\/154088560091068452d3c58\"}],\"uri\":\"origin\\/pgc-image\\/154088560091068452d3c58\",\"height\":1918},{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/pgc-image\\/1540885587029ea96e1c851\",\"width\":690,\"url_list\":[{\"url\":\"http:\\/\\/p1.pstatp.com\\/origin\\/pgc-image\\/1540885587029ea96e1c851\"},{\"url\":\"http:\\/\\/pb3.pstatp.com\\/origin\\/pgc-image\\/1540885587029ea96e1c851\"},{\"url\":\"http:\\/\\/pb9.pstatp.com\\/origin\\/pgc-image\\/1540885587029ea96e1c851\"}],\"uri\":\"origin\\/ ........... 将其json.loads()之后报错如下: json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 1 column 2 (char 1) 网上试了HTMLParse,结果后面循环报错,解决不了了。哈哈哈, 有没有大神知道这种情况,怎么处理么?
apktools 反编译失败报错
Config flags size > 36. Exceeding bytes: 0xFFFF. W: Invalid config flags detected: style-v17-ERR0 Exception in thread "main" brut.androlib.AndrolibException: Could not decode arsc file at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56) at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:40) at brut.androlib.res.AndrolibResources.installFramework(AndrolibResources.java:562) at brut.androlib.Androlib.installFramework(Androlib.java:473) at brut.apktool.Main.cmdInstallFramework(Main.java:250) at brut.apktool.Main.main(Main.java:81) Caused by: java.io.IOException: Expected: 0x00000008, got: 0x00000103 at brut.util.ExtDataInput.skipCheckShort(ExtDataInput.java:56) at brut.androlib.res.decoder.ARSCDecoder.readValue(ARSCDecoder.java:222) at brut.androlib.res.decoder.ARSCDecoder.readEntry(ARSCDecoder.java:182) at brut.androlib.res.decoder.ARSCDecoder.readConfig(ARSCDecoder.java:170) at brut.androlib.res.decoder.ARSCDecoder.readType(ARSCDecoder.java:135) at brut.androlib.res.decoder.ARSCDecoder.readPackage(ARSCDecoder.java:110) at brut.androlib.res.decoder.ARSCDecoder.readTable(ARSCDecoder.java:83) at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:49) ... 5 more
JAVA 使用 Decoder decoder = Base64.getDecoder();函数报错无法解析Base64?
在调用摄像头使用 Decoder decoder = Base64.getDecoder();函数时会报错无法解析Base64,这个代码比较久,一开始不能用是因为sun.misc.BASE64Encoder jar包在高版本中没有了,百度之后我也正确的导入了import java.util.Base64.Decoder;包,但就是报错。 ``` { if (imgStr == null) { return false; } //Encoder encoder = Base64.getEncoder(); Decoder decoder = Base64.getDecoder(); //Base64解码 byte[] b = decoder.decode(imgStr); //如果目录不存在,则创建 File file = new File(filePath); if (!file.exists()) { file.mkdirs(); } ```
爬虫处理json数据的问题
这个爬虫几个星期前都可以正常使用,可是最近却出问题了 import json import requests as rq import pandas as pd kw = input('Please input the position needs to fetch:') lagou_url = 'http://www.lagou.com/jobs/positionAjax.json?first=false&pn={0}&kd={1}' lagou_python_data = [] for i in range(1, 31): print('fetch {0} page'.format(i)) lagou_url_ = lagou_url.format(i, kw) f=rq.get(lagou_url_).text lagou_data = json.loads(f) lagou_python_data.extend(lagou_data['content']['positionResult']['result']) position_data = pd.DataFrame(lagou_python_data) position_data.to_csv('./About {0} position.csv'.format(kw), index=False) print('data has been saved') 会报json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)的错误,查了一些资料觉得可能是json格式之类的问题,可是之前都能正常使用呐,实在是弄不明白。
java内存溢出问题,不确定哪里出的问题
项目运行的时候出现了内存溢出情况,复现方式无法确定,大概出现了五六次,每次复现的方式都不一样,下面是我用MAT工具分析的dump文件 ![图片说明](https://img-ask.csdn.net/upload/202001/20/1579508231_612899.png) ![图片说明](https://img-ask.csdn.net/upload/202001/20/1579508244_502327.png) 除了hibernate里的那两个对象,其他的1000多万个对象里全是integer类型的对象 这是当时出现的时候产生的异常 ``` 2020-01-17 13:32:55 ERROR [DruidDataSource.java:2469] - create connection SQLException, url: jdbc:mysql://localhost:55060/mcs?useUnicode=true&characterEncoding=utf-8, errorCode 0, state 08S01 com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 1 milliseconds ago. The last packet sent successfully to the server was 0 milliseconds ago. at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:425) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:990) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3517) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3417) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3860) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:864) at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1707) at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1217) at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2189) at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2220) at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2015) at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:768) at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47) at sun.reflect.GeneratedConstructorAccessor118.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at com.mysql.jdbc.Util.handleNewInstance(Util.java:425) at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:385) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:323) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1513) at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1578) at com.alibaba.druid.pool.DruidDataSource$CreateConnectionThread.run(DruidDataSource.java:2466) Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2969) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3427) ... 19 more 2020-01-17 13:33:03 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_preset_rlat failed: java.lang.OutOfMemoryError: GC overhead limit exceeded at net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.getBytes(MemoryEfficientByteArrayOutputStream.java:65) at net.sf.ehcache.util.MemoryEfficientByteArrayOutputStream.serialize(MemoryEfficientByteArrayOutputStream.java:99) at net.sf.ehcache.store.disk.DiskStorageFactory.serializeElement(DiskStorageFactory.java:405) at net.sf.ehcache.store.disk.DiskStorageFactory.write(DiskStorageFactory.java:384) at net.sf.ehcache.store.disk.DiskStorageFactory$DiskWriteTask.call(DiskStorageFactory.java:485) at net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1088) at net.sf.ehcache.store.disk.DiskStorageFactory$PersistentDiskWriteTask.call(DiskStorageFactory.java:1072) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) 2020-01-17 13:32:59 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:32:59 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:32:55 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:16 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:27 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:33:27 ERROR [SqlExceptionHelper.java:144] - wait millis 7401, active 16, maxActive 40, creating 1 2020-01-17 13:33:27 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-17 13:33:33 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:33 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:49 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:49 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:49 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:49 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:49 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:53 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:53 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:33:53 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:02 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:34:02 ERROR [SqlExceptionHelper.java:144] - wait millis 5503, active 18, maxActive 40, creating 1 2020-01-17 13:34:02 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-17 13:34:04 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:08 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:12 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:12 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:14 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:14 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:14 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:17 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:34:17 ERROR [SqlExceptionHelper.java:144] - wait millis 5485, active 19, maxActive 40, creating 1 2020-01-17 13:34:17 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [null]; error code [0]; Could not open connection; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-17 13:34:17 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:27 INFO [DeviceCache.java:249] - 设备状态及报警维护过程中出现异常 2020-01-17 13:34:35 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:35 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:42 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:42 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:44 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:44 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:34:52 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:34:52 ERROR [SqlExceptionHelper.java:144] - wait millis 7301, active 22, maxActive 40, creating 1 2020-01-17 13:34:52 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-17 13:34:53 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:35:05 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_roll_preset failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-17 13:35:18 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:35:18 ERROR [SqlExceptionHelper.java:144] - Error 2020-01-17 13:35:50 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-17 13:35:50 ERROR [SqlExceptionHelper.java:144] - Error 2020-01-17 13:36:13 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-17 13:36:13 ERROR [SqlExceptionHelper.java:144] - Lock wait timeout exceeded; try restarting transaction 2020-01-17 13:36:13 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-17 13:36:24 ERROR [SqlExceptionHelper.java:144] - Lock wait timeout exceeded; try restarting transaction 2020-01-17 13:36:13 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-17 13:37:01 ERROR [SqlExceptionHelper.java:144] - Lock wait timeout exceeded; try restarting transaction 2020-01-17 13:37:43 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-17 13:36:37 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-17 13:36:33 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-17 13:36:22 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 ``` 现在就是无法确定到底哪里导致的内存溢出? 这个是上次出现的异常和代码 ``` 2020-01-13 13:21:44 WARN [SqlExceptionHelper.java:143] - SQL Error: 1205, SQLState: 40001 2020-01-13 13:21:44 ERROR [SqlExceptionHelper.java:144] - Lock wait timeout exceeded; try restarting transaction 2020-01-13 13:23:55 INFO [MQTTProtocolHandler.java:283] - 接收到设备接入协议:{"topic":"info/deviceBaseInfo/BHIP118-S/00:00:01:A6:00:A2","reportTime":"256573751","decodeCapacity":{"totalLevel":2,"totalBlock":36,"totalPixel":16588800},"outputList":[{"status":"start","ratio":"UHD","pixel":"3840*2160","type":"UDP","url":"udp://231.0.100.80:7001"},{"status":"start","ratio":"HD","pixel":"960*540","type":"UDP","url":"udp://231.0.101.80:7001"},{"status":"start","ratio":"SD","pixel":"352*288","type":"UDP","url":"udp://231.0.102.80:7001"},{"status":"stop","ratio":"UHD","pixel":"3840*2160","type":"RTMP","url":"rtmp://192.168.15.80:1935/live/100"},{"status":"stop","ratio":"HD","pixel":"960*540","type":"RTMP","url":"rtmp://192.168.15.124:1935/live/101"},{"status":"stop","ratio":"SD","pixel":"352*288","type":"RTMP","url":"rtmp://192.168.15.80:1935/live/102"}],"baseInfo":{"deviceType":"BHIP118-S","code":"00:00:01:A6:00:A2","version":"v1.0.0.11","ip":"192.168.16.80"},"online":true} 2020-01-13 13:23:59 INFO [DeviceCache.java:127] - 接收到新增/更新设备信息:00:00:01:A6:00:A2 :BaseInfo [type=0,name=BHIP118-S,ip=192.168.16.80,port=0,code=00:00:01:A6:00:A2,groupCode=null,groupIndex=0,online=true,multiCastTime=0,ver=v1.0.0.11,channel=0,reserve=0,lockStatus=null,workMode=null,videoPixerls=null,kvmMode=null,serialNumber=null,sdipPortInfo is null,hdIpPortInfo is null,audioIpPortInfo is null,outputList[SourceOutput [ratio=UHD, url=udp://231.0.100.80:7001, pixel=3840*2160, channel=0, SourceOutput [ratio=HD, url=udp://231.0.101.80:7001, pixel=960*540, channel=0, SourceOutput [ratio=SD, url=udp://231.0.102.80:7001, pixel=352*288, channel=0, SourceOutput [ratio=UHD, url=rtmp://192.168.15.80:1935/live/100, pixel=3840*2160, channel=0, SourceOutput [ratio=HD, url=rtmp://192.168.15.124:1935/live/101, pixel=960*540, channel=0, SourceOutput [ratio=SD, url=rtmp://192.168.15.80:1935/live/102, pixel=352*288, channel=0],callStatus=null] 2020-01-13 13:24:06 INFO [MultiCastDeviceInfoHandler.java:229] - 更新视频合成器设备信息: Device [id=ff8080816f694555016f6a4bf61e158c, code=00:00:01:A6:00:A2, name=192.168.16.80, ip=192.168.16.80, port=0, status=0, type=BHIP118, deviceType=BHIP118-S, stamp=2020-01-03 15:26:00, abilityInfo=null, netCardInfo=null] 2020-01-13 13:24:53 INFO [MultiCastDeviceInfoHandler.java:364] - 更新解码器信息:Decoder [IP=192.168.16.80, Port=0, Channel=0, totalBlocks=36, totalLevel=2, uRefWidth=1920, uRefHeight=1080, audioPort=0, totalPixel=16588800, deviceTypeName=BHIP118-S, pixelsWidth=null, pixelsHeight=null] 2020-01-13 13:25:17 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:17 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:17 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:19 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:28 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:42 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-13 13:25:42 ERROR [SqlExceptionHelper.java:144] - wait millis 14463, active 11, maxActive 40, creating 1 2020-01-13 13:25:46 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_playback_task failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:25:48 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-13 13:25:50 ERROR [SqlExceptionHelper.java:144] - wait millis 18056, active 11, maxActive 40, creating 1 2020-01-13 13:25:50 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_source_volume failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:25:51 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:51 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:51 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.orm.hibernate3.HibernateJdbcException: JDBC exception on Hibernate data access: SQLException for SQL [n/a]; SQL state [null]; error code [0]; Could not open connection; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-13 13:25:51 INFO [GetCWRCapHandler.java:114] - 解析录像服务器上报心跳协议过程中出现异常:org.springframework.transaction.CannotCreateTransactionException: Could not open JPA EntityManager for transaction; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: Could not open connection 2020-01-13 13:25:58 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_kvm failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:25:56 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:25:56 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:03 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_video_terminal failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:05 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_pic_layer failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:05 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_template failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:05 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_multicast_address failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:08 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_mass_source failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:08 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_pic_encoder_block failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:08 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_ipc_preset_group failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:08 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:13 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_video_terminal failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:17 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_record_layer_block failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:24 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_video_meeting failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:28 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_audio_preset_rlat failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:28 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_preset failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:28 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_layer_block failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:28 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:32 WARN [SqlExceptionHelper.java:143] - SQL Error: 0, SQLState: null 2020-01-13 13:26:32 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:32 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:32 ERROR [DiskStorageFactory.java:495] - Disk Write of mcs_encoder failed: java.lang.OutOfMemoryError: GC overhead limit exceeded 2020-01-13 13:26:52 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:27:07 ERROR [SqlExceptionHelper.java:144] - wait millis 20150, active 12, maxActive 40, creating 1 2020-01-13 13:26:50 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:46 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:46 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:41 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:41 ERROR [SqlExceptionHelper.java:144] - wait millis 23244, active 12, maxActive 40, creating 1 2020-01-13 13:26:41 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:26:41 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:30:29 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:30:25 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:30:07 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:30:07 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 2020-01-13 13:30:07 WARN [DruidDataSource.java:1258] - get connection timeout retry : 1 ``` 这个是组播上报的设备信息,因为组播是一秒钟上报了好几次,是不是这里一直占用着连接 ``` public void run() { try { ms = new MulticastSocket(multiCastPort);//建立组播套接字 ms.setReceiveBufferSize(65535); // ms.setNetworkInterface(NetworkInterface.getByInetAddress(localAddress)); ms.joinGroup(InetAddress.getByName(multiCastIP));//加入组播组 LogHome.getLog().info("正常启动监听" + localAddress.getHostAddress()); byte[] buffer = null; DatagramPacket dp = null; while (true) { try { if (IsStop) { break; } buffer = new byte[1400]; dp = new DatagramPacket(buffer, buffer.length); LogHome.getLog().debug("等待接受组播信息:"); ms.receive(dp); MultiCastInfoParser info = new MultiCastInfoParser(dp.getData()); DeviceCache.baseInfoOf1004Handler(info.parse()); } catch (Exception e) { if (IsStop) {// 如果换网卡可能会出问题 break; } else { if (ms.isClosed()) { ms = new MulticastSocket(multiCastPort); ms.setNetworkInterface(NetworkInterface.getByInetAddress(localAddress)); ms.joinGroup(InetAddress.getByName(multiCastIP)); } } LogHome.getLog().error("接受并设置组播信息失败",e); }finally{ Thread.sleep(1); } } } catch (Exception e) { e.printStackTrace(); try { if (listenerList.containsKey(localAddress.getHostAddress())) { listenerList.remove(localAddress.getHostAddress()); } } catch (Exception ex) { LogHome.getLog().error(ex); } } ```
python json解析出现No JSON object could be decoded的报错
源代码:#coding:utf-8 import requests import re import json url="http://www.newrank.cn/public/info/list.js?t=1461063208.68" user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5; Windows NT)' headers = { 'User-Agent' : user_agent } jscontent=requests.get("http://www.newrank.cn/public/info/list.js?t=1461063208.68",headers=headers).content jsdict=json.loads(jscontent) 错误信息:Traceback (most recent call last): File "D:/Python/JetBrains PyCharm 5.0.4/PyCharm 5.0.4/Myproject/test1/test2.py", line 10, in <module> jsdict=json.loads(jscontent) File "D:\Python\lib\json\__init__.py", line 339, in loads return _default_decoder.decode(s) File "D:\Python\lib\json\decoder.py", line 364, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "D:\Python\lib\json\decoder.py", line 382, in raw_decode raise ValueError("No JSON object could be decoded") ValueError: No JSON object could be decoded 是因为json的bom头问题吗,我也尝试过一些网上的去除bom头的办法,不过都不管用,还望指点,非常头疼,谢谢!
JSONDecodeError爬虫有道翻译
新人求问啊啊啊啊啊~~~~下面是我的代码 ``` import urllib.request import urllib.parse import json content=input("请输入需要翻译内容:") url="http://fanyi.youdao.com/translate?smartresult=dict&smartresult=rule"#?前面有个_o去掉才能正常使用 why? data={} data["i"]: content data["type"]: "AUTO" data["smartresult"]: "dict" data["client"]: "fanyideskweb" data["salt"]: "15482158645682" data["sign"]: "91cbd7628c2de9065132acf3b88da8cd" data["doctype"]: "json" data["version"]: "2.1" data["keyfrom"]: "fanyi.web" data["action"]: "FY_BY_REALTIME" data["typoResult"]: "true" data=urllib.parse.urlencode(data).encode("utf-8") response=urllib.request.urlopen(url,data) html=response.read().decode("utf-8") target=json.loads(html) print("翻译结果是:%s"%(target["translateResult"][0][0]["tgt"])) ``` 运行后的结果是 Traceback (most recent call last): File "C:\Users\Administrator\Desktop\1.23.3.py", line 23, in <module> target=json.loads(html) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) 不知道该怎么改 求问大神
python中用post方式获取网页XHR内容中的Json格式数据,但是返回了html的代码,这是为什么呢?
爬12306的过程中,扫描登录过程最后一步,post获取数据。但是报错 ![图片说明](https://img-ask.csdn.net/upload/201912/08/1575803358_790446.png) ``` def auth(uamtk_code): url = 'https://kyfw.12306.cn/passport/web/auth/uamtk' header = {'Accept': 'application/json, text/javascript, */*; q=0.01', 'Accept-Encoding': 'gzip, deflate, br', 'Accept-Language': 'zh-CN,zh;q=0.9', 'Connection': 'keep-alive', 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) \ Chrome/65.0.3314.0 Safari/537.36 SE 2.X MetaSr 1.0', 'Content - Length': '64'} data = {'uamtk': uamtk_code, 'appid': 'excater'} callback = session.post(url, headers=header, data=data).text ``` json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) post返回的值是这样的: <style type="text/css"> <!-- html,body{background:#fff;} --> </style> </head> <body> <div class="err_text"> <ul id="error" > <li id="err_top"> </li> <li id="err_bot">  网络可能存在问题,请您重试一下! <div class="time"> <SCRIPT language="javascript"> <!-- function initArray() { for (i = 0; i < initArray.arguments.length; i++) this[i] = initArray.arguments[i]; } var isnMonths = new initArray("1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"); var isnDays = new initArray("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"); today = new Date(); hrs = today.getHours(); min = today.getMinutes(); sec = today.getSeconds(); clckh = "" + ((hrs > 12) ? hrs - 12 : hrs); clckm = ((min < 10) ? "0" : "") + min; clcks = ((sec < 10) ? "0" : "") + sec; clck = (hrs >= 12) ? "下午" : "上午"; var stnr = ""; var ns = "0123456789"; var a = ""; function getFullYear(d) { yr = d.getYear(); if (yr < 1000) yr += 1900; return yr; } document.write(getFullYear(today) + "å¹´" + isnMonths[today.getMonth()] + today.getDate() + "日" + " " + clckh + ":" + clckm + ":" + clcks + " " + isnDays[today.getDay()]); //--> </SCRIPT></div> </li> </ul> </div> </body> </html>
android MediaCodec h264解码问题!
最近在做视频解码的项目,用到了android MediaCodec有解码功能,出现了下面的问题,求大牛指点一二。 以下内容为解码时出现的错误。 11-08 18:28:01.886: E/开始解码(20450): 开始解码 11-08 18:28:17.498: E/all length(20450): 2418 11-08 18:28:17.498: E/screencmd3(20450): 2398 11-08 18:28:17.498: E/tag(20450): 2398videobyte.length 11-08 18:28:17.499: E/Decode(20450): inputBufferIndex===0 11-08 18:28:17.500: E/Decode(20450): inputBufferIndex===9 11-08 18:28:17.501: E/Decode(20450): inputBufferIndex===8 11-08 18:28:17.502: E/Decode(20450): inputBufferIndex===7 11-08 18:28:17.502: E/Decode(20450): inputBufferIndex===6 11-08 18:28:17.506: E/ACodec(20450): [OMX.MTK.VIDEO.DECODER.AVC] ERROR(0x80001005) 11-08 18:28:17.506: E/MediaCodec(20450): Codec reported an error. (omx error 0x80001005, internalError -1103) 11-08 18:28:17.509: E/AndroidRuntime(20450): FATAL EXCEPTION: Thread-1056 11-08 18:28:17.509: E/AndroidRuntime(20450): java.lang.IllegalStateException 11-08 18:28:17.509: E/AndroidRuntime(20450): at android.media.MediaCodec.getBuffers(Native Method) 11-08 18:28:17.509: E/AndroidRuntime(20450): at android.media.MediaCodec.getInputBuffers(MediaCodec.java:472) 11-08 18:28:17.509: E/AndroidRuntime(20450): at com.aaa.bbb.VideoActivity.onFrame(VideoActivity.java:286) 11-08 18:28:17.509: E/AndroidRuntime(20450): at com.aaa.bbb.VideoActivity$PlayerThread.run(VideoActivity.java:240)
android vlc播放rtsp媒体流报如下错误:
08-02 15:52:25.918 18020-18116/com.nmbb.vlc E/ACodec: [OMX.MTK.VIDEO.DECODER.AVC] storeMetaDataInBuffers failed w/ err 80000000 08-02 15:52:26.006 18020-18116/com.nmbb.vlc E/ACodec: [OMX.MTK.VIDEO.DECODER.AVC] ERROR(0x80001005) 08-02 15:52:26.006 18020-18115/com.nmbb.vlc E/MediaCodec: Codec reported an error. (omx error 0x80001005, internalError -1103) 08-02 15:52:26.251 18020-18047/com.nmbb.vlc E/VLC: core input: ES_OUT_RESET_PCR called 08-02 15:52:26.255 18020-18047/com.nmbb.vlc E/VLC: core input: ES_OUT_RESET_PCR called
关于华为荣耀手机程序运行时闪退的问题?
关于华为荣耀手机程序运行时闪退的问题? 请大佬们帮忙看看是什么原因啊,在此先多谢各位大佬了 ``` 2019-09-06 14:08:47.726 12620-12639/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:08:47.787 1790-3421/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:08:47.940 12603-12617/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:08:47.986 1790-11981/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:08:48.419 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:08:48.425 12479-12479/? E/nt.mm:appbrand: Invalid ID 0x00000000. 2019-09-06 14:08:48.429 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:08:49.287 720-720/? E/Thermal-daemon: [flash_led] temp_new :39 temp_old :38 2019-09-06 14:08:49.290 720-720/? E/Thermal-daemon: Report temperature: [flash_led] temp :39 report_threshold:1 2019-09-06 14:08:49.290 720-720/? E/Thermal-daemon: [charger_ic] temp_new :40 temp_old :39 2019-09-06 14:08:49.292 720-720/? E/Thermal-daemon: Report temperature: [charger_ic] temp :40 report_threshold:1 2019-09-06 14:08:49.295 720-720/? E/Thermal-daemon: [ap] temp_new :39 temp_old :38 2019-09-06 14:08:49.298 720-720/? E/Thermal-daemon: Report temperature: [ap] temp :39 report_threshold:1 2019-09-06 14:08:49.661 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:08:49.811 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:08:49.821 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:08:50.863 12479-12568/? E/[HOTFIX]: [ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 2019-09-06 14:08:52.225 12620-12743/? E/[HOTFIX]: [ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 2019-09-06 14:08:52.230 12603-12747/? E/[HOTFIX]: [ThreadDexHotfixMonitor]Bind hotfix monitor service fail! 2019-09-06 14:08:52.800 717-12927/? E/HwExtendedCodec: mime: audio/vorbis matching compontent failed! 2019-09-06 14:08:52.827 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:08:52.844 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:08:52.926 724-11678/? E/OMXNodeInstance: setConfig(0xf2f29c20:google.vorbis.decoder, ??(0x6f700006)) ERROR: Undefined(0x80001001) 2019-09-06 14:08:52.929 724-11339/? E/OMXNodeInstance: setConfig(0xf2f29c20:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001) 2019-09-06 14:08:53.488 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:08:53.488 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:08:53.488 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:08:53.489 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:08:53.489 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:08:53.489 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:08:53.684 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:08:54.299 720-720/? E/Thermal-daemon: [battery] temp_new :37 temp_old :35 2019-09-06 14:08:54.301 720-720/? E/Thermal-daemon: Report temperature: [battery] temp :37 report_threshold:1 2019-09-06 14:08:54.302 720-720/? E/Thermal-daemon: [charger_ic] temp_new :41 temp_old :40 2019-09-06 14:08:54.304 720-720/? E/Thermal-daemon: Report temperature: [charger_ic] temp :41 report_threshold:1 2019-09-06 14:09:15.807 13033-11766/? A/google-breakpad: Microdump skipped (uninteresting) 2019-09-06 14:09:15.827 1790-3421/? E/HsmCoreServiceImpl: onTransact in code is: 103 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: -----BEGIN BREAKPAD MICRODUMP----- 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: V UNKNOWN:0.0.0.0 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: O A arm 08 armv8l 4.9.111 #1 SMP PREEMPT Fri Mar 29 23:12:42 CST 2019 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: P UNKNOWN 2019-09-06 14:09:15.896 13035-11766/? A/google-breakpad: G UNKNOWN 2019-09-06 14:09:15.899 13035-11766/? A/google-breakpad: H 12C00000 FFFF1000 00C4 2CE75000 6DFBE000 0C:41 0D:31 0E:19 0F:10 10:0E 11:04 12:0C 13:02 14:01 15:03 16:01 17:01 1C:01 1D:02 2019-09-06 14:09:15.899 13035-11766/? A/google-breakpad: -----starting crashing thread----- 2019-09-06 14:09:15.914 11758-11766/? A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6ab0bc in tid 11766 (FinalizerDaemon), pid 11758 (ncent.tmgp.zrwp) 2019-09-06 14:09:15.950 1313-12028/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:09:16.041 13042-13042/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: Build fingerprint: 'HONOR/STF-AL00/HWSTF:9/HUAWEISTF-AL00/179C00R1:user/release-keys' 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: Revision: '0' 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: ABI: 'arm' 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: pid: 11758, tid: 11766, name: FinalizerDaemon >>> com.tencent.tmgp.zrwp <<< 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6ab0bc 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: r0 006ab0b8 r1 00000000 r2 006ab0b8 r3 6a6099ca 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: r4 006ab0b8 r5 00000000 r6 e93e01d8 r7 e93e01d8 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: r8 00000000 r9 00000000 r10 e93e01ec r11 6f92ef18 2019-09-06 14:09:16.042 13042-13042/? A/DEBUG: ip eaeecd08 sp c7ee04e0 lr e934af41 pc e934aefc 2019-09-06 14:09:16.071 1313-3804/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: backtrace: 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #00 pc 0002fefc /system/lib/libcrypto.so (ASN1_primitive_free+36) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #01 pc 0002ff3d /system/lib/libcrypto.so (ASN1_primitive_free+100) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #02 pc 0002fd71 /system/lib/libcrypto.so (asn1_item_combine_free+160) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #03 pc 0002fd71 /system/lib/libcrypto.so (asn1_item_combine_free+160) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #04 pc 0002fd71 /system/lib/libcrypto.so (asn1_item_combine_free+160) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #05 pc 0002fcad /system/lib/libcrypto.so (ASN1_item_free+20) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #06 pc 000160c3 /system/framework/arm/boot-conscrypt.oat (offset 0x16000) (com.android.org.conscrypt.NativeCrypto.ASN1_TIME_to_Calendar [DEDUPED]+130) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #07 pc 0002e027 /system/framework/arm/boot-conscrypt.oat (offset 0x16000) (com.android.org.conscrypt.OpenSSLX509Certificate.finalize+70) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #08 pc 0018f7bf /system/framework/arm/boot-core-libart.oat (offset 0x8d000) (java.lang.Daemons$FinalizerDaemon.doFinalize+86) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #09 pc 0018fa1b /system/framework/arm/boot-core-libart.oat (offset 0x8d000) (java.lang.Daemons$FinalizerDaemon.runInternal+466) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #10 pc 0012b2ab /system/framework/arm/boot-core-libart.oat (offset 0x8d000) (java.lang.Daemons$Daemon.run+66) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #11 pc 00270911 /system/framework/arm/boot.oat (offset 0x132000) (java.lang.Thread.run+64) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #12 pc 00430375 /system/lib/libart.so (art_quick_invoke_stub_internal+68) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #13 pc 004091a1 /system/lib/libart.so (art_quick_invoke_stub+224) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #14 pc 000a4901 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #15 pc 00365029 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+52) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #16 pc 00365dbd /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+316) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #17 pc 00387d19 /system/lib/libart.so (art::Thread::CreateCallback(void*)+900) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #18 pc 00065ab3 /system/lib/libc.so (__pthread_start(void*)+22) 2019-09-06 14:09:16.089 13042-13042/? A/DEBUG: #19 pc 0001e975 /system/lib/libc.so (__start_thread+32) 2019-09-06 14:09:16.099 11758-11758/? E/ncent.tmgp.zrw: No implementation found for java.lang.String com.tencent.bugly.crashreport.crash.jni.NativeCrashHandler.regist(java.lang.String, boolean, int) (tried Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist and Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist__Ljava_lang_String_2ZI) 2019-09-06 14:09:16.242 1313-4246/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10351 has no location permission 2019-09-06 14:09:16.386 1845-1861/? E/OPCollectLog: HwForegroundAppAction:duplicate pkgName. 2019-09-06 14:09:16.416 11758-13071/? E/ncent.tmgp.zrw: No implementation found for java.lang.String com.tencent.bugly.crashreport.crash.jni.NativeCrashHandler.regist(java.lang.String, boolean, int) (tried Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist and Java_com_tencent_bugly_crashreport_crash_jni_NativeCrashHandler_regist__Ljava_lang_String_2ZI) 2019-09-06 14:09:16.459 11758-11819/? E/AwareLog: eglSlice: report time too small 2019-09-06 14:09:17.018 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:09:17.029 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:17.037 629-629/? E/HWComposer: presentAndGetReleaseFences: present failed for display 0: NotValidated (7) 2019-09-06 14:09:17.052 733-733/? E//system/bin/tombstoned: Tombstone written to: /data/tombstones/tombstone_02 2019-09-06 14:09:17.062 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.090 623-623/? E/TS_Service: hwTsSetAftAlgoOrientation 2019-09-06 14:09:17.103 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.103 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.109 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.110 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.110 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.111 732-2789/? E/iMonitor: FaultDetect: DUMPTOOL_PRINTF return. 2019-09-06 14:09:17.152 725-805/? E/AwareLog: iawared: change_property_content open /proc/11758/task/11799/static_vip fail errno(2)! 2019-09-06 14:09:17.170 1881-3034/? E/AwareLog: SPKSchedFeature: Uid has been sent, ignore. 2019-09-06 14:09:17.200 1313-1499/? E/InputDispatcher: channel '316a469 com.tencent.tmgp.zrwp/com.tencent.midas.proxyactivity.APMidasPayProxyActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2019-09-06 14:09:17.200 1313-1499/? E/InputDispatcher: channel '601333 com.tencent.tmgp.zrwp/com.tencent.midas.proxyactivity.APMidasPayProxyActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2019-09-06 14:09:17.214 1881-3092/? E/AwareLog: GameSdkConfigReader: GameSdkLog: idNameMap: null 2019-09-06 14:09:17.229 1313-1499/? E/InputDispatcher: channel 'c46b993 com.tencent.tmgp.zrwp/com.xmen.main.AppActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2019-09-06 14:09:17.297 1313-1352/? E/ActivityManager: Failed to schedule configuration change android.os.DeadObjectException at android.os.BinderProxy.transactNative(Native Method) at android.os.BinderProxy.transact(Binder.java:1147) at android.app.IApplicationThread$Stub$Proxy.scheduleTransaction(IApplicationThread.java:1900) at android.app.servertransaction.ClientTransaction.schedule(ClientTransaction.java:129) at com.android.server.am.ClientLifecycleManager.scheduleTransaction(ClientLifecycleManager.java:47) at com.android.server.am.ClientLifecycleManager.scheduleTransaction(ClientLifecycleManager.java:100) at com.android.server.am.ActivityManagerService.updateGlobalConfigurationLocked(ActivityManagerService.java:24536) at com.android.server.am.ActivityManagerService.updateDisplayOverrideConfigurationLocked(ActivityManagerService.java:24650) at com.android.server.am.ActivityManagerService.updateDisplayOverrideConfiguration(ActivityManagerService.java:24615) at com.android.server.wm.WindowManagerService.sendNewConfiguration(WindowManagerService.java:5075) at com.android.server.wm.WindowManagerService$H.handleMessage(WindowManagerService.java:5606) at android.os.Handler.dispatchMessage(Handler.java:109) at android.os.Looper.loop(Looper.java:207) at android.os.HandlerThread.run(HandlerThread.java:65) at com.android.server.ServiceThread.run(ServiceThread.java:44) 2019-09-06 14:09:17.308 9088-9088/? E/HiBoard_LauncherOverlayService: IllegalArgumentException, mWorkspace have not attach,errmsg:View=com.huawei.intelligent.ui.view.Workspace{80ef296 V.E...... ......I. 0,0-0,0} not attached to window manager 2019-09-06 14:09:17.320 9101-9101/? E/HiSearch9.11.6.301: [LauncherOverlayService]: IllegalArgumentException, mWorkspace have not attach and e: View=com.huawei.search.ui.views.Workspace{6b052d5 VFE...C.. ......I. 0,0-0,0} not attached to window manager 2019-09-06 14:09:17.326 1790-11981/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:09:17.326 1881-3092/? E/AwareLog: GameSdkConfigReader: GameSdkLog: idNameMap: null 2019-09-06 14:09:17.330 1790-1992/? E/Hicom_PolicyCenterService: handleAppDied. null == mMultipathAppsMap 2019-09-06 14:09:17.337 1790-1992/? E/XEngineMpipControl: Invalid SubId 2019-09-06 14:09:17.351 12661-12661/? E/DataSrv-9.3.0.304-O-0709-00:28-PackageUtils: NameNotFoundException: service apk is not installed 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: unknown message:157 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: change_property_content open /proc/11758/task/11796/static_vip fail errno(2)! 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: getProcCpuset open /proc/11758/task/11758/cpuset fail errno(2)! 2019-09-06 14:09:17.355 725-805/? E/AwareLog: iawared: getProcCpuset open /proc/11758/task/11758/cpuset fail errno(2)! 2019-09-06 14:09:17.363 1790-1811/? E/HsmCoreServiceImpl: onTransact in code is: 103 2019-09-06 14:09:17.401 1914-2088/? E/HwLauncher: SettingsEx , no such field. 2019-09-06 14:09:17.404 1675-1675/? E/ndroid.systemu: No package ID ff found for ID 0xffffffff. 2019-09-06 14:09:17.413 1675-1675/? E/ndroid.systemu: No package ID ff found for ID 0xffffffff. 2019-09-06 14:09:17.422 1790-1811/? E/HsmCoreServiceImpl: onTransact in code is: 103 2019-09-06 14:09:17.424 4509-4703/? E/[HwRecSys]HwRecSysService: getIsRportDirectService is false! 2019-09-06 14:09:17.469 1313-1813/? E/ProcessInfoCollector: getProcessInfo: failed to find this proc 2019-09-06 14:09:17.474 13106-13106/? E/ndroid.contact: Not starting debugger since process cannot load the jdwp agent. 2019-09-06 14:09:17.498 3861-3861/? E/UI-KeyboardView: EnShiftState.reset() failed! mKeyboard is null 2019-09-06 14:09:17.500 1790-11981/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:09:17.604 3861-3861/? E/CrashInfoComponent: [ SogouIME:onInitializeInterface 2019-09-06 14:09:17:595 ] 2019-09-06 14:09:17.604 3861-3861/? E/CrashInfoComponent: [ MainImeServiceDel:onInitializeInterface start 2019-09-06 14:09:17:604 ] 2019-09-06 14:09:17.705 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:17.757 13106-13131/? E/Contacts: RcsFeatureManager isRcsEnabled = true 2019-09-06 14:09:17.812 3861-3861/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/user/0/com.sohu.inputmethod.sogou/files/.theme/sogou_custom/res/composing_bg.png (No such file or directory) 2019-09-06 14:09:17.814 1313-1813/? E/ProcessInfoCollector: getProcessInfo: failed to find this proc 2019-09-06 14:09:17.819 13140-13140/? E/d.process.acor: Not starting debugger since process cannot load the jdwp agent. 2019-09-06 14:09:17.831 3861-3861/? E/BitmapFactory: Unable to decode stream: java.io.FileNotFoundException: /data/user/0/com.sohu.inputmethod.sogou/files/.theme/sogou_custom/res/composing_bg.png (No such file or directory) 2019-09-06 14:09:17.847 1790-26786/? E/HsmCoreServiceImpl: onTransact in code is: 102 2019-09-06 14:09:17.901 13106-13122/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:09:18.205 13106-13106/? E/Contacts: AlphaScroller Resources.NotFoundException in AlphaScroller 2019-09-06 14:09:18.212 13106-13106/? E/Contacts: AlphaScroller Resources.NotFoundException in AlphaScroller 2019-09-06 14:09:18.242 13106-13106/? E/SQLiteLog: (1) 2019-09-06 14:09:18.242 13106-13106/? E/Contacts: ContactsAppProvider makeInsertOperation gets SQLiteException. 2019-09-06 14:09:18.297 13140-13156/? E/MemoryLeakMonitorManager: MemoryLeakMonitor.jar is not exist! 2019-09-06 14:09:18.374 732-899/? E/JankService: JankFrequencyMonitor action return :0 2019-09-06 14:09:18.826 13106-13145/? E/ndroid.contact: Invalid ID 0x00000000. 2019-09-06 14:09:18.827 13106-13145/? E/ndroid.contact: Invalid ID 0x00000000. 2019-09-06 14:09:18.897 13106-13145/? E/ndroid.contact: Invalid ID 0x00000000. 2019-09-06 14:09:19.553 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:19.554 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:19.554 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:19.554 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:19.555 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:19.555 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:20.035 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:09:20.047 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:21.561 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:21.562 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:21.562 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:21.562 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:21.563 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:21.563 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.054 624-624/? E/WifiHAL: enter wifi_get_link_stats 2019-09-06 14:09:23.067 1313-1519/? E/WificondControl: Noise: -92, Snr: 0, Chload: -1 2019-09-06 14:09:23.090 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.090 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.092 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.092 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.093 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.093 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.094 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.095 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.096 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.096 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.097 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.097 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.099 1845-2036/? E/HwWifiStatStore: updateLinkSpeed linkSpeed =130 lastSpdLev=3 index=3 2019-09-06 14:09:23.102 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.102 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.102 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.103 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:23.104 1313-1667/? E/WifiService: enforceCanAccessScanResults: hiding ssid and bssidUID 10097 has no location permission 2019-09-06 14:09:23.105 1675-1675/? E/ndroid.systemu: Invalid ID 0x00000000. 2019-09-06 14:09:23.105 1675-1675/? E/HwNotchUtils: setIconForView iconId is not found 2019-09-06 14:09:24.333 720-720/? E/Thermal-daemon: [battery] temp_new :36 temp_old :35 2019-09-06 14:09:24.334 720-720/? E/Thermal-daemon: Report temperature: [battery] temp :36 report_threshold:1 ```
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了无数
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
MyBatis研习录(01)——MyBatis概述与入门
C语言自学完备手册(33篇) Android多分辨率适配框架 JavaWeb核心技术系列教程 HTML5前端开发实战系列教程 MySQL数据库实操教程(35篇图文版) 推翻自己和过往——自定义View系列教程(10篇) 走出思维困境,踏上精进之路——Android开发进阶精华录 讲给Android程序员看的前端系列教程(40集免费视频教程+源码) 版权声明 本文原创作者:谷哥的小弟 作者博客
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
Python爬虫精简步骤1 获取数据
爬虫的工作分为四步: 1.获取数据。爬虫程序会根据我们提供的网址,向服务器发起请求,然后返回数据。 2.解析数据。爬虫程序会把服务器返回的数据解析成我们能读懂的格式。 3.提取数据。爬虫程序再从中提取出我们需要的数据。 4.储存数据。爬虫程序把这些有用的数据保存起来,便于你日后的使用和分析。 这一篇的内容就是:获取数据。 首先,我们将会利用一个强大的库——requests来获取数据。 在电脑上安装
Python绘图,圣诞树,花,爱心 | Turtle篇
1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle() circle.shape('circle') circle.color('red') circle.speed('fastest') circle.up() square = turtle.Turtle()
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 更多有趣分析教程,扫描下方二维码关注vx公号「裸睡的猪」 即可查看! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布
web前端javascript+jquery知识点总结
Javascript javascript 在前端网页中占有非常重要的地位,可以用于验证表单,制作特效等功能,它是一种描述语言,也是一种基于对象(Object)和事件驱动并具有安全性的脚本语言 ,语法同java类似,是一种解释性语言,边执行边解释。 JavaScript的组成: ECMAScipt 用于描述: 语法,变量和数据类型,运算符,逻辑控制语句,关键字保留字,对象。 浏览器对象模型(Br
Python实战:抓肺炎疫情实时数据,画2019-nCoV疫情地图
文章目录1. 前言2. 数据下载3. 数据处理4. 数据可视化 1. 前言 今天,群里白垩老师问如何用python画武汉肺炎疫情地图。白垩老师是研究海洋生态与地球生物的学者,国家重点实验室成员,于不惑之年学习python,实为我等学习楷模。先前我并没有关注武汉肺炎的具体数据,也没有画过类似的数据分布图。于是就拿了两个小时,专门研究了一下,遂成此文。 2月6日追记:本文发布后,腾讯的数据源多次变更u
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
渗透测试-灰鸽子远控木马
木马概述 灰鸽子( Huigezi),原本该软件适用于公司和家庭管理,其功能十分强大,不但能监视摄像头、键盘记录、监控桌面、文件操作等。还提供了黑客专用功能,如:伪装系统图标、随意更换启动项名称和表述、随意更换端口、运行后自删除、毫无提示安装等,并采用反弹链接这种缺陷设计,使得使用者拥有最高权限,一经破解即无法控制。最终导致被黑客恶意使用。原作者的灰鸽子被定义为是一款集多种控制方式于一体的木马程序
Python:爬取疫情每日数据
前言 有部分同学留言说为什么412,这是因为我代码里全国的cookies需要你自己打开浏览器更新好后替换,而且这个cookies大概只能持续20秒左右! 另外全国卫健委的数据格式一直在变,也有可能会导致爬取失败! 我现在已根据2月14日最新通报稿的格式修正了! 目前每天各大平台,如腾讯、今日头条都会更新疫情每日数据,他们的数据源都是一样的,主要都是通过各地的卫健委官网通报。 为什么已经有大量平台做
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。   再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。   下文是原回答,希望能对你能有所启发。   如果我说,这个世界上人真的分三六九等,
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告(本文) 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允
作为程序员的我,大学四年一直自学,全靠这些实用工具和学习网站!
我本人因为高中沉迷于爱情,导致学业荒废,后来高考,毫无疑问进入了一所普普通通的大学,实在惭愧...... 我又是那么好强,现在学历不行,没办法改变的事情了,所以,进入大学开始,我就下定决心,一定要让自己掌握更多的技能,尤其选择了计算机这个行业,一定要多学习技术。 在进入大学学习不久后,我就认清了一个现实:我这个大学的整体教学质量和学习风气,真的一言难尽,懂的人自然知道怎么回事? 怎么办?我该如何更好的提升
粒子群算法求解物流配送路线问题(python)
粒子群算法求解物流配送路线问题(python) 1.查找论文文献 找一篇物流配送路径优化+粒子群算法求解的论文 参考文献:基于混沌粒子群算法的物流配送路径优化 2.了解粒子群算法的原理 讲解通俗易懂,有数学实例的博文:https://blog.csdn.net/daaikuaichuan/article/details/81382794 3.确定编码方式和解码策略 3.1编码方式 物流配送路线的
教你如何编写第一个简单的爬虫
很多人知道爬虫,也很想利用爬虫去爬取自己想要的数据,那么爬虫到底怎么用呢?今天就教大家编写一个简单的爬虫。 下面以爬取笔者的个人博客网站为例获取第一篇文章的标题名称,教大家学会一个简单的爬虫。 第一步:获取页面 #!/usr/bin/python # coding: utf-8 import requests #引入包requests link = "http://www.santostang.
前端JS初级面试题二 (。•ˇ‸ˇ•。)老铁们!快来瞧瞧自己都会了么
1. 传统事件绑定和符合W3C标准的事件绑定有什么区别? 传统事件绑定 &lt;div onclick=""&gt;123&lt;/div&gt; div1.onclick = function(){}; &lt;button onmouseover=""&gt;&lt;/button&gt; 注意: 如果给同一个元素绑定了两次或多次相同类型的事件,那么后面的绑定会覆盖前面的绑定 (不支持DOM事...
相关热词 c# 数组类型 泛型约束 c#的赛狗日程序 c# 传递数组 可变参数 c# 生成存储过程 c# list 补集 c#获得所有窗体 c# 当前秒数转成年月日 c#中的枚举 c# 计算校验和 连续随机数不重复c#
立即提问

相似问题

2
关于json.load()里报错的问题:json.decoder.JSONDecodeError:
1
JSONDecodeError爬虫有道翻译
2
我用linux ffmpeg视频转码 报错 Decoder (codec tscc) not found for input stream #0:0
2
Python: 使用pyinstaller打包exe时报错Expecting value: line 1 column 1 (char 0)
2
Python: 使用pyinstaller打包exe时报错JSONDecodeError: Expecting value: line 1 column 1 (char 0)
1
求助:pyinstaller3.5 打包 WARNING: Cannot read QLibraryInfo..... json.decoder.JSONDecodeError..
2
摄像头录像的hevc转到h264时报错
1
C# DotNetty 连接服务器异常:DotNetty.Transport.Channels.ClosedChannelException: 发生 I/O 错误。
0
freeswitch对接mod_unimrcp进行ASR语音识别时,unimrcp服务器一直显示检测中,但检测不到语音?
1
初学ffmpeg,打开rtsp流后,avformat_find_stream_info函数执行出现问题,应该如何解决啊?
4
关于华为荣耀手机程序运行时闪退的问题?
1
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
1
ValueError: Variable embedding_attention_seq2seq/rnn/embedding_wrapper/embedding already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at
2
java后台将base64字符串转换为PDF后生成的PDF打不开怎么回事呀
0
Netty作为socket长链接,在windows部署占用38M左右内存,在linux部署占用1.5G左右内存
1
c# 中如何将微信语音文件(aud\amr格式)转为可直接播放的音频文件
0
python中用post方式获取网页XHR内容中的Json格式数据,但是返回了html的代码,这是为什么呢?
2
eclipse打不开图片,在家里就可以,到学校就不行了,用浏览器可以打开。
0
ffmpeg的avcodec_find_decoder(AV_CODEC_ID_BMP)返回空是怎么回事呢?
2
eclipse import语句标记上有语法错误,删除这些标记;找不到问题在哪,求大佬解惑